Uninstall rpm package yum
Note: Only root users and users added to the sudousers group have permission to install and remove packages in CentOS.
Package dependencies are binaries, libraries, and modules on which software rely on. When installing software, it will automatically download and store the required dependencies.
In most cases, deleting software from the local package manager will also erase its dependencies unless other programs require them. To remove a package and erase all the unneeded dependencies use the following command:. Alternatively, you can alter the yum configuration file to automatically remove package dependencies when deleting a package with the yum remove or yum erase commands.
In case you need to delete a package but are unsure of its exact file name, you can use one of the following two commands:. As you can see in the image below, httpd appears in the following packages and dependencies :.
After you have the exact name of the package you want to erase, you can uninstall it from your CentOS system. For more options on listing packages on CentOS read our detailed tutorial.
After reading this tutorial, you should now know how to remove packages and dependencies to free up space taken up by redundant programs. Basic package uninstallation This is the very basic way of uninstalling a package using yum.
Assuming you know the package name to uninstall, run the following command. The same command structure works in case you want to uninstall multiple packages. Uninstall package group Grouping is an interesting feature that yum comes with. Just like you can install all the packages under the same group, you can also uninstall them. It includes packages like gcc, automake, cmake, git, etc. Just like installing a group, yum offers a way of uninstalling a group as well. Alternatively, use this command.
It does the same job but the command structure is different. Uninstalling packages on yum is quite simple. All it requires is the name of the target package and root privilege. It is used for installing, updating, uninstalling, and querying packages. Removing packages using the YUM command removes the package along with its dependencies but some dependencies are not removed.
In this article, we will be discussing how to uninstall packages using the YUM command along with its dependencies. You will need sudo privileges i. In this article, We are using Fedora 34 to run the Yum command. For uninstalling packages, you need to know the correct package name. To list all installed packages, run this command:.
0コメント