第 1 章 启用目录服务器软件仓库


在安装目录服务器软件包前,您必须启用目录服务器存储库。根据您的订阅类型,您可以启用以下 Directory Server 软件仓库:

  • 默认目录服务器存储库
  • 延长更新支持(EUS)软件仓库

使用以下步骤启用 default 和 EUS 软件仓库。

前提条件

  • 在 Red Hat Subscription Management 服务中注册了系统。
  • 您的红帽帐户中有有效的红帽目录服务器订阅。

流程

  1. 可选:如果您没有启用 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 软件仓库:

      1. 可选:如果您没有将 RHEL EUS 版本设置为次版本,如 9.6,请运行:

        # subscription-manager release --set=9.6
      2. 启用 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.
  2. 启用 Directory Server 存储库:

    1. 要启用默认的 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.
    2. 要为启用 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
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部