第 1 章 启用目录服务器软件仓库
在安装目录服务器软件包前,您必须启用目录服务器存储库。根据您的订阅类型,您可以启用以下 Directory Server 软件仓库:
- 默认目录服务器存储库
- 延长更新支持(EUS)软件仓库
使用以下步骤启用 default 和 EUS 软件仓库。
前提条件
- 在 Red Hat Subscription Management 服务中注册了系统。
- 您的红帽帐户中有有效的红帽目录服务器订阅。
流程
可选:如果您没有启用 RHEL 默认 BaseOS 和 AppStream 软件仓库,您必须启用这些软件仓库:
要启用默认的 RHEL 软件仓库,请运行:
# subscription-manager repos \ --enable=rhel-9-for-x86_64-appstream-rpms \ --enable=rhel-9-for-x86_64-baseos-rpms Repository 'rhel-9-for-x86_64-appstream-rpms' is enabled for this system. Repository 'rhel-9-for-x86_64-baseos-rpms' is enabled for this system.启用 RHEL EUS 软件仓库:
可选:如果您没有将 RHEL EUS 版本设置为次版本,如 9.6,请运行:
# subscription-manager release --set=9.6启用 RHEL EUS 软件仓库:
# subscription-manager repos \ --enable=rhel-9-for-x86_64-appstream-eus-rpms \ --enable=rhel-9-for-x86_64-baseos-eus-rpms Repository 'rhel-9-for-x86_64-appstream-eus-rpms' is enabled for this system. Repository 'rhel-9-for-x86_64-baseos-eus-rpms' is enabled for this system.
启用 Directory Server 存储库:
要启用默认的 Directory Server 存储库,请运行:
# subscription-manager repos --enable=dirsrv-12-for-rhel-9-x86_64-rpms Repository 'dirsrv-12-for-rhel-9-x86_64-rpms' is enabled for this system.要为启用 Directory Server EUS 存储库,请运行:
# subscription-manager repos --enable=dirsrv-12-for-rhel-9-x86_64-eus-rpms Repository 'dirsrv-12-for-rhel-9-x86_64-eus-rpms' is enabled for this system.- 重要的
- 当您启用 Directory Server EUS 存储库时,请确保也启用了 RHEL EUS 软件仓库。
验证
列出启用的默认 Directory Server 仓库:
# subscription-manager repos --list-enabled以下是取决于存储库类型的命令的输出:
对于 Directory Server 12.6,命令会显示:
+----------------------------------------------------------+ Available Repositories in /etc/yum.repos.d/redhat.repo +----------------------------------------------------------+ Repo ID: rhel-9-for-x86_64-appstream-rpms Repo Name: Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs) Repo URL: https://cdn.redhat.com/content/dist/rhel9/9/x86_64/appstream/os Enabled: 1 Repo ID: rhel-9-for-x86_64-baseos-rpms Repo Name: Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs) Repo URL: https://cdn.redhat.com/content/dist/rhel9/9/x86_64/baseos/os Enabled: 1 Repo ID: dirsrv-12-for-rhel-9-x86_64-rpms Repo Name: Red Hat Directory Server 12 for RHEL 9 x86_64 (RPMs) Repo URL: https://cdn.redhat.com/content/dist/rhel9/9/x86_64/dirsrv/12/os Enabled: 1对于 Directory Server 12.6 EUS,命令会显示:
+----------------------------------------------------------+ Available Repositories in /etc/yum.repos.d/redhat.repo +----------------------------------------------------------+ Repo ID: rhel-9-for-x86_64-appstream-eus-rpms Repo Name: Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs) Repo URL: https://cdn.redhat.com/content/dist/rhel9/9.6/x86_64/appstream/os Enabled: 1 Repo ID: rhel-9-for-x86_64-baseos-eus-rpms Repo Name: Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs) Repo URL: https://cdn.redhat.com/content/dist/rhel9/9.6/x86_64/baseos/os Enabled: 1 Repo ID: dirsrv-12-for-rhel-9-x86_64-eus-rpms Repo Name: Red Hat Directory Server 12 for RHEL 9 x86_64 (RPMs) Repo URL: https://cdn.redhat.com/content/dist/rhel9/9.6/x86_64/dirsrv/12/os Enabled: 1