How to install packages with yum

Posted on 04th February 2014

yum (Yellow dog Updater, Modified) is a package manager that allows quick and easy installation of packages on RPM based Linux distributions like RHEL, CentOS, etc.. It is the default package manager on CentOS.

Yum search various repositories for packages and their dependencies, fetch them and install those RPMs together.

Typically yum is invoked from the command line even though a GUI version called Yum Extender (yumex) also exists.

The following are some of the most commonly used yum commands

To install a package :

yum install <package name>

To update a package :

yum update <package name>
If package name is omitted, yum will update all installed packages

To remove a package and it's dependencies :

yum remove <package name>

To find packages that contain the specified keyword :

yum search <keyword>
The specified keyword is searched on package names, package summary, descriptions and url

To list available packages :

yum list
You could specify a package name with this command to check if that package is available or not

To list package information :

yum info <package name>This command will output detailed information about a package like summary, description, package version etc.,


One or more package names can be specified when installing, removing, updating, listing etc., You could also have wildcard characters in package names

Post a comment


Nothing the first to share wisdom.