订阅内容

红帽企业 Linux(RHEL)订阅包含业界领先的 10 年支持生命周期。红帽还提供额外的支持选项,让您可以选择最适合业务需求的选项。例如,在 10 年生命周期结束后,在延长生命周期支持(ELS)对 RHEL 7 可用的情况下,您可以通过购买 ELS 附加订阅,将红帽企业 Linux 实例的生命周期额外延长 4 年(请参阅下面的附录)。

在完整支持生命周期(即 RHEL 支持生命周期的前 5 年)内,大约每 6 个月就会发布一个新的 RHEL 次要版本。如果您没有高级支持订阅或延长更新支持(EUS)附加订阅,您需要使用每个次要版本更新 RHEL 实例,以获得红帽的高效支持。

如果您有业务需求或需要保留特定的 RHEL 次要版本,或者您的应用开发生命周期不允许您每 6 个月更新一次 RHEL,EUS 将支持您的更新生命周期要求。在本教程中,我将演示如何在 RHEL 上为 EUS 启用存储库。

EUS 包含在 RHEL 8 和 9 高级支持订阅中,也可以作为 RHEL 8 或 9 标准支持订阅的附加订阅购买。该服务允许您在点版本的支持结束后,继续使用该次要版本长达 18 个月。使用 EUS,您将获得 24 个月的 RHEL 次要版本支持。

从 RHEL 9 开始,您可以选择购买名为“增强型扩展更新支持”的全新 EUS 附加订阅,同时支持 RHEL 标准和高级支持产品,它将针对 RHEL 9 次要版本的 EUS 延长至 48 个月的支持。

从 RHEL 8.2 和 RHEL 9.0 开始,偶数次要版本可以享受 EUS。

扩展更新支持摘要

适用于从 RHEL 8.2 和 RHEL 9.0 开始的偶数次要版本
将次要版本支持延长至 24 个月
可通过 RHEL 高级支持订阅或 EUS 附加订阅获取
只有具有“严重”和“重要”影响的安全更新和具有紧急优先级的错误修复将在红帽的裁量下提供。
可能会将有限的新功能或硬件支持添加到 EUS 维护流中。

RHEL 8 和 9 当前次要版本的 EUS 结束日期

RHEL 8 EUS

RHEL 9 EUS

8.6(2024 年 5 月 31 日结束)9.0(2024 年 5 月 31 日结束)
8.8(2025 年 5 月 31 日结束)9.2(2025 年 5 月 31 日结束)

本教程的设置

在本文中,我将使用两台运行红帽企业 Linux 8.8 和红帽企业 Linux 9.2 的虚拟机来演示如何在 RHEL 实例上启用 EUS 存储库。与这些 RHEL 实例关联的红帽帐户启用了简单内容访问(SCA)。

在开始本教程之前,请确保您的系统已在红帽客户门户网站上注册。在本教程中,我使用激活密钥来注册我的 RHEL 实例。我将激活密钥设置为使用一个带智能管理的红帽企业 Linux 服务器的高级版(物理或虚拟节点)订阅。 

在合理的情况下,我为 RHEL 8 和 RHEL 9 分别提供了示例。

首先,注册您的 RHEL 8 和 RHEL 9 系统(两个系统都要注册):

$ sudo subscription-manager register --org=xxxxxxxx --activationkey=your_activationkey_here
[sudo] password for pslucas: 
The system has been registered with ID: 1b2d515f-e6fe-45a8-a8cf-9ffaf3839e0c
The registered system name is: eus88.example.com

检查系统状态。您会看到“Content Access Mode”已设置为 SCA。启用 SCA 后,您只需要启用实例,无需为实例分配特定的订阅。

$ sudo subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Disabled
Content Access Mode is set to Simple Content Access. This host has access to content, regardless of subscription status.
System Purpose Status: Disabled 

查看两个系统上启用了哪些存储库。在 RHEL 8 上:

$ sudo subscription-manager repos --list-enabled
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   rhel-8-for-x86_64-appstream-rpms
Repo Name: Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/appstream/os
Enabled:   1
Repo ID:   rhel-8-for-x86_64-baseos-rpms
Repo Name: Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/baseos/os
Enabled:   1

在 RHEL 9 上:

$ sudo subscription-manager repos --list-enabled
+----------------------------------------------------------+
    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/$releasever/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/$releasever/x86_64/baseos/os
Enabled:   1 

对于 RHEL 8,rhel-8-for-x86_64-appstream-rpms 和 rhel-8-for-x86_64-baseos-rpms 存储库来自主分支。它们包含所有 RPM,可让您升级到最新的次要版本。除了本例中的 RHEL 8.8,还可升级到 RHEL 8 的后续版本。

对于 RHEL 9,rhel-9-for-x86_64-appstream-rpms 和 rhel-9-for-x86_64-baseos-rpms 存储库来自主分支。它们包含所有 RPM,可让您升级到最新的次要版本。除了本例中的 RHEL9.2,还可升级到 RHEL 9 的后续版本。

现在,为 RHEL 8 和 RHEL 9 启用 EUS 存储库。您可以按照红帽访问文章如何访问 EUS中所示,查找存储库名称。

在 RHEL 8 上:

$ sudo subscription-manager repos --disable=rhel-8-for-x86_64-appstream-rpms --disable=rhel-8-for-x86_64-baseos-rpms
Repository 'rhel-8-for-x86_64-appstream-rpms' is disabled for this system.
Repository 'rhel-8-for-x86_64-baseos-rpms' is disabled for this system.
$ sudo subscription-manager repos --enable=rhel-8-for-x86_64-appstream-eus-rpms --enable=rhel-8-for-x86_64-baseos-eus-rpms
Repository 'rhel-8-for-x86_64-appstream-eus-rpms' is enabled for this system.
Repository 'rhel-8-for-x86_64-baseos-eus-rpms' is enabled for this system.
$ sudo subscription-manager repos --list-enabled
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   rhel-8-for-x86_64-appstream-eus-rpms
Repo Name: Red Hat Enterprise Linux 8 for x86_64 - AppStream - Extended Update Support (RPMs)
Repo URL:  https://cdn.redhat.com/content/eus/rhel8/$releasever/x86_64/appstream/os
Enabled:   1
Repo ID:   rhel-8-for-x86_64-baseos-eus-rpms
Repo Name: Red Hat Enterprise Linux 8 for x86_64 - BaseOS - Extended Update Support (RPMs)
Repo URL:  https://cdn.redhat.com/content/eus/rhel8/$releasever/x86_64/baseos/os
Enabled:   1

在 RHEL 9 上:

$ sudo subscription-manager repos --disable=rhel-9-for-x86_64-appstream-rpms --disable=rhel-9-for-x86_64-baseos-rpms
Repository 'rhel-9-for-x86_64-appstream-rpms' is disabled for this system.
Repository 'rhel-9-for-x86_64-baseos-rpms' is disabled for this system.
$sudo 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.
$ sudo subscription-manager repos --list-enabled
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   rhel-9-for-x86_64-baseos-eus-rpms
Repo Name: Red Hat Enterprise Linux 9 for x86_64 - BaseOS - Extended Update Support (RPMs)
Repo URL:  https://cdn.redhat.com/content/eus/rhel9/$releasever/x86_64/baseos/os
Enabled:   1
Repo ID:   rhel-9-for-x86_64-appstream-eus-rpms
Repo Name: Red Hat Enterprise Linux 9 for x86_64 - AppStream - Extended Update Support (RPMs)
Repo URL:  https://cdn.redhat.com/content/eus/rhel9/$releasever/x86_64/appstream/os
Enabled:   1

启用 EUS 存储库后,您可以访问特定版本(8.0 到 8.8)之前和期间的所有 EUS 勘误表,以及在定义的次要版本的 EUS 期间,访问下一个次要版本(8.9)之后发布的勘误表。如果不设置特定版本,勘误表就不会仅限于 8.8 更新版本。

如果您希望将勘误表限制为特定的 EUS 版本,您可以将 release --set 选项与 subscription-manager 搭配使用。例如:

$ sudo subscription-manager release --show
Release not set
$ sudo subscription-manager release --list
+-------------------------------------------+
          Available Releases
+-------------------------------------------+
8
8.0
8.1
8.2
8.3
8.4
8.5
8.6
8.7
8.8
$ sudo subscription-manager release --set=8.8
Release set to: 8.8

将版本设置为特定的 RHEL 次要版本,您可以通过启用了 EUS 的次要版本来限制 EUS 勘误表。

RHEL 生命周期表

红帽企业 Linux 生命周期支持定义

全方位支持

维护支持

延长生命周期支持

适用于当前的次要版本适用于最新的 RHEL 次要版本 6.10、7.9、8.10、9.10适用于最新的 RHEL 次要版本 6.10、7.9、8.10、9.10
包含在当前订阅中包含在当前订阅中附加组件订阅
红帽定义的严重&重要安全勘误表红帽定义的严重&重要安全勘误表红帽定义的严重&重要安全勘误表
新的&改进的硬件支持和软件功能 – 由红帽自行决定。尚未规划新的硬件支持和软件功能尚未规划新的硬件支持和软件功能
新安装介质无新安装介质无新安装介质

总结

红帽为您的 RHEL 实例提供了各种支持选项,因此您可以选择最适合您特定业务需求的支持选项。EUS 提供了另一种支持选项,旨在最有效地满足您的特定业务需求。


关于作者

Paul Lucas is a Chicagoland-based Red Hat Solutions Architect working with a variety of enterprise businesses. A 21 year technical sales veteran, Paul was previously a customer working at a benefits consulting firm, where he advised development teams on the use of Java and the then-emerging Java EE.

Read full bio
UI_Icon-Red_Hat-Close-A-Black-RGB

按频道浏览

automation icon

自动化

有关技术、团队和环境 IT 自动化的最新信息

AI icon

人工智能

平台更新使客户可以在任何地方运行人工智能工作负载

open hybrid cloud icon

开放混合云

了解我们如何利用混合云构建更灵活的未来

security icon

安全防护

有关我们如何跨环境和技术减少风险的最新信息

edge icon

边缘计算

简化边缘运维的平台更新

Infrastructure icon

基础架构

全球领先企业 Linux 平台的最新动态

application development icon

应用领域

我们针对最严峻的应用挑战的解决方案

Original series icon

原创节目

关于企业技术领域的创客和领导者们有趣的故事