How to install yum-utils on CentOS/RHEL using yum command

How to install yum-utils on CentOS/RHEL using yum command

yum-utils is a collection of utilities and examples for the yum package manager. It includes utilities by different authors that make yum easier and more powerful to use. These tools include: debuginfo-install, find-repos-of-install, needs-restarting, package-cleanup, repoclosure, repodiff, repo-graph, repomanage, repoquery, repo-rss, reposync, repotrack, show-installed, show-changed-rco, verifytree, yumdownloader, yum-builddep, yum-complete-transaction, yum-config-manager, yum-debug-dump, yum-debug-restore and yum-groups-manager.

Installation

$ sudo yum install yum-utils
Sample outputs:

epel/x86_64/metalink                                           |  16 kB  00:00:00     
epel                                                           | 4.7 kB  00:00:00     
remi-safe                                                      | 2.9 kB  00:00:00     
(1/4): epel/x86_64/group_gz                                    | 266 kB  00:00:00     
(2/4): epel/x86_64/primary_db                                  | 6.2 MB  00:00:00     
(3/4): epel/x86_64/updateinfo                                  | 874 kB  00:00:00     
(4/4): remi-safe/primary_db                                    | 1.1 MB  00:00:01     
Resolving Dependencies
--> Running transaction check
---> Package yum-utils.noarch 0:1.1.31-42.el7 will be installed
--> Processing Dependency: python-kitchen for package: yum-utils-1.1.31-42.el7.noarch
--> Processing Dependency: libxml2-python for package: yum-utils-1.1.31-42.el7.noarch
--> Running transaction check
---> Package libxml2-python.x86_64 0:2.9.1-6.el7_2.3 will be installed
---> Package python-kitchen.noarch 0:1.1.1-5.el7 will be installed
--> Processing Dependency: python-chardet for package: python-kitchen-1.1.1-5.el7.noarch
--> Running transaction check
---> Package python-chardet.noarch 0:2.2.1-1.el7_1 will be installed
--> Finished Dependency Resolution
 
Dependencies Resolved
 
======================================================================================
 Package                 Arch            Version                  Repository     Size
======================================================================================
Installing:
 yum-utils               noarch          1.1.31-42.el7            base          117 k
Installing for dependencies:
 libxml2-python          x86_64          2.9.1-6.el7_2.3          base          247 k
 python-chardet          noarch          2.2.1-1.el7_1            base          227 k
 python-kitchen          noarch          1.1.1-5.el7              base          267 k
 
Transaction Summary
======================================================================================
Install  1 Package (+3 Dependent packages)
 
Total download size: 857 k
Installed size: 4.3 M
Is this ok [y/d/N]: y
Downloading packages:
(1/4): libxml2-python-2.9.1-6.el7_2.3.x86_64.rpm               | 247 kB  00:00:00     
(2/4): python-kitchen-1.1.1-5.el7.noarch.rpm                   | 267 kB  00:00:00     
(3/4): yum-utils-1.1.31-42.el7.noarch.rpm                      | 117 kB  00:00:00     
(4/4): python-chardet-2.2.1-1.el7_1.noarch.rpm                 | 227 kB  00:00:00     
--------------------------------------------------------------------------------------
Total                                                    1.4 MB/s | 857 kB  00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : python-chardet-2.2.1-1.el7_1.noarch                                1/4 
  Installing : python-kitchen-1.1.1-5.el7.noarch                                  2/4 
  Installing : libxml2-python-2.9.1-6.el7_2.3.x86_64                              3/4 
  Installing : yum-utils-1.1.31-42.el7.noarch                                     4/4 
  Verifying  : libxml2-python-2.9.1-6.el7_2.3.x86_64                              1/4 
  Verifying  : yum-utils-1.1.31-42.el7.noarch                                     2/4 
  Verifying  : python-kitchen-1.1.1-5.el7.noarch                                  3/4 
  Verifying  : python-chardet-2.2.1-1.el7_1.noarch                                4/4 
 
Installed:
  yum-utils.noarch 0:1.1.31-42.el7                                                    
 
Dependency Installed:
  libxml2-python.x86_64 0:2.9.1-6.el7_2.3    python-chardet.noarch 0:2.2.1-1.el7_1   
  python-kitchen.noarch 0:1.1.1-5.el7       
 
Complete!

Examples and usage: How to install PHP 7.2 on CentOS 7/RHEL 7