Table of Contents Previous Next


6 Uninstalling Advanced Server : 6.1 Uninstalling an RPM Package

You can use variations of the rpm, yum, or dnf command to remove installed packages. Note that removing a package does not damage the Advanced Server data directory.
Include the -e option when invoking the rpm command to remove an installed package; the command syntax is:
rpm -e package_name
Where package_name is the name of the package that you would like to remove.
You can use the yum remove or dnf remove command to remove a package installed by yum or dnf. To remove a package, open a terminal window, assume superuser privileges, and enter the following command:
yum remove package_name
dnf remove package_name
Where package_name is the name of the package that you would like to remove.
yum and RPM will not remove a package that is required by another package. If you attempt to remove a package that satisfies a package dependency, yum or RPM will provide a warning.
Note: In RHEL or CentOS 8, removing a package also removes all its dependencies that are not required by other packages. To override this default behavior of RHEL or CentOS 8, you must disable the clean_requirements_on_remove parameter in the /etc/yum.conf file.

6 Uninstalling Advanced Server : 6.1 Uninstalling an RPM Package

Table of Contents Previous Next