In Linux System we used to install RPM packages through RPM command, but many times we encounter dependencies problem while installing packages and for same we need to install them manually one by one. So we could use YUM command which will automatically resolve dependences during package installation.
YUM (Yellowdog Update Manager) also allow automatic update, package and dependency management for RPM based distribution, it is same as Advanced Packaging tool (APT) used in Ubuntu or Debian. YUM maintain and works with software repositories, which can be located remotely or locally.

In this post, we will like to cover YUM commands with its many options that Linux Administrator should need to know while working or getting advantages from YUM command.

1. Install a Package – yum install


YUM command could easily able to install packages and resolve packages dependencies automatically. In below box we could see command used to install packages in YUM command.

# yum install mysql-server
            or
# yum install mysql-server -y

This would ask for yes once after checking dependencies from repositories. See below scroll box for complete detail.

[root@srv103 ~]# yum install mysql-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Server                                                                                                                                                                | 3.8 kB     00:00 ...
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql-server.x86_64 0:5.1.71-1.el6 will be installed
--> Processing Dependency: mysql = 5.1.71-1.el6 for package: mysql-server-5.1.71-1.el6.x86_64
--> Processing Dependency: perl-DBI for package: mysql-server-5.1.71-1.el6.x86_64
--> Processing Dependency: perl-DBD-MySQL for package: mysql-server-5.1.71-1.el6.x86_64
--> Processing Dependency: perl(DBI) for package: mysql-server-5.1.71-1.el6.x86_64
--> Running transaction check
---> Package mysql.x86_64 0:5.1.71-1.el6 will be installed
---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be installed
---> Package perl-DBI.x86_64 0:1.609-4.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================
 Package                                           Arch                                      Version                                         Repository                                 Size
=============================================================================================================================================================================================
Installing:
 mysql-server                                      x86_64                                    5.1.71-1.el6                                    Server                                    8.6 M
Installing for dependencies:
 mysql                                             x86_64                                    5.1.71-1.el6                                    Server                                    893 k
 perl-DBD-MySQL                                    x86_64                                    4.013-3.el6                                     Server                                    134 k
 perl-DBI                                          x86_64                                    1.609-4.el6                                     Server                                    705 k

Transaction Summary
=============================================================================================================================================================================================
Install       4 Package(s)

Total download size: 10 M
Installed size: 29 M
Is this ok [y/N]: y
Downloading Packages:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                         60 MB/s |  10 MB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : perl-DBI-1.609-4.el6.x86_64                                                                                                                                               1/4
  Installing : perl-DBD-MySQL-4.013-3.el6.x86_64                                                                                                                                         2/4
  Installing : mysql-5.1.71-1.el6.x86_64                                                                                                                                                 3/4
  Installing : mysql-server-5.1.71-1.el6.x86_64                                                                                                                                          4/4
  Verifying  : perl-DBD-MySQL-4.013-3.el6.x86_64                                                                                                                                         1/4
  Verifying  : mysql-server-5.1.71-1.el6.x86_64                                                                                                                                          2/4
  Verifying  : mysql-5.1.71-1.el6.x86_64                                                                                                                                                 3/4
  Verifying  : perl-DBI-1.609-4.el6.x86_64                                                                                                                                               4/4

Installed:
  mysql-server.x86_64 0:5.1.71-1.el6

Dependency Installed:
  mysql.x86_64 0:5.1.71-1.el6                                perl-DBD-MySQL.x86_64 0:4.013-3.el6                                perl-DBI.x86_64 0:1.609-4.el6

Complete!

2. Remove a Package – yum remove or yum erase


YUM could also remove RPM packages. Below command will show how to remove RPM packages.

# yum remove mysql-server -y
            or
# yum erase mysql-server -y
[root@srv103 ~]# yum remove mysql-server -y
Loaded plugins: fastestmirror
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package mysql-server.x86_64 0:5.1.71-1.el6 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================
 Package                                         Arch                                      Version                                          Repository                                  Size
=============================================================================================================================================================================================
Removing:
 mysql-server                                    x86_64                                    5.1.71-1.el6                                     @Server                                     25 M

Transaction Summary
=============================================================================================================================================================================================
Remove        1 Package(s)

Installed size: 25 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing    : mysql-server-5.1.71-1.el6.x86_64                                                                                                                                          1/1
  Verifying  : mysql-server-5.1.71-1.el6.x86_64                                                                                                                                          1/1

Removed:
  mysql-server.x86_64 0:5.1.71-1.el6

Complete!

DH_Banner_728x90

3. Update a Package – yum update or yum upgrade


YUM has facility to update RPM packages which were already installed. if run without any package name then it will try to update complete Operting system, this allow you to upgrade your Operting system version to higher version if available. With this could we could also upgrade specfic RPM packages as well. In case that specfic RPM package is not installed, then it will not install or upgrade anything.Below mention way to upgrade RPM packages.

#yum update mysql-server -y # Update specfic Packages
#yum upgrade mysql-server -y # Update specfic Packages
          or
#yum update
#yum upgrade
[root@srv103 ~]# yum update mysql-server -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.den.host-engine.com
 * extras: centos.mia.host-engine.com
 * updates: centos.eecs.wsu.edu
base                                                                                                                                                                                                                  | 3.7 kB     00:00
extras                                                                                                                                                                                                                | 2.9 kB     00:00
updates                                                                                                                                                                                                               | 3.4 kB     00:00
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package mysql-server.x86_64 0:5.1.71-1.el6 will be updated
---> Package mysql-server.x86_64 0:5.1.73-5.el6_6 will be an update
--> Processing Dependency: mysql = 5.1.73-5.el6_6 for package: mysql-server-5.1.73-5.el6_6.x86_64
--> Running transaction check
---> Package mysql.x86_64 0:5.1.71-1.el6 will be updated
---> Package mysql.x86_64 0:5.1.73-5.el6_6 will be an update
--> Processing Dependency: mysql-libs = 5.1.73-5.el6_6 for package: mysql-5.1.73-5.el6_6.x86_64
--> Running transaction check
---> Package mysql-libs.x86_64 0:5.1.71-1.el6 will be updated
---> Package mysql-libs.x86_64 0:5.1.73-5.el6_6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================================================================
 Package                                                     Arch                                                  Version                                                         Repository                                           Size
=============================================================================================================================================================================================================================================
Updating:
 mysql-server                                                x86_64                                                5.1.73-5.el6_6                                                  base                                                8.6 M
Updating for dependencies:
 mysql                                                       x86_64                                                5.1.73-5.el6_6                                                  base                                                894 k
 mysql-libs                                                  x86_64                                                5.1.73-5.el6_6                                                  base                                                1.2 M

Transaction Summary
=============================================================================================================================================================================================================================================
Upgrade       3 Package(s)

Total download size: 11 M
Downloading Packages:
(1/3): mysql-5.1.73-5.el6_6.x86_64.rpm                                                                                                                                                                                | 1.3 MB     00:04
http://centos.den.host-engine.com/6.7/os/x86_64/Packages/mysql-5.1.73-5.el6_6.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=base clean metadata
Trying other mirror.
(1/3): mysql-5.1.73-5.el6_6.x86_64.rpm                                                                                                                                                                                | 894 kB     00:05
(2/3): mysql-libs-5.1.73-5.el6_6.x86_64.rpm                                                                                                                                                                           | 1.2 MB     00:07
(3/3): mysql-server-5.1.73-5.el6_6.x86_64.rpm                                                                                                                                                                         | 8.6 MB     00:42
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                        168 kB/s |  11 MB     01:05
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
 Userid : CentOS-6 Key (CentOS 6 Official Signing Key) 
 Package: centos-release-6-5.el6.centos.11.1.x86_64 (@anaconda-CentOS-201311272149.x86_64/6.5)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : mysql-libs-5.1.73-5.el6_6.x86_64                                                                                                                                                                                          1/6
  Updating   : mysql-5.1.73-5.el6_6.x86_64                                                                                                                                                                                               2/6
  Updating   : mysql-server-5.1.73-5.el6_6.x86_64                                                                                                                                                                                        3/6
  Cleanup    : mysql-server-5.1.71-1.el6.x86_64                                                                                                                                                                                          4/6
  Cleanup    : mysql-5.1.71-1.el6.x86_64                                                                                                                                                                                                 5/6
  Cleanup    : mysql-libs-5.1.71-1.el6.x86_64                                                                                                                                                                                            6/6
  Verifying  : mysql-libs-5.1.73-5.el6_6.x86_64                                                                                                                                                                                          1/6
  Verifying  : mysql-5.1.73-5.el6_6.x86_64                                                                                                                                                                                               2/6
  Verifying  : mysql-server-5.1.73-5.el6_6.x86_64                                                                                                                                                                                        3/6
  Verifying  : mysql-libs-5.1.71-1.el6.x86_64                                                                                                                                                                                            4/6
  Verifying  : mysql-server-5.1.71-1.el6.x86_64                                                                                                                                                                                          5/6
  Verifying  : mysql-5.1.71-1.el6.x86_64                                                                                                                                                                                                 6/6

Updated:
  mysql-server.x86_64 0:5.1.73-5.el6_6

Dependency Updated:
  mysql.x86_64 0:5.1.73-5.el6_6                                                                                      mysql-libs.x86_64 0:5.1.73-5.el6_6

Complete!

4. Check Update for a Package – yum check-update


This provide facility to check update before installation, This will provide about any depenedices information regarding package.Below mention command used to check update.

# yum check-update openssh-server
[root@srv103 ~]# yum check-update openssh-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.den.host-engine.com
 * extras: centos.mia.host-engine.com
 * updates: centos.eecs.wsu.edu

openssh-server.x86_64          5.3p1-112.el6_7              updates

5. List of available packages – yum list


