Contents
What is the rpm database?
The Red Hat Package Manager (RPM) database is how Red Hat Enterprise Linux knows the state of installed packages. The database is accessed whenever the rpm command is issued. The database is modified whenever a package is installed or removed. The RPM database is located in /var/lib/rpm directory.
How do I query an rpm database?
For querying the RPM database, the major command-line option is –q , short for query. This option tells the rpm command to query the RPM database. You can also use the long option –query .
What can I do with the RPM database?
Both types of query are important: Query the RPM database to see what is installed, or not installed, on your system. Query package files to see what the files require, as well as what the files provide. In addition to querying the RPM database, you can use the database to verify packages.
How to verify the integrity of the RPM database packages?
Alternatively try reading from the Packages file and writing a new file with the following command: If the verify fails and the dump succeeds, this could be used to… A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more. New to Red Hat?
Where do I find the RPM database in Fedora?
Every package you install with RPM is recorded in the RPM database. The RPM system includes commands to query this database to find out which packages are installed and to provide quite a few details about these packages. This chapter covers querying both the RPM database and RPM package files.
How can I tell if a package is installed by RPM?
RPM can help. It can alert you to changes made to any of the files installed by RPM. Also, if a package requires capabilities provided by another package, it can make sure the other package is installed, too. The command rpm -V(The options -yand –verifyare equivalent) verifies an installed package.