Chapter 7. Uninstalling Directory Server
In certain situations, administrators what to uninstall Directory Server from a host. This chapter describes this procedure.
7.1. Uninstalling Directory Server
If you no longer require Directory Server running on a server, uninstall the packages as described in this section.
Prerequisites
- Directory Server installed on the host
Procedure
Remove all instances from the replication topology. If you instance is not a member of a replication topology skip this step.
For details about removing an instance from the topology, see Removing a Supplier from the Replication Topology in the Red Hat Directory Server Administration Guide.
Remove all instances from the server.
For details, see Removing a Directory Server Instance in the Red Hat Directory Server Administration Guide.
Remove the Directory Server packages:
# yum module remove redhat-ds
Optionally, disable the
dirsrv-11-for-rhel-8-x86_64-rpms
repository:# subscription-manager repos --disable=dirsrv-11-for-rhel-8-x86_64-rpms Repository 'dirsrv-11-for-rhel-8-x86_64-rpms' is disabled for this system.
Optionally, remove the Red Hat Directory Server subscription from the system:
ImportantIf you remove a subscription that provides additional products than Directory Server, you will not be able to install or update packages for these products.
List the subscriptions attached to the host:
# subscription-manager list --consumed Subscription Name: Example Subscription ... Pool-ID: 5ab6a8df96b03fd30aba9a9c58da57a1 ...
Remove the subscription using the pool id from the previous step:
# subscription-manager remove --pool=5ab6a8df96b03fd30aba9a9c58da57a1 2 local certificates have been deleted. The entitlement server successfully removed these pools: 5ab6a8df96b03fd30aba9a9c58da57a1 The entitlement server successfully removed these serial numbers: 1658239469356282126
Additional resources
-
For further details about using the
subscription-manager
utility, see the Using and Configuring Subscription Manager guide.