LinuxCommandLibrary

pacrepairdb

fixes corrupted database entries in the libalpm database

TLDR

Perform a basic repair on a specific package

$ pacrepairdb package_name
copy
Update database entries without extracting packages
$ pacrepairdb package_name --dbonly
copy
Preview packages to be repaired without making changes
$ pacrepairdb package_name --print-only
copy
Display additional progress and debug information
$ pacrepairdb package_name --verbose
copy
Display help
$ pacrepairdb --help
copy

SYNOPSIS

pacrepairdb [options] package(s)

DESCRIPTION

pacrepairdb fixes corrupted database entries in the libalpm database. It can repair package metadata, reinstall packages from cache, and restore database consistency without requiring a full package reinstallation.
This tool is useful when package database entries become corrupted due to interrupted transactions or filesystem issues.

PARAMETERS

--dbonly

Update database entries without extracting or removing packages
--print-only
Display actions without making changes
--verbose
Show additional progress and debug information
--help
Display help message
--version
Display version information

CAVEATS

Requires packages to be available in the cache for full repair. Use --dbonly if only database metadata needs correction.

HISTORY

Part of pacutils, a collection of utilities for Arch Linux package management built on libalpm.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community