Common RPM (RedHat Package Manager) commands to obtain information about RPM packages installed on the system, Install, Remove or otherwise manipulate system packages.

Applicable to Centos Versions:

  • Centos 5.x
  • Centos 6.x

Requirements

Explanation of requirements.

  1. An Official Centos install
  2. Installed & working RPM (This should be default)

RPM Commands (RedHat Package Manager)

Here are a few of the most used RPM commands:

  1. Install a local RPM:
  2. Remove a locally installed RPM:
  3. Upgrade/Update a locally installed RPM:
  4. Find out what package a particular file belongs to:
  5. Find useful information about a package:
  6. Find out when a package was installed:
  7. List the dependencies of a package:
  8. List all gpg keys known by RPM on the system:
  9. Install an RPM from a website or anonymous FTP server:
  10. Repair and rebuild a corrupted RPM database:
  11. Find out what locations the files from a specific RPM were installed to:
  12. Make a text file of all the packages currently installed on the system sorted alphabetically:
  13. Make a CSV file with all currently installed packages sorted alphabetically by group:

Common Problems & Fixes

Check the Centos.org wiki for further useful information and hints.

More Information

Any additional information or notes.

Disclaimer

We test this stuff on our own machines, really we do. But you may run into problems, if you do, come to #centoshelp on irc.freenode.net

Added Reading

Last Modified: 22 Oct, 2012 at 08:25:33