rpmbuild
/var/lib/rpm/
, and should contain files like the following:
Basenames
Conflictname
__db.001
__db.002
__db.003
Dirnames
Filemd5s
Group
Installtid
Name
Packages
Providename
Provideversion
Pubkeys
Requirename
Requireversion
Sha1header
Sigmd5
Triggername
The RPM Database
__db.001
and similar files are lock files used by the RPM system. The other files are databases in Berkeley DB format. The most important file is Packages
. The Packages
file contains the header tag information for each package indexed by an index number for each package. This number slowly grows with time.
Name
, Providename
, and Group
, exist to speed access to particular types of information. Treat your RPM database with care. Back up the files, especially after upgrading, installing, or removing packages.
Recreating The RPM Database
Packages
file is essential. You can recreate the rest of the files using the rpm --rebuilddb
command, introduced in Chapter 4, Using the RPM Database.