


Red Hat Enterprise Linux 8をインストール、開発サブスクリプションを登録してみました。
Red Hat Enterprise Linux 8.0 リリースノート
https://access.redhat.com/documentation/ja-jp/red_hat_enterprise_linux/8/html-single/8.0_release_notes/index
- サーバ登録情報の確認
- サーバの登録
- 利用できるサブスクリプションの確認
- サブスクリプションの登録
- サーバ登録情報の確認
- 利用できるサブスクリプションの確認
- dnf update
- サブスクリプションの解除
- サブスクリプション登録情報の確認
- サーバの登録解除
- サーバの登録情報の確認
インストール直後の登録情報を確認すると当然未登録です。
1 2 3 4 5 6 7 8 9 10 11 12 |
[root@rhel8 ~]# subscription-manager list +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Red Hat Enterprise Linux for x86_64 Product ID: 479 Version: 8.0 Arch: x86_64 Status: Unknown Status Details: Starts: Ends: |
インストールしたサーバをRed Hatに登録します。登録はRHNのアカウント、パスワードが必要です。
1 2 3 4 5 6 |
[root@rhel8 ~]# subscription-manager register Registering to: subscription.rhsm.redhat.com:443/subscription Username: RHNaccount Password: The system has been registered with ID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx The registered system name is: rhel8.rootlinks.net |
利用できるサブスクリプションを確認してみます。
SKU:RH00798と表示されていますが検索してもどの製品に該当するか出てこないです。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
[root@rhel8 ~]# subscription-manager list --available +-------------------------------------------+ Available Subscriptions +-------------------------------------------+ Subscription Name: Red Hat Developer Subscription Provides: dotNET on RHEL Beta (for RHEL Server) Red Hat CodeReady Linux Builder for x86_64 Red Hat Enterprise Linux for SAP HANA for x86_64 Red Hat Ansible Engine RHEL for SAP HANA - Update Services for SAP Solutions Red Hat Enterprise Linux Scalable File System (for RHEL Server) - Extended Update Support RHEL for SAP HANA - Extended Update Support Red Hat Container Images Beta Red Hat Enterprise Linux Atomic Host Beta Red Hat Container Images Red Hat Enterprise Linux High Availability (for RHEL Server) - Extended Update Support Red Hat Enterprise Linux Load Balancer (for RHEL Server) Red Hat Container Development Kit Red Hat Beta Red Hat EUCJP Support (for RHEL Server) - Extended Update Support RHEL for SAP (for IBM Power LE) - Update Services for SAP Solutions Red Hat Enterprise Linux High Availability for x86_64 MRG Realtime Red Hat Enterprise Linux Load Balancer (for RHEL Server) - Extended Update Support dotNET on RHEL (for RHEL Server) Red Hat Enterprise Linux High Availability - Update Services for SAP Solutions Oracle Java (for RHEL Server) Red Hat Enterprise Linux Resilient Storage for x86_64 Red Hat Enterprise Linux Server - Update Services for SAP Solutions Red Hat Software Collections (for RHEL Server) Red Hat Enterprise Linux for ARM 64 Red Hat Enterprise Linux High Performance Networking (for RHEL Server) Red Hat Enterprise Linux Scalable File System (for RHEL Server) Red Hat Enterprise Linux for Real Time Red Hat Enterprise Linux High Performance Networking (for RHEL Server) - Extended Update Support RHEL for SAP - Update Services for SAP Solutions Oracle Java (for RHEL Server) - Extended Update Support Red Hat Enterprise Linux Atomic Host Red Hat Enterprise Linux Server - Extended Update Support Red Hat CodeReady Linux Builder for ARM 64 Red Hat Developer Tools (for RHEL Server) Red Hat Software Collections Beta (for RHEL Server) Red Hat Enterprise Linux Server Red Hat Enterprise Linux for SAP Applications for x86_64 Red Hat Developer Tools Beta (for RHEL Server) Red Hat Enterprise Linux for x86_64 RHEL for SAP - Extended Update Support Red Hat Developer Toolset (for RHEL Server) Red Hat Enterprise Linux High Performance Networking (for RHEL Compute Node) Red Hat Enterprise Linux Resilient Storage (for RHEL Server) - Extended Update Support Red Hat S-JIS Support (for RHEL Server) - Extended Update Support SKU: RH00798 Contract: Pool ID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Provides Management: No Available: 16 Suggested: 1 Service Level: Self-Support Service Type: Subscription Type: Standard Starts: 04/09/19 Ends: 04/08/20 System Type: Physical |
利用できるサブスクリプションを自動選択して登録します。
1 2 3 4 |
[root@rhel8 ~]# subscription-manager attach --auto Installed Product Current Status: Product Name: Red Hat Enterprise Linux for x86_64 Status: Subscribed |
サブスクリプションが複数あり指定して登録する場合はプールIDを指定します。
1 |
[root@rhel8 ~]# subscription-manager attach --pool=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa |
サーバの登録情報を確認してみます。登録されています。
1 2 3 4 5 6 7 8 9 10 11 12 |
[root@rhel8 ~]# subscription-manager list +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Red Hat Enterprise Linux for x86_64 Product ID: 479 Version: 8.0 Arch: x86_64 Status: Subscribed Status Details: Starts: 04/09/19 Ends: 04/08/20 |
利用できるサブスクリプションが無くなりました。
1 2 |
[root@rhel8 ~]# subscription-manager list --available No available subscription pools to list |
RHEL 8ではyumの代わりにdnfが標準になりました。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
[root@rhel8 ~]# dnf update Updating Subscription Management repositories. Red Hat Enterprise Linux 8 for x86_64 - AppStream (RP 3.3 MB/s | 8.7 MB 00:02 Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 2.9 MB/s | 6.4 MB 00:02 Dependencies resolved. ====================================================================================== Package Arch Version Repository Size ====================================================================================== Installing: kernel x86_64 4.18.0-80.7.2.el8_0 rhel-8-for-x86_64-baseos-rpms 416 k kernel-modules x86_64 4.18.0-80.7.2.el8_0 rhel-8-for-x86_64-baseos-rpms 20 M kernel-core x86_64 4.18.0-80.7.2.el8_0 rhel-8-for-x86_64-baseos-rpms 24 M Upgrading: wget x86_64 1.19.5-7.el8_0.1 rhel-8-for-x86_64-appstream-rpms 734 k (snip) Transaction Summary ====================================================================================== Install 3 Packages Upgrade 89 Packages Total download size: 110 M Is this ok [y/N]: y Downloading Packages: (1/92): kernel-4.18.0-80.7.2.el8_0.x86_64.rpm 242 kB/s | 416 kB 00:01 (2/92): wget-1.19.5-7.el8_0.1.x86_64.rpm 1.2 MB/s | 734 kB 00:00 (3/92): vim-filesystem-8.0.1763-11.el8_0.noarch.rpm 168 kB/s | 48 kB 00:00 (4/92): rhn-client-tools-2.8.16-13.module+el8.0.0.z+3 1.3 MB/s | 385 kB 00:00 (5/92): bind-license-9.11.4-17.P2.el8_0.1.noarch.rpm 364 kB/s | 98 kB 00:00 (snip) Installed: kernel-4.18.0-80.7.2.el8_0.x86_64 kernel-modules-4.18.0-80.7.2.el8_0.x86_64 kernel-core-4.18.0-80.7.2.el8_0.x86_64 Complete! |
登録したサブスクリプションを解除してみます。
すべてのサブスクリプションを解除するには–allを追加します。
1 2 3 |
[root@rhel8 ~]# subscription-manager remove --all 1 local certificate has been deleted. 1 subscription removed at the server. |
サブスクリプションが解除されています。
1 2 3 4 5 6 7 8 9 10 11 12 |
[root@rhel8 ~]# subscription-manager list +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Red Hat Enterprise Linux for x86_64 Product ID: 479 Version: 8.0 Arch: x86_64 Status: Not Subscribed Status Details: Not supported by a valid subscription. Starts: Ends: |
Red Hatからサーバの登録を解除します。
1 2 3 |
[root@rhel8 ~]# subscription-manager unregister Unregistering from: subscription.rhsm.redhat.com:443/subscription System has been unregistered. |
インストール直後の状態に戻りました。
1 2 3 4 5 6 7 8 9 10 11 12 |
[root@rhel8 ~]# subscription-manager list +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Red Hat Enterprise Linux for x86_64 Product ID: 479 Version: 8.0 Arch: x86_64 Status: Unknown Status Details: Starts: Ends: |