rpm is a tool that can be used to find, verify, install, update and delete applications.
- Binary: <name>-<version>-<release>.<architecture>.rpm
- Source: <name>-<version>-<release>.src.rpm
Frequently Used Options
Locate and Verify Installation Packages
| Option |
Description |
| -q or ‑‑query |
Query the package. |
| -V or ‑‑verify |
Verify the package. |
| -K or ‑‑checksig |
Check all the digest and signatures. |
Select Options
| Option |
Description |
| -a or ‑‑all |
Show all installed packages. |
| -f or ‑‑file FILE |
Show FILE owned by package. |
| -p or ‑‑package PACKAGE_FILE |
Show an uninstalled package PACKAGE_FILE. |
| ‑‑whatprovides CAPABILITY |
Show all packages that provide CAPABILITY ability. |
| ‑‑whatrequires CAPABILITY |
Show all packages that rely on CAPABILITY for normal use. |
Query Options
| Option |
Description |
| ‑‑changelog |
Show changes to the package. |
| -c or ‑‑configfiles |
Show only configuration files. |
| -d or ‑‑docfiles |
Show only documentation files. |
| -i or ‑‑info |
Show package information. |
| -l or ‑‑list |
Show package files. |
| ‑‑provides |
Show package capabilities. |
| -R or ‑‑requires |
Show package’s dependencies. |
| ‑‑scripts |
Show package scriptlet(s). |
Verify Options
| Option |
Description |
| ‑‑nodeps |
Do not check package dependencies. |
| ‑‑nodigest |
Do not check packages or header summaries. |
Install, Update and Delete Installation Packages
| Option |
Description |
| -i or ‑‑install |
Install packages. |
| -U or ‑‑update |
Update or install packages. |
| -F or ‑‑freshen |
Update packages. |
| -e or ‑‑erase |
Remove packages. |
Install and Upgrade Options
| Option |
Description |
| -h or ‑‑hash |
Print hash marks when installing the package. |
| ‑‑nodigest |
Do not check packages or header summaries. |
| ‑‑nosignature |
Do not check packages or header signatures. |
| ‑‑nodeps |
Do not check package’s dependencies. |
| ‑‑replacepkgs |
Install these packages, even if they replace files in other installed packages. |
| ‑‑test |
Check the package installation process for conflicts, but do not perform the installation operation. |
Upgrade Options
| Option |
Description |
| ‑‑force |
Similar to ‑‑replacepkgs, ‑‑replacefiles, and ‑‑oldpackage. |
| ‑‑oldpackage |
Downgrade the version of the package to the previous version. |
Erase Options
| Option |
Description |
| ‑‑allmatches |
Remove all versions of the specified package. |
| ‑‑nodeps |
Do not check package’s dependencies. |
| ‑‑test |
Check the package uninstallation process, but do not perform the uninstallation operation, usually used in conjunction with -vv option. |
General Options
| Option |
Description |
| -v |
Output detailed processing messages. |
| -vv |
Output more detailed processing messages. |
Rebuild Database Options
| Option |
Description |
| ‑‑initdb |
Create a new database. |
| ‑‑rebuilddb |
Create database indexes through package headers. |
Refereces
RPM Package Manager,
RPM Documentation
Buy me a coffee