rpm¶
Redhat Package Manager. "rpm is a powerful Package Manager, which can be used to build, install, query, verify, update, and erase individual software packages." - man rpm
Tricks¶
Show installed keys¶
Show extended info about all keys¶
Show information about an rpm file¶
Show all installed packages and when they were installed¶
Show information about the installed wget package¶
Output formatted information about packages¶
More info on queryformat: http://www.rpm.org/max-rpm/ch-queryformat-tags.html
Show which package installed a file¶
Show all files that were installed by package wget¶
Show all files in a package that is not yet installed¶
Show which documentation files get installed with a package¶
Show what has changed on the system since installing a package¶
This will verify file integrity and show you what has changed for each file.
Show installation and uninstallation scripts¶
Check the integrity of an RPM¶
Show which packages are hogging all the space¶
Show a table about RPM files versions and creators in a directory¶
Show what files were installed into /var/log¶
rpm -qa --filesbypkg | grep " /var/log" # space before /var is necessary to weed out things like /usr/var
Rebuild a corrupt rpm db¶
See Also¶
- How to create RPMs - http://fedoraproject.org/wiki/How_to_create_an_RPM_package
- yum - supplement to rpm command