yum ( Yellowdog Updater Modified ) -  is  an  interactive,  rpm  based,  package manager

To search for a package
$ sudo yum search <package_name>
$ sudo yum search htop

To install package
$ sudo yum install <package_name>
$ sudo yum install htop

To remove a package 
$ sudo yum remove <package_name>
$ sudo yum remove bind

To update a package
$ sudo yum update <package_name>
$ sudo yum update firefox

To list a package
$ sudo yum list <package_name>
$ sudo yum list httpd

To get information about a package
$ sudo yum info <package_name>
$ sudo yum info openssh

To list all available packages 
$ sudo yum list

To list all installed packages
$ sudo yum list installed

To find which package a specific file belongs to
$ sudo yum provides /etc/vsftpd/vsftpd.conf

To check for available updates
$ sudo yum check-update

To update the system
$ sudo yum update

To list all available group packages
$ sudo yum grouplist

To install group packages
$ sudo yum groupinstall "Development Tools"

To update a group packages
$ sudo yum groupupdate 'Development Tools'

To remove group packages
$ sudo yum groupremove 'Development Tools'

To list enabled Yum repositories
$ sudo yum repolist

To list all enabled and disabled Yum repositories
$ sudo yum repolist all

To invoke yum shell
$ sudo yum shell
> info httpd

To clean Yum cache
$ sudo yum clean all

To view history of Yum
$ sudo yum history

To read commands from text file and execute
$ cat yum_command.txt
info httpd
repolist

$ sudo yum shell yum_command.txt

 

regards,
T.Dhanasekar