Bootstrap FreeKB - YUM - Delete, Remove or Erase a Package
YUM - Delete, Remove or Erase a Package

Updated:   |  YUM articles

yum erase or yum remove can be used to uninstall a package. In this example, the wget package will be erased.

yum erase wget
. . .
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package wget.x86_64 0:1.14-18.el7_6.1 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================================================================================================================
 Package                                            Arch                                                 Version                                                       Repository                                           Size
=================================================================================================================================================================================================================================
Removing:
 wget                                               x86_64                                               1.14-18.el7_6.1                                               @base                                               2.0 M

Transaction Summary
=================================================================================================================================================================================================================================
Remove  1 Package

Installed size: 2.0 M
Is this ok [y/N]:

 

Following are commonly used yum commands.

Alternatively, the Ansible yum module can be used to automate the process of managing packages.




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter bc168d in the box below so that we can be sure you are a human.