This would provide list of packages in YUM repositories, that we could install. This would provide easy terminal interface which provide detail of Package name, version and repositories name.

# yum list

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.den.host-engine.com
 * extras: centos.mia.host-engine.com
 * updates: centos.eecs.wsu.edu
Installed Packages
MAKEDEV.x86_64                            3.24-6.el6                     @anaconda-CentOS-20131127
2149.x86_64/6.5
acl.x86_64                                2.2.49-6.el6                   @anaconda-CentOS-20131127
2149.x86_64/6.5
aic94xx-firmware.noarch                   30-2.el6                       @anaconda-CentOS-20131127
2149.x86_64/6.5
alsa-lib.x86_64                           1.0.22-3.el6                   @Server
apache-jasper.noarch                      5.5.28-3.el6                   @Server
apache-tomcat-apis.noarch                 0.1-1.el6                      @Server
.
.
.

6. GroupList of available packages – yum grouplist


YUM repositories has groups which are categorises on the basis type of packages. we could install or remove complete group in one command.Below command show get group list.

#yum grouplist

yum grouplist output

[root@srv103 ~]# yum grouplist
Loaded plugins: fastestmirror
Setting up Group Process
Loading mirror speeds from cached hostfile
 * base: centos.den.host-engine.com
 * extras: centos.mia.host-engine.com
 * updates: centos.eecs.wsu.edu
base/group_gz                                                                                                                                                          | 219 kB     00:01
Installed Groups:
   Additional Development
   E-mail server
   FTP server
   Legacy UNIX compatibility
   MySQL Database client
   MySQL Database server
   Networking Tools
   Perl Support
   Security Tools
   Web Server
Available Groups:
   Backup Client
   Backup Server
   Base
   CIFS file server
   Client management tools
   Compatibility libraries
   Console internet tools
   Debugging Tools
   Desktop
   Desktop Debugging and Performance Tools
   Desktop Platform
   Desktop Platform Development
   Development tools
   Dial-up Networking Support
   Directory Client
   Directory Server
   Eclipse
   Emacs
   FCoE Storage Client
   Fonts
   General Purpose Desktop
   Graphical Administration Tools
   Graphics Creation Tools
   Guest Agents
   Hardware monitoring utilities
   High Availability
   High Availability Management
   Identity Management Server
   Infiniband Support
   Input Methods
   Internet Applications
   Internet Browser
   Java Platform
   KDE Desktop
   Large Systems Performance
   Legacy X Window System compatibility
   Load Balancer
   Mainframe Access
   Messaging Client Support
   NFS file server
   Network Infrastructure Server
   Network Storage Server
   Network file system client
   Office Suite and Productivity
   PHP Support
   Performance Tools
   PostgreSQL Database client
   PostgreSQL Database server
   Print Server
   Printing client
   Remote Desktop Clients
   Resilient Storage
   Ruby Support
   SNMP Support
   Scalable Filesystems
   Scientific support
   Server Platform
   Server Platform Development
   Smart card support
   Storage Availability Tools
   System Management
   System administration tools
   TeX support
   Technical Writing
   TurboGears application framework
   Virtualization
   Virtualization Client
   Virtualization Platform
   Virtualization Tools
   Web Servlet Engine
   Web-Based Enterprise Management
   X Window System
   iSCSI Storage Client
Available Language Groups:
   Afrikaans Support [af]
   Albanian Support [sq]
   Amazigh Support [ber]
   Arabic Support [ar]
   Armenian Support [hy]
   Assamese Support [as]
   Azerbaijani Support [az]
   Basque Support [eu]
   Belarusian Support [be]
   Bengali Support [bn]
   Bhutanese Support [dz]
   Brazilian Portuguese Support [pt_BR]
   Breton Support [br]
   Bulgarian Support [bg]
   Catalan Support [ca]
   Chhattisgarhi Support [hne]
   Chichewa Support [ny]
   Chinese Support [zh]
   Coptic Support [cop]
   Croatian Support [hr]
   Czech Support [cs]
   Danish Support [da]
   Dutch Support [nl]
   English (UK) Support [en_GB]
   Esperanto Support [eo]
   Estonian Support [et]
   Ethiopic Support [am]
   Faroese Support [fo]
   Fijian Support [fj]
   Filipino Support [fil]
   Finnish Support [fi]
   French Support [fr]
   Frisian Support [fy]
   Friulian Support [fur]
   Gaelic Support [gd]
   Galician Support [gl]
   Georgian Support [ka]
   German Support [de]
   Greek Support [el]
   Gujarati Support [gu]
   Hebrew Support [he]
   Hiligaynon Support [hil]
   Hindi Support [hi]
   Hungarian Support [hu]
   Icelandic Support [is]
   Indonesian Support [id]
   Interlingua Support [ia]
   Inuktitut Support [iu]
   Irish Support [ga]
   Italian Support [it]
   Japanese Support [ja]
   Kannada Support [kn]
   Kashmiri Support [ks]
   Kashubian Support [csb]
   Kazakh Support [kk]
   Khmer Support [km]
   Kinyarwanda Support [rw]
   Konkani Support [kok]
   Korean Support [ko]
   Kurdish Support [ku]
   Lao Support [lo]
   Latin Support [la]
   Latvian Support [lv]
   Lithuanian Support [lt]
   Low Saxon Support [nds]
   Luxembourgish Support [lb]
   Macedonian Support [mk]
   Maithili Support [mai]
   Malagasy Support [mg]
   Malay Support [ms]
   Malayalam Support [ml]
   Maltese Support [mt]
   Manx Support [gv]
   Maori Support [mi]
   Marathi Support [mr]
   Mongolian Support [mn]
   Myanmar (Burmese) Support [my]
   Nepali Support [ne]
   Northern Sotho Support [nso]
   Norwegian Support [nb]
   Occitan Support [oc]
   Oriya Support [or]
   Persian Support [fa]
   Polish Support [pl]
   Portuguese Support [pt]
   Punjabi Support [pa]
   Romanian Support [ro]
   Russian Support [ru]
   Sanskrit Support [sa]
   Sardinian Support [sc]
   Serbian Support [sr]
   Sindhi Support [sd]
   Sinhala Support [si]
   Slovak Support [sk]
   Slovenian Support [sl]
   Somali Support [so]
   Southern Ndebele Support [nr]
   Southern Sotho Support [st]
   Spanish Support [es]
   Swahili Support [sw]
   Swati Support [ss]
   Swedish Support [sv]
   Tagalog Support [tl]
   Tajik Support [tg]
   Tamil Support [ta]
   Telugu Support [te]
   Tetum Support [tet]
   Thai Support [th]
   Tibetan Support [bo]
   Tsonga Support [ts]
   Tswana Support [tn]
   Turkish Support [tr]
   Turkmen Support [tk]
   Ukrainian Support [uk]
   Upper Sorbian Support [hsb]
   Urdu Support [ur]
   Uzbek Support [uz]
   Venda Support [ve]
   Vietnamese Support [vi]
   Walloon Support [wa]
   Welsh Support [cy]
   Xhosa Support [xh]
   Zulu Support [zu]
Done

7. Install Group of Packages – yum groupinstall


This way we can install group of packages directly. we need not to need to install them one by one. This will also automatically pickup its dependencies as well. Below mention command used to install group packages.

#yum groupinstall “Web Server” -y

yum groupinstall “Web Server” -y output

[root@srv103 ~]# yum groupinstall "Web Server" -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.den.host-engine.com
 * extras: centos.mia.host-engine.com
 * updates: centos.eecs.wsu.edu
