A.9. 在 HAProxy 节点上启用所需的软件仓库


要在系统上安装 RHUI,您必须首先在包含所需软件包的节点上启用特定的软件仓库。以下说明说明了如何在 HAProxy 节点上启用 rhel-8-for-x86_64-baseos-rpmsrhel-8-for-x86_64-appstream-rpms 软件仓库。

先决条件

  • 确定您有到 HAProxy 节点的 root 访问权限。

流程

  1. 导航到 HAProxy 节点,列出启用的存储库,并验证您的系统是否已正确订阅。

    # subscription-manager list --consumed
    +-------------------------------------------+
       Consumed Subscriptions
    +-------------------------------------------+
    Subscription Name:   Red Hat Update Infrastructure and RHEL Add-Ons for Providers
    Provides:            JBoss Enterprise Application Platform from RHUI
                         JBoss Enterprise Web Server from RHUI
                         JBoss Operations Network from RHUI
                         RHEL for SAP - Update Services for SAP Solutions from RHUI
                         Red Hat Developer Tools from RHUI (for RHEL Server)
                         Red Hat Enterprise Linux Server - Extended Update Support from RHUI
                         RHEL for SAP HANA - Update Services for SAP Solutions from RHUI
                         Red Hat Developer Tools Beta from RHUI (for RHEL Server)
                         Red Hat Enterprise Linux High Availability (for RHEL Server) from RHUI
                         Red Hat JBoss Core Services from RHUI
                         Red Hat Enterprise Linux for x86_64 from RHUI
                         Red Hat Enterprise Linux for x86_64 Beta from RHUI
                         Red Hat Enterprise Linux Load Balancer (for RHEL Server) from RHUI
                         Red Hat Enterprise Linux Resilient Storage (for RHEL Server) from RHUI
                         Red Hat Enterprise Linux Scalable File System (for RHEL Server) from RHUI
                         Red Hat Enterprise Linux High Performance Networking (for RHEL Server) from RHUI
                         Red Hat Enterprise Linux for SAP from RHUI
                         Red Hat CodeReady Linux Builder for x86_64 from RHUI
                         Red Hat Enterprise Linux for SAP Hana from RHUI
                         Red Hat CodeReady Linux Builder for ARM 64 from RHUI
                         RHEL Software Test Suite (for RHEL Server) from RHUI
                         Red Hat Gluster Storage Server for On-premise from RHUI
                         Red Hat Single Sign-On from RHUI
                         Red Hat Enterprise Linux High Availability for x86_64 from RHUI
                         Red Hat Enterprise Linux Resilient Storage for x86_64 from RHUI
                         Red Hat Enterprise Linux High Availability (for RHEL Server) - Extended Update Support from RHUI
                         Red Hat Enterprise Linux Server - Extended Life Cycle Support (from RHUI)
                         Red Hat Enterprise Linux Load Balancer (for RHEL Server) - Extended Update Support from RHUI
                         RHEL for SAP HANA - Extended Update Support (from RHUI)
                         RHEL for SAP - Extended Update Support (from RHUI)
                         Red Hat Enterprise Linux Resilient Storage (for RHEL Server) - Extended Update Support from RHUI
                         Red Hat Enterprise Linux High Performance Networking (for RHEL Server) - Extended Update Support from RHUI
                         Red Hat Enterprise Linux for ARM 64 from RHUI
                         Red Hat Enterprise Linux Server - Update Services for SAP Solutions from RHUI
                         Red Hat Software Collections (for RHEL Server) from RHUI
                         Red Hat Enterprise Linux Server for ARM from RHUI
                         Red Hat Enterprise Linux High Availability - Update Services for SAP Solutions from RHUI
                         Red Hat CodeReady Linux Builder for x86_64 - Extended Update Support from RHUI
                         Red Hat Software Collections (for RHEL Server for ARM) from RHUI
                         Red Hat Ansible Engine from RHUI
                         Red Hat Software Collections Beta (for RHEL Server for ARM) from RHUI
                         Red Hat Enterprise Linux for ARM 64 Beta from RHUI
                         Red Hat Developer Tools (for RHEL Server for ARM) from RHUI
                         Red Hat Developer Tools Beta (for RHEL Server for ARM) from RHUI
                         dotNET on RHEL (for RHEL Server) from RHUI
                         dotNET on RHEL Beta (for RHEL Server) from RHUI
                         Red Hat Update Infrastructure
                         Red Hat Enterprise Linux Server from RHUI
    SKU:                 RC11164
    Contract:            126839
    Account:             5401
    Serial:              5744492009337488
    Pool ID:             8a85f9a1790fb0ed017961af515b7
    Provides Management: No
    Active:              True
    Quantity Used:       1
    Service Type:        L1-L3
    Roles:
    Service Level:       Premium
    Usage:
    Add-ons:
    Status Details:      Subscription is current
    Subscription Type:   Standard
    Starts:              05/12/2021
    Ends:                05/11/2022
    Entitlement Type:    Physical
    ---------------------------------------------------------------------------------
    Copy to Clipboard Toggle word wrap
  2. 禁用所有软件仓库。

    # subscription-manager repos --disable=*
    Copy to Clipboard Toggle word wrap
  3. 启用相关的软件仓库。

    # subscription-manager repos --enable rhel-8-for-x86_64-appstream-rpms --enable rhel-8-for-x86_64-baseos-rpms
    Copy to Clipboard Toggle word wrap

验证

  • 列出已启用的存储库,并验证相关的存储库是否出现在列表中。

    # yum repolist enabled
    Updating Subscription Management repositories.
    repo id                                repo name
    rhel-8-for-x86_64-appstream-rpms         Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
    rhel-8-for-x86_64-baseos-rpms            Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
    Copy to Clipboard Toggle word wrap

遵循这些步骤后,继续阅读 第 9 章 生成加密密钥对

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat