RHEL - 使用 RHEL 的 EUS 获得延长更新支持

《OpenShift / RHEL / DevSecOps 汇总目录》

文章目录

  • [如何获得 RHEL 的延长服务](#如何获得 RHEL 的延长服务)
    • [什么 RHEL 是 EUS - 延长更新支持](#什么 RHEL 是 EUS - 延长更新支持)
    • [什么是 ELC 和 LL 订阅](#什么是 ELC 和 LL 订阅)
  • [使用特定小版本的 EUS Repo](#使用特定小版本的 EUS Repo)
  • [制作 RHEL 各小版本的离线 Repo](#制作 RHEL 各小版本的离线 Repo)
  • 参考

如何获得 RHEL 的延长服务

什么 RHEL 是 EUS - 延长更新支持

根据红帽官方的说明,对于 RHEL 8/9/10 的标准版订阅 ,除了 x.10(例如 8.10/9.10/10.10)这种特定大版本的最后一个小版本外(目前 9.10/10.10 还未发布),其他 RHEL 小版本红帽官方只提供 6 个月的支持服务。而延长更新支持 (Extended Update Support,简称 EUS) 是红帽为 RHEL 订阅用户提供的一个选件(该 EUS 选件已包含在 RHEL 高级版订阅 中)。通过 EUS,红帽可为特定小版本的 RHEL (例如 8.1,8.2,8.4,8.6,8.8,9.0,9.2,9.4,9.6,9.8 等)再额外提供 18 个月的延长升级服务。在此期间红帽会修复级别为 Critical 和 Important 的安全漏洞,并修复 Urgent 级的 Bug。

红帽希望在 EUS 期间用户能将这些非 x.10 的 RHEL 升级到 x.10,以便能获得更长的生命周期支持。不过很多用户的生产 RHEL 系统很难在指定的时间升级,甚至受上端应用影响无法升级 RHEL 版本。此时用户可以通过 EUS 获得非 x.10 版本的 RHEL 以更长的技术支持。

在 2026/6 以前,除了 EUS 外,红帽还提供 E4S(Update Services for SAP Solutions)和 AUS(Advanced Update Support),EEUS (Enhanced‑EUS)级别的服务,可再将非 x.10 版本的 RHEL 服务和更新扩展 2 年。

什么是 ELC 和 LL 订阅

在 2026/6 以后,红帽合并了原有的 EUS、E4S、AUS、EEUS 等多种订阅(在过度期间,用户还可继续购买和使用这些原有订阅),并提供了 2 种新类型的产品订阅。第一种是 RHEL Extended Life Cycle(RHEL ELC)高级版,它在 RHEL 高级版之上进一步多提供了 4 年的支持服。第二种是 Long-Life Add-On (RHEL LL)附加订阅,用户可通过该附加订阅继续获得非 x.10 的 RHEL 更长的支持服务。

使用特定小版本的 EUS Repo

说明:本文使用 RHEL 9.4 作为环境演示如何使用 EUS(至少有包含 EUS 的订阅)。如果要使用 E4S、AUS 或 ELC 订阅,配置过程可参考本文。

  1. 确保 RHEL 主机已打通过 subscription-manager 进行了注册。

    subscription-manager register --username XXX --password YYY

  2. 查看当前 RHEL 的小版本和 Kernel 版本。

    cat /etc/redhat-release

    Red Hat Enterprise Linux release 9.4 (Plow)

    uname -r

    5.14.0-427.13.1.el9_4.x86_64

  3. 查看是否锁定只使用特定 release 的 RHEL 版本。如果没有,可以将 release 锁定在 RHEL 9.4。

    subscription-manager release

    Release not set

    subscription-manager release --list

    +-------------------------------------------+
    Available Releases
    +-------------------------------------------+
    9
    9.0
    9.1
    9.2
    9.3
    9.4
    9.5
    9.6
    9.7
    9.8

    subscription-manager release --set=9.4

  4. 确认当前系统使用的是默认的 Repo。注意:由于当前 release 锁定在 9.4,所以这个默认的 Repo 就是 RHEL 9.4 的默认 Repo。该 Repo 中的内容在 RHEL 9.4 发布 6 个月后官方就会停止更新。

    dnf repolist

    Updating Subscription Management repositories.
    repo id repo name
    rhel-9-for-x86_64-appstream-rpms Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)
    rhel-9-for-x86_64-baseos-rpms Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)

  5. 查看 RHEL 9.4 使用默认的 rhel-9-for-x86_64-baseos-rpms Repo 的情况,然后查看该 Repo 中和 kernel 相关的 rpm 数量。

    yum repolist -v --repo rhel-9-for-x86_64-baseos-rpms

    Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, needs-restarting, notify-packagekit, playground, product-id, repoclosure, repodiff, repograph, repomanage, reposync, subscription-manager, system-upgrade, uploadprofile
    Updating Subscription Management repositories.
    YUM version: 4.14.0
    cachedir: /var/cache/dnf
    Last metadata expiration check: 0:00:12 ago on Sun Sep 6 22:32:14 2026.
    Repo-id : rhel-9-for-x86_64-baseos-rpms
    Repo-name : Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)
    Repo-revision : 1788149845
    Repo-updated : Mon Aug 31 00:17:25 2026
    Repo-pkgs : 7330
    Repo-available-pkgs: 7330
    Repo-size : 18 G
    Repo-baseurl : https://cdn.redhat.com/content/dist/rhel9/9.4/x86_64/baseos/os
    Repo-expire : 86400 second(s) (last: Sun Sep 6 22:32:14 2026)
    Repo-filename : /etc/yum.repos.d/redhat.repo
    Total packages: 7330

    dnf repoquery --repo rhel-9-for-x86_64-baseos-rpms --showduplicates kernel | grep el9_4 | wc -l

    Last metadata expiration check: 0:00:46 ago on Fri Sep 4 22:43:43 2026.
    14

  6. 查看 redhat.repo 中是否有 baseos 的 eus、e4s 相关的 Repo。

    cat /etc/yum.repos.d/redhat.repo | grep rhel-9-for-x86_64-baseos-...-rpms

    [rhel-9-for-x86_64-baseos-e4s-rpms]
    [rhel-9-for-x86_64-baseos-aus-rpms]
    [rhel-9-for-x86_64-baseos-eus-rpms]

  7. 启用 baseos 的 eus 和 e4s 的 Repo。

    subscription-manager repos --enable rhel-9-for-x86_64-baseos-eus-rpms --enable rhel-9-for-x86_64-baseos-e4s-rpms

  8. 查看 rhel-9-for-x86_64-baseos-eus-rpms Repo 的情况。注意:此时较前面默认的 Repo 有更多可用的和 kernel 相关的 rpm 包,这是因为 RHEL 9.4 默认的 Repo 在此时已经停止更新了,这些更新只有在 EUS Repo 中才有。

    yum repolist -v --repo rhel-9-for-x86_64-baseos-eus-rpms

    Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, needs-restarting, notify-packagekit, playground, product-id, repoclosure, repodiff, repograph, repomanage, reposync, subscription-manager, system-upgrade, uploadprofile
    Updating Subscription Management repositories.
    YUM version: 4.14.0
    cachedir: /var/cache/dnf
    Red Hat Enterprise Linux 9 for x86_64 - BaseOS - Extended Update Support (RPMs) 81 MB/s | 92 MB 00:01
    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-revision : 1788150078
    Repo-updated : Mon Aug 31 00:21:17 2026
    Repo-pkgs : 9794
    Repo-available-pkgs: 9794
    Repo-size : 41 G
    Repo-baseurl : https://cdn.redhat.com/content/eus/rhel9/9.4/x86_64/baseos/os
    Repo-expire : 86400 second(s) (last: Sun Sep 6 22:38:43 2026)
    Repo-filename : /etc/yum.repos.d/redhat.repo
    Total packages: 9794

    dnf repoquery --repo rhel-9-for-x86_64-baseos-eus-rpms --showduplicates kernel | grep el9_4 | wc -l

    Last metadata expiration check: 0:02:06 ago on Fri Sep 4 22:40:08 2026.
    68

  9. 查看 rhel-9-for-x86_64-baseos-e4s-rpms Repo 的情况。注意:此时较 rhel-9-for-x86_64-baseos-eus-rpms 的 Repo 有更多可用的和 kernel 相关的 rpm 包,这是因为 e4s 较 eus 又多了 2 年的更新,这些更新只有在 e4s 的 Repo 中才有。

    yum repolist -v --repo rhel-9-for-x86_64-baseos-e4s-rpms

    Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, needs-restarting, notify-packagekit, playground, product-id, repoclosure, repodiff, repograph, repomanage, reposync, subscription-manager, system-upgrade, uploadprofile
    Updating Subscription Management repositories.
    YUM version: 4.14.0
    cachedir: /var/cache/dnf
    Red Hat Enterprise Linux 9 for x86_64 - BaseOS - Update Services for SAP Solutions (RPMs) 87 MB/s | 109 MB 00:01
    Last metadata expiration check: 0:00:11 ago on Mon Sep 7 07:01:50 2026.
    Repo-id : rhel-9-for-x86_64-baseos-e4s-rpms
    Repo-name : Red Hat Enterprise Linux 9 for x86_64 - BaseOS - Update Services for SAP Solutions (RPMs)
    Repo-revision : 1788356131
    Repo-updated : Wed Sep 2 09:35:31 2026
    Repo-pkgs : 10478
    Repo-available-pkgs: 10478
    Repo-size : 47 G
    Repo-baseurl : https://cdn.redhat.com/content/e4s/rhel9/9.4/x86_64/baseos/os
    Repo-expire : 86400 second(s) (last: Mon Sep 7 07:01:50 2026)
    Repo-filename : /etc/yum.repos.d/redhat.repo
    Total packages: 10478

    dnf repoquery --repo rhel-9-for-x86_64-baseos-e4s-rpms --showduplicates kernel | grep el9_4 | wc -l

    Last metadata expiration check: 0:21:42 ago on Mon Sep 7 07:01:50 2026.
    84

  10. 还可以切换到其他小版本的 RHEL 9,例如 9.6,然后再查看 RHEL 9.6 的默认以及 eus 的 Repo 中包含的文件。

    subscription-manager release --set=9.6

    yum repolist -v --repo rhel-9-for-x86_64-baseos-rpms

    yum repolist -v --repo rhel-9-for-x86_64-baseos-eus-rpms

制作 RHEL 各小版本的离线 Repo

可参考《RHEL - 为网络隔离主机构建本地软件 Repo》在以上 RHEL 9 的环境中制作 RHEL 9 小版本的离线 Repo。

参考

https://access.redhat.com/zh_CN/support/policy/updates/errata

https://access.redhat.com/zh_CN/articles/7078229

https://www.redhat.com/zh-cn/blog/red-hat-enterprise-linux-and-extended-update-support

https://access.redhat.com/articles/7028082

https://zero.rhdp.net/lab/zt-rhelbu.zt-eus-intro.prod

相关推荐
雯宝10 小时前
mnt_init 函数
linux
律宏阔16 小时前
WSL Docker 端口明明空闲,但就是绑不上端口
linux·windows
律宏阔16 小时前
WSL 突然断网,无法 ping 内网或外网
linux·windows
穷人小水滴16 小时前
用容器编译 VirtualBox 虚拟机软件 (ArchLinux, podman)
linux·容器·virtualbox
乱码三千16 小时前
如何优雅地直连无公网 IP 的远程 GPU 服务器
linux·人工智能·程序员
yunwei3716 小时前
使用 eBPF 跟踪 Nginx 请求
linux·后端·性能优化
yunwei3716 小时前
使用 eBPF 跟踪 MySQL 查询
linux·后端·性能优化
yunwei3716 小时前
eBPF 示例教程:使用 XDP 捕获 TCP 信息
linux·后端·性能优化
GeW16 小时前
制造业高端化,为什么必须重估Linux和数据库?
linux
GeW16 小时前
工业场景中的Linux与数据库选型:高端化转型的技术底座
linux