Setting up Group Process
Checking for new repos for mirrors
Resolving Dependencies
--> Running transaction check
---> Package crypto-utils.x86_64 0:2.4.1-24.2.el6 will be installed
--> Processing Dependency: perl(Newt) for package: crypto-utils-2.4.1-24.2.el6.x86_64
---> Package httpd.x86_64 0:2.2.15-29.el6.centos will be updated
--> Processing Dependency: httpd = 2.2.15-29.el6.centos for package: httpd-devel-2.2.15-29.el6.centos.x86_64
---> Package httpd.x86_64 0:2.2.15-47.el6.centos.1 will be an update
--> Processing Dependency: httpd-tools = 2.2.15-47.el6.centos.1 for package: httpd-2.2.15-47.el6.centos.1.x86_64
---> Package httpd-manual.noarch 0:2.2.15-29.el6.centos will be updated
---> Package httpd-manual.noarch 0:2.2.15-47.el6.centos.1 will be an update
---> Package mod_perl.x86_64 0:2.0.4-11.el6_5 will be installed
--> Processing Dependency: perl(ExtUtils::MakeMaker) for package: mod_perl-2.0.4-11.el6_5.x86_64
--> Processing Dependency: perl(BSD::Resource) for package: mod_perl-2.0.4-11.el6_5.x86_64
---> Package mod_ssl.x86_64 1:2.2.15-47.el6.centos.1 will be installed
---> Package mod_wsgi.x86_64 0:3.2-7.el6 will be installed
---> Package webalizer.x86_64 0:2.21_02-3.3.el6 will be installed
--> Processing Dependency: libgd.so.2()(64bit) for package: webalizer-2.21_02-3.3.el6.x86_64
--> Running transaction check
---> Package gd.x86_64 0:2.0.35-11.el6 will be installed
--> Processing Dependency: libXpm.so.4()(64bit) for package: gd-2.0.35-11.el6.x86_64
---> Package httpd-devel.x86_64 0:2.2.15-29.el6.centos will be updated
---> Package httpd-devel.x86_64 0:2.2.15-47.el6.centos.1 will be an update
---> Package httpd-tools.x86_64 0:2.2.15-29.el6.centos will be updated
---> Package httpd-tools.x86_64 0:2.2.15-47.el6.centos.1 will be an update
---> Package perl-BSD-Resource.x86_64 0:1.29.03-3.el6 will be installed
---> Package perl-ExtUtils-MakeMaker.x86_64 0:6.55-141.el6_7.1 will be installed
--> Processing Dependency: perl = 4:5.10.1-141.el6_7.1 for package: perl-ExtUtils-MakeMaker-6.55-141.el6_7.1.x86_64
--> Processing Dependency: perl-devel for package: perl-ExtUtils-MakeMaker-6.55-141.el6_7.1.x86_64
--> Processing Dependency: perl(Test::Harness) for package: perl-ExtUtils-MakeMaker-6.55-141.el6_7.1.x86_64
---> Package perl-Newt.x86_64 0:1.08-26.el6 will be installed
--> Running transaction check
---> Package libXpm.x86_64 0:3.5.10-2.el6 will be installed
---> Package perl.x86_64 4:5.10.1-136.el6 will be updated
--> Processing Dependency: perl = 4:5.10.1-136.el6 for package: 1:perl-Pod-Simple-3.13-136.el6.x86_64
--> Processing Dependency: perl = 4:5.10.1-136.el6 for package: 3:perl-version-0.77-136.el6.x86_64
--> Processing Dependency: perl = 4:5.10.1-136.el6 for package: 1:perl-Pod-Escapes-1.04-136.el6.x86_64
--> Processing Dependency: perl = 4:5.10.1-136.el6 for package: 1:perl-Module-Pluggable-3.90-136.el6.x86_64
--> Processing Dependency: perl = 4:5.10.1-136.el6 for package: perl-IO-Compress-Base-2.021-136.el6.x86_64
--> Processing Dependency: perl = 4:5.10.1-136.el6 for package: perl-IO-Compress-Bzip2-2.021-136.el6.x86_64
--> Processing Dependency: perl = 4:5.10.1-136.el6 for package: 4:perl-libs-5.10.1-136.el6.x86_64
---> Package perl.x86_64 4:5.10.1-141.el6_7.1 will be an update
---> Package perl-Test-Harness.x86_64 0:3.17-141.el6_7.1 will be installed
---> Package perl-devel.x86_64 4:5.10.1-141.el6_7.1 will be installed
--> Processing Dependency: perl(ExtUtils::ParseXS) for package: 4:perl-devel-5.10.1-141.el6_7.1.x86_64
--> Processing Dependency: glibc-devel for package: 4:perl-devel-5.10.1-141.el6_7.1.x86_64
--> Processing Dependency: gdbm-devel for package: 4:perl-devel-5.10.1-141.el6_7.1.x86_64
--> Running transaction check
---> Package gdbm-devel.x86_64 0:1.8.0-38.el6 will be installed
--> Processing Dependency: gdbm = 1.8.0-38.el6 for package: gdbm-devel-1.8.0-38.el6.x86_64
---> Package glibc-devel.x86_64 0:2.12-1.166.el6_7.3 will be installed
--> Processing Dependency: glibc-headers = 2.12-1.166.el6_7.3 for package: glibc-devel-2.12-1.166.el6_7.3.x86_64
--> Processing Dependency: glibc = 2.12-1.166.el6_7.3 for package: glibc-devel-2.12-1.166.el6_7.3.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.166.el6_7.3.x86_64
---> Package perl-ExtUtils-ParseXS.x86_64 1:2.2003.0-141.el6_7.1 will be installed
---> Package perl-IO-Compress-Base.x86_64 0:2.021-136.el6 will be updated
---> Package perl-IO-Compress-Base.x86_64 0:2.021-141.el6_7.1 will be an update
---> Package perl-IO-Compress-Bzip2.x86_64 0:2.021-136.el6 will be updated
---> Package perl-IO-Compress-Bzip2.x86_64 0:2.021-141.el6_7.1 will be an update
---> Package perl-Module-Pluggable.x86_64 1:3.90-136.el6 will be updated
---> Package perl-Module-Pluggable.x86_64 1:3.90-141.el6_7.1 will be an update
---> Package perl-Pod-Escapes.x86_64 1:1.04-136.el6 will be updated
---> Package perl-Pod-Escapes.x86_64 1:1.04-141.el6_7.1 will be an update
---> Package perl-Pod-Simple.x86_64 1:3.13-136.el6 will be updated
---> Package perl-Pod-Simple.x86_64 1:3.13-141.el6_7.1 will be an update
---> Package perl-libs.x86_64 4:5.10.1-136.el6 will be updated
---> Package perl-libs.x86_64 4:5.10.1-141.el6_7.1 will be an update
---> Package perl-version.x86_64 3:0.77-136.el6 will be updated
---> Package perl-version.x86_64 3:0.77-141.el6_7.1 will be an update
--> Running transaction check
---> Package gdbm.x86_64 0:1.8.0-36.el6 will be updated
---> Package gdbm.x86_64 0:1.8.0-38.el6 will be an update
---> Package glibc.x86_64 0:2.12-1.132.el6 will be updated
--> Processing Dependency: glibc = 2.12-1.132.el6 for package: glibc-common-2.12-1.132.el6.x86_64
---> Package glibc.x86_64 0:2.12-1.166.el6_7.3 will be an update
---> Package glibc-headers.x86_64 0:2.12-1.166.el6_7.3 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.12-1.166.el6_7.3.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.12-1.166.el6_7.3.x86_64
--> Running transaction check
---> Package glibc-common.x86_64 0:2.12-1.132.el6 will be updated
---> Package glibc-common.x86_64 0:2.12-1.166.el6_7.3 will be an update
---> Package kernel-headers.x86_64 0:2.6.32-573.12.1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================
 Package                      Arch        Version                          Repository    Size
==============================================================================================
Installing:
 crypto-utils                 x86_64      2.4.1-24.2.el6                   Server        76 k
 mod_perl                     x86_64      2.0.4-11.el6_5                   base         3.2 M
 mod_ssl                      x86_64      1:2.2.15-47.el6.centos.1         updates       95 k
 mod_wsgi                     x86_64      3.2-7.el6                        base          66 k
 webalizer                    x86_64      2.21_02-3.3.el6                  Server       128 k
Updating:
 httpd                        x86_64      2.2.15-47.el6.centos.1           updates      830 k
 httpd-manual                 noarch      2.2.15-47.el6.centos.1           updates      787 k
Installing for dependencies:
 gd                           x86_64      2.0.35-11.el6                    Server       142 k
 gdbm-devel                   x86_64      1.8.0-38.el6                     base          25 k
 glibc-devel                  x86_64      2.12-1.166.el6_7.3               updates      986 k
 glibc-headers                x86_64      2.12-1.166.el6_7.3               updates      615 k
 kernel-headers               x86_64      2.6.32-573.12.1.el6              updates      3.9 M
 libXpm                       x86_64      3.5.10-2.el6                     Server        51 k
 perl-BSD-Resource            x86_64      1.29.03-3.el6                    Server        35 k
 perl-ExtUtils-MakeMaker      x86_64      6.55-141.el6_7.1                 updates      294 k
 perl-ExtUtils-ParseXS        x86_64      1:2.2003.0-141.el6_7.1           updates       46 k
 perl-Newt                    x86_64      1.08-26.el6                      Server        72 k
 perl-Test-Harness            x86_64      3.17-141.el6_7.1                 updates      232 k
 perl-devel                   x86_64      4:5.10.1-141.el6_7.1             updates      424 k
Updating for dependencies:
 gdbm                         x86_64      1.8.0-38.el6                     base          29 k
 glibc                        x86_64      2.12-1.166.el6_7.3               updates      3.8 M
 glibc-common                 x86_64      2.12-1.166.el6_7.3               updates       14 M
 httpd-devel                  x86_64      2.2.15-47.el6.centos.1           updates      154 k
 httpd-tools                  x86_64      2.2.15-47.el6.centos.1           updates       77 k
 perl                         x86_64      4:5.10.1-141.el6_7.1             updates       10 M
 perl-IO-Compress-Base        x86_64      2.021-141.el6_7.1                updates       70 k
 perl-IO-Compress-Bzip2       x86_64      2.021-141.el6_7.1                updates       49 k
 perl-Module-Pluggable        x86_64      1:3.90-141.el6_7.1               updates       40 k
 perl-Pod-Escapes             x86_64      1:1.04-141.el6_7.1               updates       33 k
 perl-Pod-Simple              x86_64      1:3.13-141.el6_7.1               updates      213 k
 perl-libs                    x86_64      4:5.10.1-141.el6_7.1             updates      579 k
 perl-version                 x86_64      3:0.77-141.el6_7.1               updates       52 k

Transaction Summary
==============================================================================================
Install      17 Package(s)
Upgrade      15 Package(s)

