Sunday, November 13, 2011

Linux Yum commands

Display available updates for installed software
$ yum list updates
Apply updates
$ yum update 
List installed packages
$ yum list installed <package-name>
# e.g.
$ yum list installed httpd
$ rpm -qa | grep httpd*

Check for and update a package
$ yum update <package-name>

Search a package or list all
$ yum list <package-name/regex/wildcard>
$ yum list all

# list group packages
$ yum grouplist

Install a package
$ yum install <package-name>

Remove/Uninstall a package
$ yum remove <package-name>

Install/Update group packages
$ yum groupinstall "Development Tools"
$ yum groupupdate "Development Tools"

List packages that are not official RHN
$ yum list extras

Find out which package is a file from
$ yum whatprovides <filename>

No comments:

Post a Comment