はじめに
ここしばらく個人の開発環境では、Ubuntu Linux 24.04.04 LTSを使用しており、RHELは使っていなかったのですが、久々にRHEL9.6環境のパッケージ更新チェックをしたところ、下記のエラーメッセージが出力されました。
[testuser@RHEL-Server ~]$ sudo dnf check-update
[sudo] testuser のパスワード:
サブスクリプション管理リポジトリーを更新しています。
このシステムは、エンタイトルメントーバーに登録されていますが、更新は受信していません。subscription-manager でサブスクリプションを割り当てることができます。
Errors during downloading metadata for repository 'rhel-9-for-x86_64-appstream-rpms':
- Status code: 403 for https://cdn.redhat.com/content/dist/rhel9/9/x86_64/appstream/os/repodata/repomd.xml (IP: 23.32.12.83)
エラー: repo 'rhel-9-for-x86_64-appstream-rpms' のメタデータのダウンロードに失敗しました : Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
エラーメッセージがどうも過去にRHEL9.4を9.5に更新する際に遭遇した事象と同じであったため、ググってみたところ、つい先日RHEL9.7が公開されたようです。RHEL9.7では、ハイブリッドクラウドの諸々の課題への対応策が提供されている模様です。
そこで本日RHEL9.7へのリリースアップを行いましたので、備忘録を兼ねて纏めておきます。
更新作業
サブスクリプションの再登録
今回のエラーメッセージが出た場合には、サブスクリプションの再登録するしか対処方法がないので、まずは再登録を行います。
[root@RHEL-Server testuser]# subscription-manager register --force
登録の解除中: subscription.rhsm.redhat.com:443/subscription
UUID が eee68c60-28d8-4472-aada-8893d61505ad のシステムの登録は解除されました
ローカルデータがすべて削除されました
登録中: subscription.rhsm.redhat.com:443/subscription
ユーザー名: xxxxxxxxx
パスワード:
このシステムは、次の ID で登録されました: 11744e9b-7aab-4df4-b4a1-5ed6d70ae67c
登録したシステム名: RHEL-Server
この後、現状のサブスクリプションのリスト、及び、最新のリリースリストを確認します。
[root@RHEL-Server testuser]# subscription-manager list
+-------------------------------------------+
インストール済み製品のステータス
+-------------------------------------------+
製品名: Red Hat Enterprise Linux for x86_64
製品 ID: 479
バージョン: 9.6
アーキテクチャー: x86_64
[root@RHEL-Server testuser]# subscription-manager release --list
+-------------------------------------------+
利用可能なリリース
+-------------------------------------------+
9
9.0
9.1
9.2
9.3
9.4
9.5
9.6
9.7
一番下に「9.7」が表示されていることがわかります。
パsケージの更新
「dnf check-update」コマンドで更新パッケージを確認します。
[root@RHEL-Server testuser]# dnf check-update
サブスクリプション管理リポジトリーを更新しています。
Red Hat Enterprise Linux 9 for x86_64 - AppStre 25 MB/s | 77 MB 00:03
Red Hat Enterprise Linux 9 for x86_64 - BaseOS 30 MB/s | 91 MB 00:03
NetworkManager.x86_64 1:1.54.0-3.el9_7 rhel-9-for-x86_64-baseos-rpms
NetworkManager-adsl.x86_64 1:1.54.0-3.el9_7 rhel-9-for-x86_64-baseos-rpms
NetworkManager-bluetooth.x86_64
1:1.54.0-3.el9_7 rhel-9-for-x86_64-baseos-rpms
NetworkManager-config-server.noarch
1:1.54.0-3.el9_7 rhel-9-for-x86_64-baseos-rpms
NetworkManager-libnm.x86_64
1:1.54.0-3.el9_7 rhel-9-for-x86_64-baseos-rpms
:
:
yelp.x86_64 2:40.3-3.el9 rhel-9-for-x86_64-appstream-rpms
yelp-libs.x86_64 2:40.3-3.el9 rhel-9-for-x86_64-appstream-rpms
yum.noarch 4.14.0-31.el9 rhel-9-for-x86_64-baseos-rpms
yum-utils.noarch 4.3.0-24.el9_7 rhel-9-for-x86_64-baseos-rpms
パッケージの廃止
grub2-tools.x86_64 1:2.06-114.el9_7 rhel-9-for-x86_64-baseos-rpms
grub2-tools.x86_64 1:2.06-105.el9_6 @rhel-9-for-x86_64-baseos-rpms
grub2-tools-efi.x86_64 1:2.06-114.el9_7 rhel-9-for-x86_64-baseos-rpms
grub2-tools.x86_64 1:2.06-105.el9_6 @rhel-9-for-x86_64-baseos-rpms
grub2-tools-extra.x86_64 1:2.06-114.el9_7 rhel-9-for-x86_64-baseos-rpms
grub2-tools.x86_64 1:2.06-105.el9_6 @rhel-9-for-x86_64-baseos-rpms
grub2-tools-minimal.x86_64 1:2.06-114.el9_7 rhel-9-for-x86_64-baseos-rpms
grub2-tools.x86_64 1:2.06-105.el9_6 @rhel-9-for-x86_64-baseos-rpms
mesa-dri-drivers.i686 25.0.7-3.el9_7 rhel-9-for-x86_64-appstream-rpms
mesa-libglapi.x86_64 24.2.8-3.el9_6 @rhel-9-for-x86_64-appstream-rpms
mesa-dri-drivers.x86_64 25.0.7-3.el9_7 rhel-9-for-x86_64-appstream-rpms
mesa-libglapi.x86_64 24.2.8-3.el9_6 @rhel-9-for-x86_64-appstream-rpms
「9.7」のパッケージが適用されることにより、「9.6」の一部のパッケージが廃止されます。後は「dnf update」コマンドを実行して、パッケージを更新します。
パッケージ更新後の確認
サブスクリプションのリストを確認すると、バージョンが「9.7」に更新されたことが確認できます。
[root@RHEL-Server testuser]# subscription-manager list
+-------------------------------------------+
インストール済み製品のステータス
+-------------------------------------------+
製品名: Red Hat Enterprise Linux for x86_64
製品 ID: 479
バージョン: 9.7
アーキテクチャー: x86_64
「/etc/redhat-release」の中身もこれに伴い、9.7に変わっています。
[root@RHEL-Server testuser]# cat /etc/redhat-release
Red Hat Enterprise Linux release 9.7 (Plow)
おわりに
今回はRHEL9.6から9.7へのリリースアップ作業の内容を、備忘録を兼ねて纏めました。リリースアップ前には必ず何かしらありますね。試しに9.7に更新後、Redhat LightSpeedに9.7の変更点を聞いてみると、下記のような回答が得られました。2024年10月にリリースされたというのは間違いですけど。。。
[testuser@RHEL-Server ~]$ c "Please tell me the changes of RHEL9.7."
⁺₊+ Asking RHEL Lightspeed
This feature uses AI technology. Do not include any personal information or other sensitive information in your input. Interactions may be used to improve Red Hat's products or services.
-----------------------------------------------------------------------------
Red Hat Enterprise Linux 9.7, released in October 2024, brought a number of important enhancements, bug fixes, and new features across various aspects of the operating system. As a minor release in the RHEL 9 series, it focused on improving stability, security, and the developer experience.
Here are some of the key changes and updates in RHEL 9.7:
**1. Security Enhancements:**
* **OpenSSL 3.0 Updates:** Continued updates to OpenSSL 3.0, providing the latest cryptographic features and security fixes.
* **SELinux Policy Improvements:** Further refinements to SELinux policies to enhance system security and isolation.
* **SCAP Security Guide Updates:** Updates to the Security Content Automation Protocol (SCAP) Security Guide to align with the latest security standards and compliance requirements.
* **Kernel Security Fixes:** Integration of various upstream kernel security patches to address vulnerabilities.
**2. Performance and System Management:**
* **Kernel Updates:** Inclusion of the latest stable kernel, bringing performance improvements, bug fixes, and expanded hardware support.
* **Podman 4.8:** Updates to Podman, the daemonless container engine, offering new features, improved performance, and enhanced integration for container management.
* **Cockpit Web Console Enhancements:** Further improvements to the Cockpit web console, making system administration tasks like managing storage, networking, and services even more intuitive.
* **Systemd Updates:** Updates to `systemd`, providing better service management and system initialization capabilities.
* **Storage Management:** Enhancements to storage management tools and drivers, improving reliability and performance for various storage configurations.
**3. Developer Tools and Languages:**
* **Updated Compilers:** Refreshed versions of compilers like GCC, providing better optimization and support for modern C/C++ standards.
* **Language Runtimes:** Updates to various language runtimes and interpreters, including Python, Node.js, and Ruby, ensuring developers have access to the latest stable versions and features.
* **Database Updates:** Refreshed versions of popular open-source databases such as PostgreSQL and MariaDB.
* **Container Tools:** Continued improvements to the container toolset, including `buildah` and `skopeo`, to streamline container image building, sharing, and deployment.
**4. Networking:**
* **NetworkManager Updates:** Enhancements and bug fixes for NetworkManager, improving network configuration and stability.
* **FirewallD Improvements:** Updates to `firewallD` for more robust and flexible firewall management.
**5. Virtualization and Cloud:**
* **Virtualization Stack Updates:** Improvements to the virtualization stack, including `qemu-kvm` and `libvirt`, enhancing performance and stability for virtual machines.
* **Cloud-init Enhancements:** Updates to `cloud-init` for better integration and provisioning in cloud environments.
These changes collectively contribute to making RHEL 9.7 a more secure, stable, and performant platform for a wide range of enterprise workloads. Red Hat consistently delivers these minor releases to ensure that RHEL users benefit from the latest innovations and security updates while maintaining the stability and reliability expected from an enterprise operating system.
------------------------------------------------------------------------
Always review AI-generated content prior to use.