For the most up-to-date information, we recommend you read the man page:
$ man yum
Below are some command that may be useful
To get help on yum options and commands.
$ yum help
To see the current list of updates available.
$ yum check-update
To install all updates available for packages.
$ yum update
To update an individual package.
$ yum update package-name
To update all packages when there are failed dependencies.
$ yum –skip-broken update
To see your current list of repositories.
$ yum repolist
To search your repositories to find packages to install.
$ yum search package-name
To list installed packages or location of repository for package returned from search.
$ yum list package-name
$ yum list | grep name
To install a package.
$ yum install package-name
To install a downloaded RPM.
$ yum install package-name.rpm
To provide information on a specific library.
$ yum provides library-name
For example:
$ yum provides libcrypt.so.1
To remove all cached data.
$ yum clean all
To determine which package contains a particular pathname and file.
$ yum whatprovides */Time/HiRes.pm
To list all packages installed or available by group.
$ yum grouplist
To get detail information about the group package use.
$ yum groupinfo 'Development Tools'
To install a specific software group use.
$ yum groupinstall 'Development Tools'