如何在 RHEL 7.5 订阅中启用产品?

如何在 RHEL 7.5 订阅中启用产品?

我如何安装由 输出显示的产品subscription-manager list --consumed

目前,我的 Red Hat Enterprise Linux 7.5 上只安装了一个产品。

$ sudo subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Red Hat Enterprise Linux for Power, little endian
Product ID:     279
Version:        7.5
Arch:           ppc64le
Status:         Subscribed
Status Details:
Starts:         10/07/2018
Ends:           10/07/2019

subscription-manager list --consumed命令显示其他产品,其中有一个是我想要安装的。

$ sudo subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name:   Red Hat OpenShift, Standard Support (10 Cores, NFR, Partner
                     Only)
Provides:            Red Hat OpenShift Container Platform
                     Red Hat Enterprise Linux for Power, little endian -
                     Extended Update Support
...snip...
                     Red Hat Enterprise Linux for Power 9
...snip...

由于“Red Hat Enterprise Linux for Power 9”在列表中,我已经拥有安装它的许可证,对吗?有没有办法通过订阅管理器来启用它,以便添加相应的存储库/etc/yum.repos.d/redhat.repo并使用 yum 安装软件包?或者,我是否必须通过任何其他方式获取产品的许可证密钥?

我的系统是 RHEL 7.5 POWER 9 ppc64le,但我认为这是一个与平台无关的问题。

答案1

由于无法访问 RHEL on POWER,也无法访问您的特定合作伙伴订阅,所以我只能在一般情况下回答这个问题。

首先,您购买或获取 RHEL订阅来自 Red Hat。每个都有不同的名称。您的名称为“Red Hat OpenShift,标准支持(10 核,NFR,仅限合作伙伴)”。

每个订阅包含一个或多个产品,这些都列在subscription-manager list命令中。例如,其中包括“Red Hat OpenShift Container Platform”和“Red Hat Enterprise Linux for Power, little endian - Extended Update Support”。

每个产品授予一个或多个访问权限回购。这些 repos 实际上包含软件。您可以使用subscription-manager repos--list-enabled或列出所有可用的 repos --list-disabled

举例来说,我订阅的一个产品是Red Hat Ansible Engine。它添加了以下存储库并使其可供启用:

Repo ID:   rhel-7-server-ansible-2-source-rpms
Repo Name: Red Hat Ansible Engine 2 Source RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-ansible-2-rpms
Repo Name: Red Hat Ansible Engine 2 RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2/os
Enabled:   0

Repo ID:   rhel-7-server-ansible-2.6-source-rpms
Repo Name: Red Hat Ansible Engine 2.6 Source RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2.6/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-ansible-2.6-rpms
Repo Name: Red Hat Ansible Engine 2.6 RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2.6/os
Enabled:   0

Repo ID:   rhel-7-server-ansible-2.7-source-rpms
Repo Name: Red Hat Ansible Engine 2.7 Source RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2.7/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-ansible-2.5-source-rpms
Repo Name: Red Hat Ansible Engine 2.5 Source RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2.5/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-ansible-2.7-rpms
Repo Name: Red Hat Ansible Engine 2.7 RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2.7/os
Enabled:   0

Repo ID:   rhel-7-server-ansible-2.4-rpms
Repo Name: Red Hat Ansible Engine 2.4 RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2.4/os
Enabled:   0

Repo ID:   rhel-7-server-ansible-2.5-rpms
Repo Name: Red Hat Ansible Engine 2.5 RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2.5/os
Enabled:   0

Repo ID:   rhel-7-server-ansible-2-debug-rpms
Repo Name: Red Hat Ansible Engine 2 Debug RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2/debug
Enabled:   0

Repo ID:   rhel-7-server-ansible-2.7-debug-rpms
Repo Name: Red Hat Ansible Engine 2.7 Debug RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2.7/debug
Enabled:   0

Repo ID:   rhel-7-server-ansible-2.4-source-rpms
Repo Name: Red Hat Ansible Engine 2.4 Source RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2.4/source/SRPMS
Enabled:   0

Repo ID:   rhel-7-server-ansible-2.4-debug-rpms
Repo Name: Red Hat Ansible Engine 2.4 Debug RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2.4/debug
Enabled:   0

Repo ID:   rhel-7-server-ansible-2.5-debug-rpms
Repo Name: Red Hat Ansible Engine 2.5 Debug RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2.5/debug
Enabled:   0

Repo ID:   rhel-7-server-ansible-2.6-debug-rpms
Repo Name: Red Hat Ansible Engine 2.6 Debug RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2.6/debug
Enabled:   0

我认为您感到困惑的一点是,您使用的是窄终端,subscription-manager并将长标题延续到下一行。因此,您看到的“Red Hat Enterprise Linux for Power 9”很可能是从上一行换行的更长名称的结尾。最大化您的终端窗口,然后重试。

例如,比较窄终端和宽终端的输出:

Provides:            Red Hat Enterprise Linux High Availability - Update
                     Services for SAP Solutions

相对

Provides:            Red Hat Enterprise Linux High Availability - Update Services for SAP Solutions

相关内容