- -c, --configfiles
List configuration files in the package.
Display the log of change information for the package.
- -d, --docfiles
List documentation files in the package.
Dump information for each file in the package. This option must be used with at least one of -l, -c, or -d. The output includes the following information in this order:
path size mtime md5sum mode owner group isconfig isdoc rdev symlink
List all files in each package.
Display package information, including the name, version, and description.
- -l, --list
List all files in the package.
List packages by install time, with the latest packages listed first.
List the capabilities this package provides.
- -R, --requires
List any packages this package depends on.
- -s, --state
List each file in the package and its state. The possible states are normal, not installed, or replaced.
List any package-specific shell scripts used during installation and uninstallation of the package.
The syntax for the uninstall command is:
The uninstall options are:
Remove all versions of the package. Only one package should be specified; otherwise, an error results.
Don't check dependencies before uninstalling the package.
Don't execute any preuninstall or postuninstall scripts.
Don't execute any scripts triggered by the removal of this package.
Don't really uninstall anything; just go through the motions.
The syntax for the verify command is:
rpm -V|-y| -- verify[package-selection-options]
Verify mode compares information about the installed files in a package with information about the files that came in the original package and displays any discrepancies. The information compared includes the size, MD5 sum, permissions, type, owner, and group of each file. Uninstalled files are ignored.
The package selection options include those available for query mode, as well as the following:
Ignore missing files.
Ignore MD5 checksum errors.
Ignore PGP checking errors.
The output is formatted as an eight-character string, possibly followed by a "c" to indicate a configuration file, and then the filename. Each of the eight characters in the string represents the result of comparing one file attribute to the value of that attribute from the RPM database. A period (.) indicates that the file passed that test. The following characters indicate failure of the corresponding test:
|M||Mode (includes permissions and file type)|
The syntax of the command to rebuild the RPM database is:
You also can build a new database:
The options available with the database rebuild mode are the --dbpath and --root options described earlier under "General options".
RPM packages may have a PGP signature built into them. PGP configuration information is read from /etc/rpmrc. The syntax of the signature-check mode is:
The signature-checking options are:
Don't check any GPG signatures.
Don't check any MD5 signatures.
Don't check any PGP signatures.
Two other options let you add signatures to packages:
- --addsign binary-pkgfile...
Generate and append new signatures to those that already exist in the specified binary packages.
- --resign binary-pkgfile...
Generate and insert new signatures in the specified binary packages, removing any existing signatures.