Useful Yum Commands

by Stephen on October 26, 2009

Here are some very useful Yum commands:

  1. yum check-update
    This allows you to check to see if there is any update available for your installed packages.
     
  2. yum update
    This will update all packages to the latest version.
     
  3. yum update <package name>
    Use this to just update one package at a time.
     
  4. yum search <keyword>
    You can use this command to search for any packages containing specific keyword. Pretty useful to locate the full name of a particular package.
     
  5. yum install <package name>
    This allows you to install the latest version of a package. Yum will automatically install all dependencies.
     
  6. yum remove <package name>
    Used to delete/remove a package, along with its dependencies if any.
     
  7. yum localinstall <absolute path to package>
    With “yum install”, yum automatically downloads the package for you.  In case you already downloaded the package yourself, you  can use this command to install it. Make sure to state the full path to the package you downloaded.  i.e. yum localinstall /home/test.tar.gz
     
  8. yum info <package name>
    Lists information about a package.
     

If you know more, please add to the list!

{ 1 comment… read it below or add one }

Tony River July 8, 2011 at 11:27 pm

Pretty useful.

Reply

Leave a Comment

Previous post:

Next post: