Friday, October 2, 2009

Useful YUM Commands

* yum install package1 [package2]
installs the specified package(s)

* yum update package1 [package2]
updates the specified package(s)

* yum remove package1 [package2]
removes the specified package(s)

* yum info package1 [package2]
shows the information for the specified package(s)

* yum search string1 [string2]
finds all packages wherein the name, description or summary matches the specified string(s)

* yum localinstall rpmfile1 [rpmfile2]
installs the specified rpm file(s)

* yum localupdate rpmfile1 [rpmfile2]
updates the rpm file(s)

* yum update
updates all packages

* yum list installed
shows all the installed packages

* yum list updates
shows all the packages that has updates available

No comments:

Quote of the Day