YUM - Delete, Remove or Erase a Package
by
Jeremy Canfield |
Updated: May 14 2023
| 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.
- yum search (display information about a package)
- yum info (display information about a package)
- yum list (list installed and available packages)
- yum provides (determine the package that provides a file)
- yumdownloader (download a package)
- yum install (install a package)
- yum update (update a package)
- yum remove (uninstall a package)
- yum erase (uninstall a package)
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