Total download size: 41 M
Downloading Packages:
(3/32): gdbm-1.8.0-38.el6.x86_64.rpm                                   |  29 kB     00:00
(4/32): gdbm-devel-1.8.0-38.el6.x86_64.rpm                             |  25 kB     00:00
(5/32): glibc-2.12-1.166.el6_7.3.x86_64.rpm                            | 3.8 MB     00:19
(6/32): glibc-common-2.12-1.166.el6_7.3.x86_64.rpm                     |  14 MB     01:10
(7/32): glibc-devel-2.12-1.166.el6_7.3.x86_64.rpm                      | 986 kB     00:04
(8/32): glibc-headers-2.12-1.166.el6_7.3.x86_64.rpm                    | 615 kB     00:03
(9/32): httpd-2.2.15-47.el6.centos.1.x86_64.rpm                        | 830 kB     00:04
(10/32): httpd-devel-2.2.15-47.el6.centos.1.x86_64.rpm                 | 154 kB     00:00
(11/32): httpd-manual-2.2.15-47.el6.centos.1.noarch.rpm                | 787 kB     00:04
(12/32): httpd-tools-2.2.15-47.el6.centos.1.x86_64.rpm                 |  77 kB     00:00
(13/32): kernel-headers-2.6.32-573.12.1.el6.x86_64.rpm                 | 3.9 MB     00:20
(15/32): mod_perl-2.0.4-11.el6_5.x86_64.rpm                            | 3.2 MB     00:16
(16/32): mod_ssl-2.2.15-47.el6.centos.1.x86_64.rpm                     |  95 kB     00:00
(17/32): mod_wsgi-3.2-7.el6.x86_64.rpm                                 |  66 kB     00:00
(18/32): perl-5.10.1-141.el6_7.1.x86_64.rpm                            |  10 MB     00:50
(20/32): perl-ExtUtils-MakeMaker-6.55-141.el6_7.1.x86_64.rpm           | 294 kB     00:01
(21/32): perl-ExtUtils-ParseXS-2.2003.0-141.el6_7.1.x86_64.rpm         |  46 kB     00:00
(22/32): perl-IO-Compress-Base-2.021-141.el6_7.1.x86_64.rpm            |  70 kB     00:00
(23/32): perl-IO-Compress-Bzip2-2.021-141.el6_7.1.x86_64.rpm           |  49 kB     00:00
(24/32): perl-Module-Pluggable-3.90-141.el6_7.1.x86_64.rpm             |  40 kB     00:00
(26/32): perl-Pod-Escapes-1.04-141.el6_7.1.x86_64.rpm                  |  33 kB     00:00
(27/32): perl-Pod-Simple-3.13-141.el6_7.1.x86_64.rpm                   | 213 kB     00:00
(28/32): perl-Test-Harness-3.17-141.el6_7.1.x86_64.rpm                 | 232 kB     00:00
(29/32): perl-devel-5.10.1-141.el6_7.1.x86_64.rpm                      | 424 kB     00:01
(30/32): perl-libs-5.10.1-141.el6_7.1.x86_64.rpm                       | 579 kB     00:02
(31/32): perl-version-0.77-141.el6_7.1.x86_64.rpm                      |  52 kB     00:00
----------------------------------------------------------------------------------------------
Total                                                         177 kB/s |  41 MB     03:58
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : glibc-2.12-1.166.el6_7.3.x86_64                                           1/47
  Updating   : glibc-common-2.12-1.166.el6_7.3.x86_64                                    2/47
  Updating   : gdbm-1.8.0-38.el6.x86_64                                                  3/47
  Updating   : 1:perl-Pod-Escapes-1.04-141.el6_7.1.x86_64                                4/47
  Updating   : 1:perl-Pod-Simple-3.13-141.el6_7.1.x86_64                                 5/47
  Updating   : 3:perl-version-0.77-141.el6_7.1.x86_64                                    6/47
  Updating   : 4:perl-libs-5.10.1-141.el6_7.1.x86_64                                     7/47
  Updating   : 1:perl-Module-Pluggable-3.90-141.el6_7.1.x86_64                           8/47
  Updating   : 4:perl-5.10.1-141.el6_7.1.x86_64                                          9/47
  Updating   : perl-IO-Compress-Base-2.021-141.el6_7.1.x86_64                           10/47
  Installing : perl-BSD-Resource-1.29.03-3.el6.x86_64                                   11/47
  Installing : perl-Newt-1.08-26.el6.x86_64                                             12/47
  Installing : gdbm-devel-1.8.0-38.el6.x86_64                                           13/47
  Installing : libXpm-3.5.10-2.el6.x86_64                                               14/47
  Installing : gd-2.0.35-11.el6.x86_64                                                  15/47
  Updating   : httpd-tools-2.2.15-47.el6.centos.1.x86_64                                16/47
  Updating   : httpd-2.2.15-47.el6.centos.1.x86_64                                      17/47
  Installing : kernel-headers-2.6.32-573.12.1.el6.x86_64                                18/47
  Installing : glibc-headers-2.12-1.166.el6_7.3.x86_64                                  19/47
  Installing : glibc-devel-2.12-1.166.el6_7.3.x86_64                                    20/47
  Installing : 1:perl-ExtUtils-ParseXS-2.2003.0-141.el6_7.1.x86_64                      21/47
  Installing : perl-ExtUtils-MakeMaker-6.55-141.el6_7.1.x86_64                          22/47
  Installing : 4:perl-devel-5.10.1-141.el6_7.1.x86_64                                   23/47
  Installing : perl-Test-Harness-3.17-141.el6_7.1.x86_64                                24/47
  Installing : mod_perl-2.0.4-11.el6_5.x86_64                                           25/47
  Updating   : httpd-manual-2.2.15-47.el6.centos.1.noarch                               26/47
  Installing : mod_wsgi-3.2-7.el6.x86_64                                                27/47
  Updating   : httpd-devel-2.2.15-47.el6.centos.1.x86_64                                28/47
  Installing : webalizer-2.21_02-3.3.el6.x86_64                                         29/47
  Installing : 1:mod_ssl-2.2.15-47.el6.centos.1.x86_64                                  30/47
  Installing : crypto-utils-2.4.1-24.2.el6.x86_64                                       31/47
  Updating   : perl-IO-Compress-Bzip2-2.021-141.el6_7.1.x86_64                          32/47
  Cleanup    : httpd-devel-2.2.15-29.el6.centos.x86_64                                  33/47
  Cleanup    : perl-IO-Compress-Bzip2-2.021-136.el6.x86_64                              34/47
  Cleanup    : perl-IO-Compress-Base-2.021-136.el6.x86_64                               35/47
  Cleanup    : httpd-manual-2.2.15-29.el6.centos.noarch                                 36/47
  Cleanup    : 1:perl-Module-Pluggable-3.90-136.el6.x86_64                              37/47
  Cleanup    : 1:perl-Pod-Escapes-1.04-136.el6.x86_64                                   38/47
  Cleanup    : 1:perl-Pod-Simple-3.13-136.el6.x86_64                                    39/47
  Cleanup    : 3:perl-version-0.77-136.el6.x86_64                                       40/47
  Cleanup    : 4:perl-libs-5.10.1-136.el6.x86_64                                        41/47
  Cleanup    : 4:perl-5.10.1-136.el6.x86_64                                             42/47
  Cleanup    : httpd-2.2.15-29.el6.centos.x86_64                                        43/47
  Cleanup    : httpd-tools-2.2.15-29.el6.centos.x86_64                                  44/47
  Cleanup    : gdbm-1.8.0-36.el6.x86_64                                                 45/47
  Cleanup    : glibc-common-2.12-1.132.el6.x86_64                                       46/47
  Cleanup    : glibc-2.12-1.132.el6.x86_64                                              47/47
  Verifying  : mod_perl-2.0.4-11.el6_5.x86_64                                            1/47
  Verifying  : perl-IO-Compress-Base-2.021-141.el6_7.1.x86_64                            2/47
  Verifying  : perl-IO-Compress-Bzip2-2.021-141.el6_7.1.x86_64                           3/47
  Verifying  : libXpm-3.5.10-2.el6.x86_64                                                4/47
  Verifying  : gdbm-devel-1.8.0-38.el6.x86_64                                            5/47
  Verifying  : httpd-manual-2.2.15-47.el6.centos.1.noarch                                6/47
  Verifying  : 4:perl-devel-5.10.1-141.el6_7.1.x86_64                                    7/47
  Verifying  : 1:perl-Module-Pluggable-3.90-141.el6_7.1.x86_64                           8/47
  Verifying  : 1:perl-Pod-Simple-3.13-141.el6_7.1.x86_64                                 9/47
  Verifying  : gdbm-1.8.0-38.el6.x86_64                                                 10/47
  Verifying  : mod_wsgi-3.2-7.el6.x86_64                                                11/47
  Verifying  : kernel-headers-2.6.32-573.12.1.el6.x86_64                                12/47
  Verifying  : 4:perl-5.10.1-141.el6_7.1.x86_64                                         13/47
  Verifying  : gd-2.0.35-11.el6.x86_64                                                  14/47
  Verifying  : glibc-common-2.12-1.166.el6_7.3.x86_64                                   15/47
  Verifying  : httpd-2.2.15-47.el6.centos.1.x86_64                                      16/47
  Verifying  : 1:perl-ExtUtils-ParseXS-2.2003.0-141.el6_7.1.x86_64                      17/47
  Verifying  : httpd-tools-2.2.15-47.el6.centos.1.x86_64                                18/47
  Verifying  : perl-BSD-Resource-1.29.03-3.el6.x86_64                                   19/47
  Verifying  : 1:perl-Pod-Escapes-1.04-141.el6_7.1.x86_64                               20/47
  Verifying  : perl-Newt-1.08-26.el6.x86_64                                             21/47
  Verifying  : glibc-2.12-1.166.el6_7.3.x86_64                                          22/47
  Verifying  : httpd-devel-2.2.15-47.el6.centos.1.x86_64                                23/47
  Verifying  : webalizer-2.21_02-3.3.el6.x86_64                                         24/47
  Verifying  : 3:perl-version-0.77-141.el6_7.1.x86_64                                   25/47
  Verifying  : 4:perl-libs-5.10.1-141.el6_7.1.x86_64                                    26/47
  Verifying  : glibc-devel-2.12-1.166.el6_7.3.x86_64                                    27/47
  Verifying  : perl-ExtUtils-MakeMaker-6.55-141.el6_7.1.x86_64                          28/47
  Verifying  : glibc-headers-2.12-1.166.el6_7.3.x86_64                                  29/47
  Verifying  : crypto-utils-2.4.1-24.2.el6.x86_64                                       30/47
  Verifying  : perl-Test-Harness-3.17-141.el6_7.1.x86_64                                31/47
  Verifying  : 1:mod_ssl-2.2.15-47.el6.centos.1.x86_64                                  32/47
  Verifying  : glibc-2.12-1.132.el6.x86_64                                              33/47
  Verifying  : httpd-2.2.15-29.el6.centos.x86_64                                        34/47
  Verifying  : 1:perl-Module-Pluggable-3.90-136.el6.x86_64                              35/47
  Verifying  : 4:perl-5.10.1-136.el6.x86_64                                             36/47
  Verifying  : httpd-manual-2.2.15-29.el6.centos.noarch                                 37/47
  Verifying  : gdbm-1.8.0-36.el6.x86_64                                                 38/47
  Verifying  : 1:perl-Pod-Simple-3.13-136.el6.x86_64                                    39/47
  Verifying  : glibc-common-2.12-1.132.el6.x86_64                                       40/47
  Verifying  : perl-IO-Compress-Base-2.021-136.el6.x86_64                               41/47
  Verifying  : 3:perl-version-0.77-136.el6.x86_64                                       42/47
  Verifying  : perl-IO-Compress-Bzip2-2.021-136.el6.x86_64                              43/47
  Verifying  : httpd-tools-2.2.15-29.el6.centos.x86_64                                  44/47
  Verifying  : 4:perl-libs-5.10.1-136.el6.x86_64                                        45/47
  Verifying  : 1:perl-Pod-Escapes-1.04-136.el6.x86_64                                   46/47
  Verifying  : httpd-devel-2.2.15-29.el6.centos.x86_64                                  47/47

Installed:
  crypto-utils.x86_64 0:2.4.1-24.2.el6              mod_perl.x86_64 0:2.0.4-11.el6_5
  mod_ssl.x86_64 1:2.2.15-47.el6.centos.1           mod_wsgi.x86_64 0:3.2-7.el6
  webalizer.x86_64 0:2.21_02-3.3.el6

Dependency Installed:
  gd.x86_64 0:2.0.35-11.el6
  gdbm-devel.x86_64 0:1.8.0-38.el6
  glibc-devel.x86_64 0:2.12-1.166.el6_7.3
  glibc-headers.x86_64 0:2.12-1.166.el6_7.3
  kernel-headers.x86_64 0:2.6.32-573.12.1.el6
  libXpm.x86_64 0:3.5.10-2.el6
  perl-BSD-Resource.x86_64 0:1.29.03-3.el6
  perl-ExtUtils-MakeMaker.x86_64 0:6.55-141.el6_7.1
  perl-ExtUtils-ParseXS.x86_64 1:2.2003.0-141.el6_7.1
  perl-Newt.x86_64 0:1.08-26.el6
  perl-Test-Harness.x86_64 0:3.17-141.el6_7.1
  perl-devel.x86_64 4:5.10.1-141.el6_7.1

Updated:
  httpd.x86_64 0:2.2.15-47.el6.centos.1      httpd-manual.noarch 0:2.2.15-47.el6.centos.1

Dependency Updated:
  gdbm.x86_64 0:1.8.0-38.el6
  glibc.x86_64 0:2.12-1.166.el6_7.3
  glibc-common.x86_64 0:2.12-1.166.el6_7.3
  httpd-devel.x86_64 0:2.2.15-47.el6.centos.1
  httpd-tools.x86_64 0:2.2.15-47.el6.centos.1
  perl.x86_64 4:5.10.1-141.el6_7.1
  perl-IO-Compress-Base.x86_64 0:2.021-141.el6_7.1
  perl-IO-Compress-Bzip2.x86_64 0:2.021-141.el6_7.1
  perl-Module-Pluggable.x86_64 1:3.90-141.el6_7.1
  perl-Pod-Escapes.x86_64 1:1.04-141.el6_7.1
  perl-Pod-Simple.x86_64 1:3.13-141.el6_7.1
  perl-libs.x86_64 4:5.10.1-141.el6_7.1
  perl-version.x86_64 3:0.77-141.el6_7.1


Complete!

8. Update or Upgrade Group of Packages – yum groupupdate or yum groupupgrade


This will allow to update or upgrade complete group packages from system in one command. we need not remove old one and install new RPMs one by one.

# yum groupupgrade
       or
yum groupupdate
[root@srv103 ~]# yum groupupdate "E-mail server" -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirrors.wvstateu.edu
 * extras: centos.mia.host-engine.com
 * updates: ftpmirror.your.org
Setting up Group Process
Checking for new repos for mirrors
Resolving Dependencies
--> Running transaction check
---> Package dovecot.x86_64 1:2.0.9-19.el6_7.2 will be installed
--> Processing Dependency: portreserve for package: 1:dovecot-2.0.9-19.el6_7.2.x86_64
---> Package postfix.x86_64 2:2.6.6-2.2.el6_1 will be updated
---> Package postfix.x86_64 2:2.6.6-6.el6_7.1 will be an update
---> Package spamassassin.x86_64 0:3.3.1-3.el6 will be installed
--> Processing Dependency: perl-HTML-Parser >= 3.43 for package: spamassassin-3.3.1-3.el6.x86_64
--> Processing Dependency: perl(NetAddr::IP) >= 4.000 for package: spamassassin-3.3.1-3.el6.x86_64
--> Processing Dependency: perl(IO::Zlib) >= 1.04 for package: spamassassin-3.3.1-3.el6.x86_64
--> Processing Dependency: perl(HTML::Parser) >= 3.43 for package: spamassassin-3.3.1-3.el6.x86_64
--> Processing Dependency: perl(Archive::Tar) >= 1.23 for package: spamassassin-3.3.1-3.el6.x86_64
--> Processing Dependency: procmail for package: spamassassin-3.3.1-3.el6.x86_64
--> Processing Dependency: perl(Time::HiRes) for package: spamassassin-3.3.1-3.el6.x86_64
--> Processing Dependency: perl(Net::DNS) for package: spamassassin-3.3.1-3.el6.x86_64
--> Processing Dependency: perl(Mail::DKIM) for package: spamassassin-3.3.1-3.el6.x86_64
--> Processing Dependency: perl(LWP::UserAgent) for package: spamassassin-3.3.1-3.el6.x86_64
--> Processing Dependency: perl(IO::Socket::SSL) for package: spamassassin-3.3.1-3.el6.x86_64
--> Processing Dependency: perl(IO::Socket::INET6) for package: spamassassin-3.3.1-3.el6.x86_64
--> Processing Dependency: perl(HTTP::Date) for package: spamassassin-3.3.1-3.el6.x86_64
--> Processing Dependency: perl(Encode::Detect) for package: spamassassin-3.3.1-3.el6.x86_64
--> Processing Dependency: perl(Archive::Tar) for package: spamassassin-3.3.1-3.el6.x86_64
--> Running transaction check
---> Package perl-Archive-Tar.x86_64 0:1.58-141.el6_7.1 will be installed
--> Processing Dependency: perl(Package::Constants) for package: perl-Archive-Tar-1.58-141.el6_7.1.x86_64
--> Processing Dependency: perl(Compress::Zlib) for package: perl-Archive-Tar-1.58-141.el6_7.1.x86_64
---> Package perl-Encode-Detect.x86_64 0:1.01-2.el6 will be installed
---> Package perl-HTML-Parser.x86_64 0:3.64-2.el6 will be installed
--> Processing Dependency: perl(HTML::Tagset) >= 3.03 for package: perl-HTML-Parser-3.64-2.el6.x86_64
--> Processing Dependency: perl(HTML::Tagset) for package: perl-HTML-Parser-3.64-2.el6.x86_64
---> Package perl-IO-Socket-INET6.noarch 0:2.56-4.el6 will be installed
--> Processing Dependency: perl(Socket6) for package: perl-IO-Socket-INET6-2.56-4.el6.noarch
---> Package perl-IO-Socket-SSL.noarch 0:1.31-2.el6 will be installed
--> Processing Dependency: perl(Net::SSLeay) >= 1.21 for package: perl-IO-Socket-SSL-1.31-2.el6.noarch
--> Processing Dependency: perl(Net::LibIDN) for package: perl-IO-Socket-SSL-1.31-2.el6.noarch
---> Package perl-IO-Zlib.x86_64 1:1.09-141.el6_7.1 will be installed
---> Package perl-Mail-DKIM.noarch 0:0.37-2.el6 will be installed
--> Processing Dependency: perl(Mail::Address) for package: perl-Mail-DKIM-0.37-2.el6.noarch
--> Processing Dependency: perl(Digest::SHA) for package: perl-Mail-DKIM-0.37-2.el6.noarch
--> Processing Dependency: perl(Crypt::OpenSSL::RSA) for package: perl-Mail-DKIM-0.37-2.el6.noarch
---> Package perl-Net-DNS.x86_64 0:0.65-5.el6 will be installed
--> Processing Dependency: perl(Digest::HMAC_MD5) for package: perl-Net-DNS-0.65-5.el6.x86_64
---> Package perl-NetAddr-IP.x86_64 0:4.027-7.el6 will be installed
---> Package perl-Time-HiRes.x86_64 4:1.9721-141.el6_7.1 will be installed
---> Package perl-libwww-perl.noarch 0:5.833-2.el6 will be installed
--> Processing Dependency: perl(URI::URL) for package: perl-libwww-perl-5.833-2.el6.noarch
--> Processing Dependency: perl(URI::Heuristic) for package: perl-libwww-perl-5.833-2.el6.noarch
--> Processing Dependency: perl(URI) for package: perl-libwww-perl-5.833-2.el6.noarch
---> Package portreserve.x86_64 0:0.0.4-9.el6 will be installed
---> Package procmail.x86_64 0:3.22-25.1.el6_5.1 will be installed
--> Running transaction check
---> Package perl-Compress-Zlib.x86_64 0:2.021-141.el6_7.1 will be installed
--> Processing Dependency: perl(IO::Uncompress::Gunzip) >= 2.021 for package: perl-Compress-Zlib-2.021-141.el6_7.1.x86_64
--> Processing Dependency: perl(IO::Compress::Gzip::Constants) >= 2.021 for package: perl-Compress-Zlib-2.021-141.el6_7.1.x86_64
--> Processing Dependency: perl(IO::Compress::Gzip) >= 2.021 for package: perl-Compress-Zlib-2.021-141.el6_7.1.x86_64
--> Processing Dependency: perl(Compress::Raw::Zlib) >= 2.021 for package: perl-Compress-Zlib-2.021-141.el6_7.1.x86_64
---> Package perl-Crypt-OpenSSL-RSA.x86_64 0:0.25-10.1.el6 will be installed
--> Processing Dependency: perl(Crypt::OpenSSL::Random) for package: perl-Crypt-OpenSSL-RSA-0.25-10.1.el6.x86_64
--> Processing Dependency: perl(Crypt::OpenSSL::Bignum) for package: perl-Crypt-OpenSSL-RSA-0.25-10.1.el6.x86_64
---> Package perl-Digest-HMAC.noarch 0:1.01-22.el6 will be installed
--> Processing Dependency: perl(Digest::SHA1) for package: perl-Digest-HMAC-1.01-22.el6.noarch
---> Package perl-Digest-SHA.x86_64 1:5.47-141.el6_7.1 will be installed
---> Package perl-HTML-Tagset.noarch 0:3.20-4.el6 will be installed
---> Package perl-MailTools.noarch 0:2.04-4.el6 will be installed
--> Processing Dependency: perl(Date::Parse) for package: perl-MailTools-2.04-4.el6.noarch
--> Processing Dependency: perl(Date::Format) for package: perl-MailTools-2.04-4.el6.noarch
---> Package perl-Net-LibIDN.x86_64 0:0.12-3.el6 will be installed
---> Package perl-Net-SSLeay.x86_64 0:1.35-9.el6 will be installed
---> Package perl-Package-Constants.x86_64 1:0.02-141.el6_7.1 will be installed
---> Package perl-Socket6.x86_64 0:0.23-4.el6 will be installed
---> Package perl-URI.noarch 0:1.40-2.el6 will be installed
--> Running transaction check
---> Package perl-Compress-Raw-Zlib.x86_64 1:2.021-141.el6_7.1 will be installed
---> Package perl-Crypt-OpenSSL-Bignum.x86_64 0:0.04-8.1.el6 will be installed
---> Package perl-Crypt-OpenSSL-Random.x86_64 0:0.04-9.1.el6 will be installed
---> Package perl-Digest-SHA1.x86_64 0:2.12-2.el6 will be installed
---> Package perl-IO-Compress-Zlib.x86_64 0:2.021-141.el6_7.1 will be installed
---> Package perl-TimeDate.noarch 1:1.16-13.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================
 Package                          Arch          Version                     Repository      Size
=================================================================================================
Installing:
 dovecot                          x86_64        1:2.0.9-19.el6_7.2          updates        1.9 M
 spamassassin                     x86_64        3.3.1-3.el6                 base           1.1 M
Updating:
 postfix                          x86_64        2:2.6.6-6.el6_7.1           updates        2.0 M
Installing for dependencies:
 perl-Archive-Tar                 x86_64        1.58-141.el6_7.1            updates         74 k
 perl-Compress-Raw-Zlib           x86_64        1:2.021-141.el6_7.1         updates         70 k
 perl-Compress-Zlib               x86_64        2.021-141.el6_7.1           updates         46 k
 perl-Crypt-OpenSSL-Bignum        x86_64        0.04-8.1.el6                Server          34 k
 perl-Crypt-OpenSSL-RSA           x86_64        0.25-10.1.el6               Server          37 k
 perl-Crypt-OpenSSL-Random        x86_64        0.04-9.1.el6                Server          22 k
 perl-Digest-HMAC                 noarch        1.01-22.el6                 Server          22 k
 perl-Digest-SHA                  x86_64        1:5.47-141.el6_7.1          updates         65 k
 perl-Digest-SHA1                 x86_64        2.12-2.el6                  Server          49 k
 perl-Encode-Detect               x86_64        1.01-2.el6                  Server          80 k
 perl-HTML-Parser                 x86_64        3.64-2.el6                  Server         109 k
 perl-HTML-Tagset                 noarch        3.20-4.el6                  Server          17 k
 perl-IO-Compress-Zlib            x86_64        2.021-141.el6_7.1           updates        136 k
 perl-IO-Socket-INET6             noarch        2.56-4.el6                  Server          17 k
 perl-IO-Socket-SSL               noarch        1.31-2.el6                  Server          69 k
 perl-IO-Zlib                     x86_64        1:1.09-141.el6_7.1          updates         33 k
 perl-Mail-DKIM                   noarch        0.37-2.el6                  Server         121 k
 perl-MailTools                   noarch        2.04-4.el6                  Server         101 k
 perl-Net-DNS                     x86_64        0.65-5.el6                  Server         232 k
 perl-Net-LibIDN                  x86_64        0.12-3.el6                  Server          35 k
 perl-Net-SSLeay                  x86_64        1.35-9.el6                  Server         173 k
 perl-NetAddr-IP                  x86_64        4.027-7.el6                 Server          96 k
 perl-Package-Constants           x86_64        1:0.02-141.el6_7.1          updates         27 k
 perl-Socket6                     x86_64        0.23-4.el6                  Server          27 k
 perl-Time-HiRes                  x86_64        4:1.9721-141.el6_7.1        updates         49 k
 perl-TimeDate                    noarch        1:1.16-13.el6               base            37 k
 perl-URI                         noarch        1.40-2.el6                  Server         117 k
 perl-libwww-perl                 noarch        5.833-2.el6                 Server         387 k
 portreserve                      x86_64        0.0.4-9.el6                 Server          23 k
 procmail                         x86_64        3.22-25.1.el6_5.1           base           162 k

Transaction Summary
=================================================================================================
Install      32 Package(s)
Upgrade       1 Package(s)

