13 Linux Yum Command Examples – Install, Uninstall, Update Packages

0
1941

Installing, removing, and updating packages is a typical activity on Linux. Most of the Linux distributions provides some kind of package manager utility. For example, apt-get, dpkg, rpm, yum, etc.

On some Linux distributions, yum is the default package manager.

Yum stands for Yellowdog Updater Modified.

This article explains 15 most frequently used yum commands with examples.

10Install a specific software group using yum groupinstall

To install specific software group, use groupinstall option as shown below. In the following example, ‘DNS Name Server’ group contains bind and bind-chroot.

[root@yum ~]# yum groupinstall 'DNS Name Server'
Dependencies Resolved
=================================================================================================================
 Package                   Arch                 Version                              Repository             Size
=================================================================================================================
Installing for group install "DNS Name Server":
 bind-chroot               x86_64               32:9.9.4-51.el7_4.2                  updates                86 k
Installing for dependencies:
 bind                      x86_64               32:9.9.4-51.el7_4.2                  updates               1.8 M
 bind-libs                 x86_64               32:9.9.4-51.el7_4.2                  updates               1.0 M
Transaction Summary
=================================================================================================================
Install  1 Package (+2 Dependent packages)
Total download size: 2.9 M
Installed size: 6.9 M
Is this ok [y/d/N]: y
Downloading packages:
(1/3): bind-chroot-9.9.4-51.el7_4.2.x86_64.rpm                                            |  86 kB  00:00:00     
(2/3): bind-libs-9.9.4-51.el7_4.2.x86_64.rpm                                              | 1.0 MB  00:00:00     
(3/3): bind-9.9.4-51.el7_4.2.x86_64.rpm                                                   | 1.8 MB  00:00:00     
-----------------------------------------------------------------------------------------------------------------
Total                                                                            4.3 MB/s | 2.9 MB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 32:bind-libs-9.9.4-51.el7_4.2.x86_64                                                          1/3 
  Installing : 32:bind-9.9.4-51.el7_4.2.x86_64                                                               2/3 
  Installing : 32:bind-chroot-9.9.4-51.el7_4.2.x86_64                                                        3/3 
  Verifying  : 32:bind-9.9.4-51.el7_4.2.x86_64                                                               1/3 
  Verifying  : 32:bind-libs-9.9.4-51.el7_4.2.x86_64                                                          2/3 
  Verifying  : 32:bind-chroot-9.9.4-51.el7_4.2.x86_64                                                        3/3 

Installed:
  bind-chroot.x86_64 32:9.9.4-51.el7_4.2                                                                         

Dependency Installed:
  bind.x86_64 32:9.9.4-51.el7_4.2                      bind-libs.x86_64 32:9.9.4-51.el7_4.2                     

Complete!

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.