Uninstalling RPM packages

With SA you can uninstall RPM packages and downgrade to a previous version of the RPM package using policies. To uninstall an RPM package from a managed server, you must first detach the policy from the server and then remediate the server against the software policy. See Detaching a software policy from the managed server for information on how to detach a policy from a server.

When you remediate the server, SA uninstalls the RPM package specified in the policy from the server and the dependent packages for the specified RPM package. You can uninstall the RPM packages only if they are not used by another software policy. When you uninstall an RPM package, SA also uninstalls any RPM packages which depend on the RPM packages being uninstalled.

SA also allows you to downgrade to a previous version of an RPM package using a software policy.

Uninstalling RPMs from a managed server

To uninstall RPMs from a managed server:

  1. Detach the policy containing the newer version of the RPM package from the server.
  2. Remediate the server to uninstall the RPM package.
    • If the software policy with adopted packages is detached and remediated then these adopted packages will be uninstalled exactly like the packages that were actually deployed by SA.
    • If an RPM resides in more than one attached software policy on a server, SA will only try to uninstall the RPM after all the software policies containing the RPM are detached from the server and the server is remediated.

Downgrading to a previous version of an RPM package

To downgrade to a previous version of an RPM package:

  1. Uninstall the RPM from the server.
    See Uninstalling RPMs from a managed server for details.
  2. Create a new software policy.
  3. Add the older version of the RPM package to the software policy.
  4. Attach the new policy to the server.
  5. Remediate the server to install the older RPM package.

Related topics