Total download size: 7.4 M
Downloading Packages:
(1/33): dovecot-2.0.9-19.el6_7.2.x86_64.rpm                               | 1.9 MB     00:11
(2/33): perl-Archive-Tar-1.58-141.el6_7.1.x86_64.rpm                      |  74 kB     00:01
(3/33): perl-Compress-Raw-Zlib-2.021-141.el6_7.1.x86_64.rpm               |  70 kB     00:00
(4/33): perl-Compress-Zlib-2.021-141.el6_7.1.x86_64.rpm                   |  46 kB     00:01
(9/33): perl-Digest-SHA-5.47-141.el6_7.1.x86_64.rpm                       |  65 kB     00:01
(14/33): perl-IO-Compress-Zlib-2.021-141.el6_7.1.x86_64.rpm               | 136 kB     00:01
(17/33): perl-IO-Zlib-1.09-141.el6_7.1.x86_64.rpm                         |  33 kB     00:00
(24/33): perl-Package-Constants-0.02-141.el6_7.1.x86_64.rpm               |  27 kB     00:00
(26/33): perl-Time-HiRes-1.9721-141.el6_7.1.x86_64.rpm                    |  49 kB     00:00
(27/33): perl-TimeDate-1.16-13.el6.noarch.rpm                             |  37 kB     00:00
(31/33): postfix-2.6.6-6.el6_7.1.x86_64.rpm                               | 2.0 MB     00:20
(32/33): procmail-3.22-25.1.el6_5.1.x86_64.rpm                            | 162 kB     00:01
(33/33): spamassassin-3.3.1-3.el6.x86_64.rpm                              | 1.1 MB     00:07
-------------------------------------------------------------------------------------------------
Total                                                            128 kB/s | 7.4 MB     00:59
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : portreserve-0.0.4-9.el6.x86_64                                               1/34
  Installing : 1:perl-Compress-Raw-Zlib-2.021-141.el6_7.1.x86_64                            2/34
  Installing : perl-IO-Compress-Zlib-2.021-141.el6_7.1.x86_64                               3/34
  Installing : perl-Compress-Zlib-2.021-141.el6_7.1.x86_64                                  4/34
  Installing : 1:perl-IO-Zlib-1.09-141.el6_7.1.x86_64                                       5/34
  Installing : perl-Encode-Detect-1.01-2.el6.x86_64                                         6/34
  Installing : perl-Net-SSLeay-1.35-9.el6.x86_64                                            7/34
  Installing : perl-Crypt-OpenSSL-Random-0.04-9.1.el6.x86_64                                8/34
  Installing : perl-Crypt-OpenSSL-Bignum-0.04-8.1.el6.x86_64                                9/34
  Installing : perl-Crypt-OpenSSL-RSA-0.25-10.1.el6.x86_64                                 10/34
  Installing : perl-Socket6-0.23-4.el6.x86_64                                              11/34
  Installing : perl-IO-Socket-INET6-2.56-4.el6.noarch                                      12/34
  Installing : 1:perl-TimeDate-1.16-13.el6.noarch                                          13/34
  Installing : perl-MailTools-2.04-4.el6.noarch                                            14/34
  Installing : perl-NetAddr-IP-4.027-7.el6.x86_64                                          15/34
  Installing : perl-HTML-Tagset-3.20-4.el6.noarch                                          16/34
  Installing : perl-HTML-Parser-3.64-2.el6.x86_64                                          17/34
  Installing : perl-URI-1.40-2.el6.noarch                                                  18/34
  Installing : perl-libwww-perl-5.833-2.el6.noarch                                         19/34
  Installing : 1:perl-Digest-SHA-5.47-141.el6_7.1.x86_64                                   20/34
  Installing : 4:perl-Time-HiRes-1.9721-141.el6_7.1.x86_64                                 21/34
  Installing : procmail-3.22-25.1.el6_5.1.x86_64                                           22/34
  Installing : perl-Net-LibIDN-0.12-3.el6.x86_64                                           23/34
  Installing : perl-IO-Socket-SSL-1.31-2.el6.noarch                                        24/34
  Installing : perl-Digest-SHA1-2.12-2.el6.x86_64                                          25/34
  Installing : perl-Digest-HMAC-1.01-22.el6.noarch                                         26/34
  Installing : perl-Net-DNS-0.65-5.el6.x86_64                                              27/34
  Installing : perl-Mail-DKIM-0.37-2.el6.noarch                                            28/34
  Installing : 1:perl-Package-Constants-0.02-141.el6_7.1.x86_64                            29/34
  Installing : perl-Archive-Tar-1.58-141.el6_7.1.x86_64                                    30/34
  Installing : spamassassin-3.3.1-3.el6.x86_64                                             31/34
  Installing : 1:dovecot-2.0.9-19.el6_7.2.x86_64                                           32/34
  Updating   : 2:postfix-2.6.6-6.el6_7.1.x86_64                                            33/34
  Cleanup    : 2:postfix-2.6.6-2.2.el6_1.x86_64                                            34/34
  Verifying  : 1:perl-Package-Constants-0.02-141.el6_7.1.x86_64                             1/34
  Verifying  : spamassassin-3.3.1-3.el6.x86_64                                              2/34
  Verifying  : perl-Digest-SHA1-2.12-2.el6.x86_64                                           3/34
  Verifying  : perl-IO-Compress-Zlib-2.021-141.el6_7.1.x86_64                               4/34
  Verifying  : 1:perl-Compress-Raw-Zlib-2.021-141.el6_7.1.x86_64                            5/34
  Verifying  : perl-Net-LibIDN-0.12-3.el6.x86_64                                            6/34
  Verifying  : perl-IO-Socket-SSL-1.31-2.el6.noarch                                         7/34
  Verifying  : 1:perl-IO-Zlib-1.09-141.el6_7.1.x86_64                                       8/34
  Verifying  : procmail-3.22-25.1.el6_5.1.x86_64                                            9/34
  Verifying  : perl-Mail-DKIM-0.37-2.el6.noarch                                            10/34
  Verifying  : 4:perl-Time-HiRes-1.9721-141.el6_7.1.x86_64                                 11/34
  Verifying  : 1:dovecot-2.0.9-19.el6_7.2.x86_64                                           12/34
  Verifying  : perl-Net-DNS-0.65-5.el6.x86_64                                              13/34
  Verifying  : perl-HTML-Parser-3.64-2.el6.x86_64                                          14/34
  Verifying  : portreserve-0.0.4-9.el6.x86_64                                              15/34
  Verifying  : perl-Digest-HMAC-1.01-22.el6.noarch                                         16/34
  Verifying  : 1:perl-Digest-SHA-5.47-141.el6_7.1.x86_64                                   17/34
  Verifying  : perl-URI-1.40-2.el6.noarch                                                  18/34
  Verifying  : perl-MailTools-2.04-4.el6.noarch                                            19/34
  Verifying  : perl-IO-Socket-INET6-2.56-4.el6.noarch                                      20/34
  Verifying  : perl-HTML-Tagset-3.20-4.el6.noarch                                          21/34
  Verifying  : 2:postfix-2.6.6-6.el6_7.1.x86_64                                            22/34
  Verifying  : perl-NetAddr-IP-4.027-7.el6.x86_64                                          23/34
  Verifying  : perl-Archive-Tar-1.58-141.el6_7.1.x86_64                                    24/34
  Verifying  : 1:perl-TimeDate-1.16-13.el6.noarch                                          25/34
  Verifying  : perl-Socket6-0.23-4.el6.x86_64                                              26/34
  Verifying  : perl-Crypt-OpenSSL-Bignum-0.04-8.1.el6.x86_64                               27/34
  Verifying  : perl-Crypt-OpenSSL-Random-0.04-9.1.el6.x86_64                               28/34
  Verifying  : perl-libwww-perl-5.833-2.el6.noarch                                         29/34
  Verifying  : perl-Crypt-OpenSSL-RSA-0.25-10.1.el6.x86_64                                 30/34
  Verifying  : perl-Net-SSLeay-1.35-9.el6.x86_64                                           31/34
  Verifying  : perl-Encode-Detect-1.01-2.el6.x86_64                                        32/34
  Verifying  : perl-Compress-Zlib-2.021-141.el6_7.1.x86_64                                 33/34
  Verifying  : 2:postfix-2.6.6-2.2.el6_1.x86_64                                            34/34

Installed:
  dovecot.x86_64 1:2.0.9-19.el6_7.2               spamassassin.x86_64 0:3.3.1-3.el6

Dependency Installed:
  perl-Archive-Tar.x86_64 0:1.58-141.el6_7.1
  perl-Compress-Raw-Zlib.x86_64 1:2.021-141.el6_7.1
  perl-Compress-Zlib.x86_64 0:2.021-141.el6_7.1
  perl-Crypt-OpenSSL-Bignum.x86_64 0:0.04-8.1.el6
  perl-Crypt-OpenSSL-RSA.x86_64 0:0.25-10.1.el6
  perl-Crypt-OpenSSL-Random.x86_64 0:0.04-9.1.el6
  perl-Digest-HMAC.noarch 0:1.01-22.el6
  perl-Digest-SHA.x86_64 1:5.47-141.el6_7.1
  perl-Digest-SHA1.x86_64 0:2.12-2.el6
  perl-Encode-Detect.x86_64 0:1.01-2.el6
  perl-HTML-Parser.x86_64 0:3.64-2.el6
  perl-HTML-Tagset.noarch 0:3.20-4.el6
  perl-IO-Compress-Zlib.x86_64 0:2.021-141.el6_7.1
  perl-IO-Socket-INET6.noarch 0:2.56-4.el6
  perl-IO-Socket-SSL.noarch 0:1.31-2.el6
  perl-IO-Zlib.x86_64 1:1.09-141.el6_7.1
  perl-Mail-DKIM.noarch 0:0.37-2.el6
  perl-MailTools.noarch 0:2.04-4.el6
  perl-Net-DNS.x86_64 0:0.65-5.el6
  perl-Net-LibIDN.x86_64 0:0.12-3.el6
  perl-Net-SSLeay.x86_64 0:1.35-9.el6
  perl-NetAddr-IP.x86_64 0:4.027-7.el6
  perl-Package-Constants.x86_64 1:0.02-141.el6_7.1
  perl-Socket6.x86_64 0:0.23-4.el6
  perl-Time-HiRes.x86_64 4:1.9721-141.el6_7.1
  perl-TimeDate.noarch 1:1.16-13.el6
  perl-URI.noarch 0:1.40-2.el6
  perl-libwww-perl.noarch 0:5.833-2.el6
  portreserve.x86_64 0:0.0.4-9.el6
  procmail.x86_64 0:3.22-25.1.el6_5.1

Updated:
  postfix.x86_64 2:2.6.6-6.el6_7.1

Complete!

9. Remove Group of Packages – yum groupremove


This will allow to remove complete group packages from system in one command. we need not remove, un-nstall or erase one by one.

# yum groupremove Emacs -y

yum groupremove Emacs -y output

[root@srv103 ~]# yum groupremove Emacs -y
Loaded plugins: fastestmirror
Setting up Group Process
Loading mirror speeds from cached hostfile
 * base: centos.den.host-engine.com
 * extras: centos.mia.host-engine.com
 * updates: centos.eecs.wsu.edu
Resolving Dependencies
--> Running transaction check
---> Package emacs.x86_64 1:23.1-28.el6 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================
 Package            Arch                Version                      Repository          Size
==============================================================================================
Removing:
 emacs              x86_64              1:23.1-28.el6                @base               11 M

Transaction Summary
==============================================================================================
Remove        1 Package(s)

Installed size: 11 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing    : 1:emacs-23.1-28.el6.x86_64                                                 1/1
  Verifying  : 1:emacs-23.1-28.el6.x86_64                                                 1/1

Removed:
  emacs.x86_64 1:23.1-28.el6

Complete!

10. Info about Group of Packages or specfic package- yum info or yum groupinfo


This would provide valueable information about package installed or located remotely on YUM repository.

#yum info openssh-server
        or
#yum groupinfo “Web Server”

yum groupinfo “Web Server” -y output

[root@srv103 ~]# yum groupinfo "Web Server"
Loaded plugins: fastestmirror
Setting up Group Process
Loading mirror speeds from cached hostfile
 * base: mirror.thelinuxfix.com
 * extras: mirror.cc.columbia.edu
 * updates: mirror.lug.udel.edu

Group: Web Server
 Description: Allows the system to act as a web server, and run Perl and Python web applications.
 Mandatory Packages:
   httpd
 Default Packages:
   crypto-utils
   httpd-manual
   mod_perl
   mod_ssl
   mod_wsgi
   webalizer
 Optional Packages:
   certmonger
   libmemcached
   memcached
   mod_auth_kerb
   mod_auth_mellon
   mod_auth_mysql
   mod_auth_pgsql
   mod_authnz_pam
   mod_authz_ldap
   mod_intercept_form_submit
   mod_lookup_identity
   mod_nss
   mod_revocator
   perl-CGI
   perl-CGI-Session
   perl-Cache-Memcached
   python-memcached
   squid
[root@srv103 ~]# yum info openssh-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.thelinuxfix.com
 * extras: mirror.cc.columbia.edu
 * updates: mirror.lug.udel.edu
