Common YUM commands for querying software repositories for package information and availability, installation or removal.

Applicable to Centos Versions:

  • Centos 5.x
  • Centos 6.x


Explanation of requirements.

  1. An Official Centos install
  2. Working RPM and Yum

Yum Commands (Yellowdog Update Manager)

Here are a few of the most used yum commands:

  1. Display your currently installed software repositories enabled or disabled and the status of each:
  2. Search the currently enabled repos for a specific string (in this case we’re wondering what php packages are available):
  3. Find out what package a particular file belongs to:
  4. Find useful information about a package:
  5. Find the dependencies of a specific package:
  6. List the software groups available for install:
  7. Install a specific group of packages:
  8. Install an RPM downloaded elsewhere using yum to solve dependencies:
  9. Install a package with yum:
  10. Remove a package with yum:
  11. Clean out the yum cache of headers, metadata, downloaded packages, etc (man yum for more info):
  12. Perform a system-wide update on all packages, including the kernel (note: kernel updates require a reboot to use the new kernel):
  13. Useful Yum plugins:

Common Problems & Fixes

Description of common problems here, including links to known common problems if located on another site.

More Information

Any additional information or notes.


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

Added Reading

Last Modified: 22 Oct, 2012 at 08:26:35