第12章 Directory Server のアンインストール

Directory Server インスタンスが必要なくなった場合は、これをアンインストールして領域を解放できます。

12.1. Directory Server のアンインストール

サーバーで Directory Server を実行する必要がなくなった場合は、本セクションの説明に従ってパッケージをアンインストールします。

手順

  1. レプリケーショントポロジーからすべてのインスタンスを削除します。インスタンスがレプリケーショントポロジーのメンバーではない場合は、この手順を省略します。
  2. サーバーからすべてのインスタンスを削除します。インスタンスごとに、次のように入力します。

    # dsctl instance_name remove --do-it
  3. Directory Server パッケージを削除します。

    # dnf module remove redhat-ds
  4. 必要に応じて、dirsrv-12-for-rhel-8-x86_64-rpms リポジトリーを無効にします。

    # subscription-manager repos --disable=dirsrv-12-for-rhel-8-x86_64-rpms
    Repository 'dirsrv-12-for-rhel-8-x86_64-rpms' is disabled for this system.
  5. 必要に応じて、システムから Red Hat Directory Server サブスクリプションを削除します。

    重要

    Directory Server 以外の製品を提供するサブスクリプションを削除すると、これらの製品のパッケージをインストールしたり更新したりできなくなります。

    • ホストに割り当てられているサブスクリプションをリスト表示します。

      # subscription-manager list --consumed
      Subscription Name:   Example Subscription
      ...
      Pool-ID:             5ab6a8df96b03fd30aba9a9c58da57a1
      ...
    • 前の手順でプール ID を使用してサブスクリプションを削除します。

      # 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