Installed Packages
Name        : openssh-server
Arch        : x86_64
Version     : 5.3p1
Release     : 94.el6
Size        : 674 k
Repo        : installed
From repo   : anaconda-CentOS-201311272149.x86_64
Summary     : An open source SSH server daemon
URL         : http://www.openssh.com/portable.html
License     : BSD
Description : OpenSSH is a free version of SSH (Secure SHell), a program for logging
            : into and executing commands on a remote machine. This package contains
            : the secure shell daemon (sshd). The sshd daemon allows SSH clients to
            : securely connect to your SSH server.

Available Packages
Name        : openssh-server
Arch        : x86_64
Version     : 5.3p1
Release     : 112.el6_7
Size        : 324 k
Repo        : updates
Summary     : An open source SSH server daemon
URL         : http://www.openssh.com/portable.html
License     : BSD
Description : OpenSSH is a free version of SSH (Secure SHell), a program for logging
            : into and executing commands on a remote machine. This package contains
            : the secure shell daemon (sshd). The sshd daemon allows SSH clients to
            : securely connect to your SSH server.

11. How to see yum command history – yum history


In YUM command, there is option that could provide details of previous yum commands used and their results. This could be very informative and helpfull in case we like to find out about various events happened during yum commands.

[root@srv103 ~]# yum history
Loaded plugins: fastestmirror
ID     | Login user               | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
     8 | root               | 2016-01-05 07:39 | Reinstall      |    7
     7 | root               | 2016-01-05 07:25 | Install        |    5
     6 | root               | 2016-01-05 07:23 | Install        |   19
     5 | root               | 2016-01-05 06:59 | Install        |    4
     4 | root               | 2016-01-05 06:59 | Install        |   17
     3 | root               | 2016-01-05 06:59 | Install        |    3 ss
     2 | root               | 2016-01-05 06:58 | Install        |    3 ss
     1 | root               | 2016-01-05 06:20 | Install        |    4
history list

Above in yum history command provide some output in table format with some columns. Below is description for those columns.

ID — Just an integer value on transaction basis.

Login user — This user was responsible to initiate transaction, Sometime system used, which denote system generated transaction like auto update

Date and time — The date and time when a transaction initiated.

Action — List of actions that were performed during a transaction, it could be installed, Updated, Erase, Reinstall, Downgrade and Obsoleting.

Altered — The number of packages that were affected by a transaction.

Some other examples and their description with “yum history”

Detail for specific transaction

[root@srv103 ~]# yum history info 4
Loaded plugins: fastestmirror
Transaction ID : 4
Begin time     : Tue Jan  5 06:59:13 2016
Begin rpmdb    : 402:a489dbb574432fe94a239f9b2ddfcdc4e413b858
End time       :            06:59:18 2016 (5 seconds)
End rpmdb      : 419:f265a922cb9378e4a01f999a3847b4faaa1fbbef
User           : root 
Return-Code    : Success
Command Line   : install --skip-broken *apache*
Transaction performed with:
    Installed     rpm-4.8.0-37.el6.x86_64                       @anaconda-CentOS-201311272149.x86_64/6.5
    Installed     yum-3.2.29-40.el6.centos.noarch               @anaconda-CentOS-201311272149.x86_64/6.5
    Installed     yum-plugin-fastestmirror-1.1.30-14.el6.noarch @anaconda-CentOS-201311272149.x86_64/6.5
Packages Altered:
    Dep-Install ant-1.7.1-13.el6.x86_64                  @Server
    Install     ant-apache-bcel-1.7.1-13.el6.x86_64      @Server
    Install     ant-apache-bsf-1.7.1-13.el6.x86_64       @Server
    Install     ant-apache-log4j-1.7.1-13.el6.x86_64     @Server
    Install     ant-apache-oro-1.7.1-13.el6.x86_64       @Server
    Install     ant-apache-regexp-1.7.1-13.el6.x86_64    @Server
    Install     ant-apache-resolver-1.7.1-13.el6.x86_64  @Server
    Dep-Install ant-nodeps-1.7.1-13.el6.x86_64           @Server
    Dep-Install bcel-5.2-7.2.el6.x86_64                  @Server
    Dep-Install bsf-2.4.0-4.1.el6.noarch                 @Server
    Dep-Install jakarta-oro-2.0.8-6.6.el6.x86_64         @Server
    Dep-Install log4j-1.2.14-6.4.el6.x86_64              @Server
    Dep-Install regexp-1.5-4.4.el6.x86_64                @Server
    Dep-Install xalan-j2-2.7.0-9.8.el6.noarch            @Server
    Dep-Install xerces-j2-2.7.1-12.6.el6_0.x86_64        @Server
    Dep-Install xml-commons-apis-1.3.04-3.6.el6.x86_64   @Server
    Dep-Install xml-commons-resolver-1.1-4.18.el6.x86_64 @Server
history info

transaction of specific package and packages

[root@srv103 ~]# yum history packages-list *ldap*
Loaded plugins: fastestmirror
ID     | Action(s)      | Package
-------------------------------------------------------------------------------
     8 | Reinstall      | apr-util-ldap-1.3.9-3.el6_0.1.x86_64
     8 | Reinstall      | bind-dyndb-ldap-2.3-5.el6.x86_64
     8 | Reinstall      | compat-openldap-1:2.3.43-2.el6.x86_64
     8 | Reinstall      | openldap-2.4.23-32.el6_4.1.x86_64
     8 | Reinstall      | openldap-clients-2.4.23-32.el6_4.1.x86_64
     8 | Reinstall      | openldap-devel-2.4.23-32.el6_4.1.x86_64
     8 | Reinstall      | openldap-servers-2.4.23-32.el6_4.1.x86_64
     7 | Install        | bind-dyndb-ldap-2.3-5.el6.x86_64
     5 | Install        | compat-openldap-1:2.3.43-2.el6.x86_64
     5 | Install        | openldap-clients-2.4.23-32.el6_4.1.x86_64
     5 | Install        | openldap-servers-2.4.23-32.el6_4.1.x86_64
history packages-list

Detail of all transactions of specific package or packages

[root@srv103 ~]# yum history info openldap-2.4.23-32.el6_4.1.x86_64
Loaded plugins: fastestmirror
Transaction ID : 8
Begin time     : Tue Jan  5 07:39:33 2016
Begin rpmdb    : 447:fedb432d8a30430b21f58e778ea8142535a9416b
End time       :            07:40:03 2016 (30 seconds)
End rpmdb      : 447:fedb432d8a30430b21f58e778ea8142535a9416b
User           : root 
Return-Code    : Success
Command Line   : reinstall *ldap*
Transaction performed with:
    Installed     rpm-4.8.0-37.el6.x86_64                       @anaconda-CentOS-201311272149.x86_64/6.5
    Installed     yum-3.2.29-40.el6.centos.noarch               @anaconda-CentOS-201311272149.x86_64/6.5
    Installed     yum-plugin-fastestmirror-1.1.30-14.el6.noarch @anaconda-CentOS-201311272149.x86_64/6.5
Packages Altered:
    Reinstall apr-util-ldap-1.3.9-3.el6_0.1.x86_64      @Server
    Reinstall bind-dyndb-ldap-2.3-5.el6.x86_64          @Server
    Reinstall compat-openldap-1:2.3.43-2.el6.x86_64     @Server
    Reinstall openldap-2.4.23-32.el6_4.1.x86_64         @Server
    Reinstall openldap-clients-2.4.23-32.el6_4.1.x86_64 @Server
    Reinstall openldap-devel-2.4.23-32.el6_4.1.x86_64   @Server
    Reinstall openldap-servers-2.4.23-32.el6_4.1.x86_64 @Server
history info

We can use also regular expression in these commands. we can also use this yum history info openldap*.

12. YUM Shell yum shell


Yum has a powerfull shell, through which we could do most various task that we can do from Linux terminal. Just need to run “yum shell to initiate it.Let’s see some of examples for same.

[root@srv103 yum.repos.d]# yum shell
Loaded plugins: fastestmirror
Setting up Yum Shell
> whatprovides /bin/bash
Loading mirror speeds from cached hostfile
bash-4.1.2-15.el6_4.x86_64 : The GNU Bourne Again shell
Repo        : Server
Matched from:
Filename    : /bin/bash



bash-4.1.2-15.el6_4.x86_64 : The GNU Bourne Again shell
Repo        : installed
Matched from:
Other       : Provides-match: /bin/bash

In Above examples, we could see yum shell provide which package provide /bin/bash file.
Let see some what other options in yum shell.

[root@srv103 yum.repos.d]# yum shell
Loaded plugins: fastestmirror
Setting up Yum Shell
> help
Usage: yum [options] COMMAND

List of Commands:

check          Check for problems in the rpmdb
check-update   Check for available package updates
clean          Remove cached data
deplist        List a package's dependencies
distribution-synchronization Synchronize installed packages to the latest available versions
downgrade      downgrade a package
erase          Remove a package or packages from your system
groupinfo      Display details about a package group
groupinstall   Install the packages in a group on your system
grouplist      List available package groups
groupremove    Remove the packages in a group from your system
help           Display a helpful usage message
history        Display, or use, the transaction history
info           Display details about a package or group of packages
install        Install a package or packages on your system
list           List a package or groups of packages
load-transaction load a saved transaction from filename
makecache      Generate the metadata cache
provides       Find what package provides the given value
reinstall      reinstall a package
repolist       Display the configured software repositories
resolvedep     Determine which package provides the given dependency
search         Search package details for the given string
shell          Run an interactive yum shell
update         Update a package or packages on your system
upgrade        Update packages taking obsoletes into account
version        Display a version for the machine and/or available repos.


    Shell specific arguments:
      config - set config options
      repository (or repo) - enable/disable/list repositories
      transaction (or ts) - list, reset or run the transaction set
      run - run the transaction set
      exit or quit - exit the shell

> exit
Leaving Shell