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.

12Uninstall a software group using yum groupremove

To delete an existing software group use ‘yum groupremove’ as shown below.

[root@yum ~]# yum groupremove 'DNS Name Server'
Loaded plugins: fastestmirror
Dependencies Resolved
=================================================================================================================
 Package                   Arch                 Version                             Repository              Size
=================================================================================================================
Removing:
 bind-chroot               x86_64               32:9.9.4-51.el7_4.2                 @updates               3.5 k
Transaction Summary
=================================================================================================================
Remove  1 Package
Installed size: 3.5 k
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : 32:bind-chroot-9.9.4-51.el7_4.2.x86_64                                                        1/1 
  Verifying  : 32:bind-chroot-9.9.4-51.el7_4.2.x86_64                                                        1/1 

Removed:
  bind-chroot.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.