第1章 Directory Server リポジトリーの有効化
Directory Server パッケージをインストールする前に、Directory Server リポジトリーを有効にする必要があります。サブスクリプションの種類に応じて、次の Directory Server リポジトリーを有効にできます。
- デフォルトの Directory Server リポジトリー
- Extended Update Support (EUS) リポジトリー
デフォルトリポジトリーと EUS リポジトリーを有効にするには、次の手順に従います。
前提条件
- システムを Red Hat Subscription Management サービスに登録した。
- Red Hat アカウントに有効な Red Hat Directory Server サブスクリプションがある。
手順
オプション: RHEL のデフォルトの BaseOS および AppStream リポジトリーを有効にしていない場合は、次のリポジトリーを有効にする必要があります。
デフォルトの RHEL リポジトリーを有効にするには、次のコマンドを実行します。
# subscription-manager repos \ --enable=rhel-10-for-x86_64-appstream-rpms \ --enable=rhel-10-for-x86_64-baseos-rpms Repository 'rhel-10-for-x86_64-appstream-rpms' is enabled for this system. Repository 'rhel-10-for-x86_64-baseos-rpms' is enabled for this system.RHEL EUS リポジトリーを有効にするには、次の手順を実行します。
オプション: RHEL EUS リリースがマイナーバージョン (たとえば 10.0) に設定されていない場合は、次のコマンドを実行します。
# subscription-manager release --set=10.0RHEL EUS リポジトリーを有効にします。
# subscription-manager repos \ --enable=rhel-10-for-x86_64-appstream-eus-rpms \ --enable=rhel-10-for-x86_64-baseos-eus-rpms Repository 'rhel-10-for-x86_64-appstream-eus-rpms' is enabled for this system. Repository 'rhel-10-for-x86_64-baseos-eus-rpms' is enabled for this system.
Directory Server リポジトリーを有効にします。
デフォルトの Directory Server リポジトリーを有効にするには、次のコマンドを実行します。
# subscription-manager repos --enable=dirsrv-13-for-rhel-10-x86_64-rpms Repository 'dirsrv-13-for-rhel-10-x86_64-rpms' is enabled for this system.Directory Server EUS リポジトリーを有効にするには、次のコマンドを実行します。
# subscription-manager repos --enable=dirsrv-13-for-rhel-10-x86_64-eus-rpms Repository 'dirsrv-13-for-rhel-10-x86_64-eus-rpms' is enabled for this system.- 重要
- Directory Server EUS リポジトリーを有効にする場合は、RHEL EUS リポジトリーも有効になっていることを確認してください。
検証
有効なデフォルトの Directory Server リポジトリーをリスト表示します。
# subscription-manager repos --list-enabledリリースの種類に応じたコマンドの出力は次のとおりです。
Directory Server 13.0 の場合、このコマンドによって次の内容が表示されます。
+----------------------------------------------------------+ Available Repositories in /etc/yum.repos.d/redhat.repo +----------------------------------------------------------+ Repo ID: rhel-10-for-x86_64-appstream-rpms Repo Name: Red Hat Enterprise Linux 10 for x86_64 - AppStream (RPMs) Repo URL: https://cdn.redhat.com/content/dist/rhel10/10/x86_64/appstream/os Enabled: 1 Repo ID: rhel-10-for-x86_64-baseos-rpms Repo Name: Red Hat Enterprise Linux 10 for x86_64 - BaseOS (RPMs) Repo URL: https://cdn.redhat.com/content/dist/rhel10/10/x86_64/baseos/os Enabled: 1 Repo ID: dirsrv-13-for-rhel-10-x86_64-rpms Repo Name: Red Hat Directory Server 13 for RHEL 10 x86_64 (RPMs) Repo URL: https://cdn.redhat.com/content/dist/rhel10/10/x86_64/dirsrv/13/os Enabled: 1Directory Server 13.0 EUS の場合、このコマンドによって次の内容が表示されます。
+----------------------------------------------------------+ Available Repositories in /etc/yum.repos.d/redhat.repo +----------------------------------------------------------+ Repo ID: rhel-10-for-x86_64-appstream-eus-rpms Repo Name: Red Hat Enterprise Linux 10 for x86_64 - AppStream (RPMs) Repo URL: https://cdn.redhat.com/content/dist/rhel10/10.0/x86_64/appstream/os Enabled: 1 Repo ID: rhel-10-for-x86_64-baseos-eus-rpms Repo Name: Red Hat Enterprise Linux 10 for x86_64 - BaseOS (RPMs) Repo URL: https://cdn.redhat.com/content/dist/rhel10/10.0/x86_64/baseos/os Enabled: 1 Repo ID: dirsrv-13-for-rhel-10-x86_64-eus-rpms Repo Name: Red Hat Directory Server 13 for RHEL 10 x86_64 (RPMs) Repo URL: https://cdn.redhat.com/content/dist/rhel10/10.0/x86_64/dirsrv/13/os Enabled: 1