Skip to main content

Subscription Usage

Viewing subscription

NOTE: 這裡的版本號是指已安裝在系統的版本。

# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Red Hat Enterprise Linux for x86_64
Product ID:     479
Version:        8.5
Arch:           x86_64
Status:         Subscribed
Status Details:
Starts:         03/27/2022
Ends:           03/27/2023
# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name:   Red Hat Developer Subscription for Individuals
Provides:            Red Hat Enterprise Linux High Availability - Update Services for SAP
                     Solutions
                     Red Hat CodeReady Linux Builder for IBM z Systems - Extended Update Support
                     Red Hat Enterprise Linux Atomic Host
                     JBoss Enterprise Application Platform from RHUI
                     Red Hat Enterprise Linux Atomic Host Beta
                     JBoss Enterprise Web Server from RHUI
                     Red Hat Developer Tools (for RHEL Server)
                     Red Hat Container Images
                     Red Hat 3scale API Management Platform
                     Red Hat Developer Tools Beta (for RHEL Server)
                     Red Hat Container Images Beta
                     Red Hat OpenShift Enterprise JBoss EAP add-on
                     Red Hat Software Collections (for RHEL Server for ARM)
                     Red Hat Software Collections Beta (for RHEL Server for ARM)
                     Red Hat Migration Toolkit
                     Red Hat OpenShift Enterprise JBoss FUSE add-on
                     Red Hat OpenShift Enterprise JBoss A-MQ add-on
                     Red Hat JBoss Core Services from RHUI
                     Red Hat Enterprise Linux for x86_64
                     Red Hat Enterprise Linux Resilient Storage for x86_64
                     Red Hat Enterprise Linux Resilient Storage for x86_64 - Extended Update
                     Support
                     Red Hat Enterprise Linux Scalable File System (for RHEL Server)
                     dotNET on RHEL (for RHEL Server)
                     dotNET on RHEL Beta (for RHEL Server)
                     Red Hat Enterprise Linux Scalable File System (for RHEL Server) - Extended
                     Update Support
                     Red Hat Ansible Automation Platform
                     Oracle Java (for RHEL Server)
                     Red Hat Enterprise Linux for SAP HANA for x86_64
                     OpenJDK Java (for Middleware)
                     Red Hat Enterprise Linux for Real Time
                     Red Hat Software Collections (for RHEL Server)
                     Red Hat AMQ Interconnect
                     Oracle Java (for RHEL Server) - Extended Update Support
                     Red Hat Openshift Application Runtimes for IBM Power LE
                     Red Hat Developer Tools (for RHEL Server for ARM)
                     RHEL for SAP - Extended Update Support
                     Red Hat Developer Tools Beta (for RHEL Server for ARM)
                     Red Hat S-JIS Support (for RHEL Server) - Extended Update Support
                     RHEL for SAP HANA - Extended Update Support
                     Red Hat Software Collections Beta (for RHEL Server)
                     Red Hat Ansible Engine
                     Red Hat Enterprise Linux Server
                     Red Hat OpenShift Container Platform
                     Red Hat Container Development Kit
                     Red Hat CodeReady Linux Builder for x86_64
                     MRG Realtime
                     Red Hat CodeReady Linux Builder for ARM 64
                     Red Hat Enterprise Linux High Performance Networking (for RHEL Server)
                     Red Hat Developer Toolset (for RHEL Server)
                     Red Hat Enterprise Linux High Performance Networking (for RHEL Server) -
                     Extended Update Support
                     Red Hat Enterprise Linux High Performance Networking (for RHEL Compute Node)
                     Red Hat Build of Quarkus
                     Red Hat OpenShift Application Runtimes Beta
                     Red Hat Enterprise Linux EUS Compute Node
                     Red Hat Enterprise Linux for x86_64 - Extended Update Support
                     Red Hat Openshift Application Runtimes
                     Red Hat Enterprise Linux for ARM 64
                     Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
                     Red Hat Beta
                     Red Hat EUCJP Support (for RHEL Server) - Extended Update Support
                     JBoss Enterprise Application Platform
                     JBoss Enterprise Web Platform
                     RHEL for SAP (for IBM Power LE) - Update Services for SAP Solutions
                     Red Hat Developer Suite v.3
                     Red Hat Enterprise Linux Server - Update Services for SAP Solutions
                     Red Hat Enterprise Linux High Availability (for IBM z Systems) - Extended
                     Update Support
                     Red Hat Enterprise Linux for SAP Applications for x86_64
                     RHEL for SAP - Update Services for SAP Solutions
                     Red Hat JBoss AMQ Clients
                     RHEL for SAP HANA - Update Services for SAP Solutions
                     Red Hat Enterprise Linux Resilient Storage for IBM z Systems - Extended
                     Update Support
                     Red Hat OpenShift Enterprise JBoss EAP add-on Beta
                     Red Hat CodeReady Linux Builder for x86_64 - Extended Update Support
                     Red Hat CodeReady Workspaces for OpenShift
                     Red Hat JBoss Middleware
                     Red Hat JBoss Data Grid
                     Red Hat JBoss Core Services
                     Red Hat Enterprise Linux High Availability for x86_64
                     Red Hat Enterprise Linux High Availability for x86_64 - Extended Update
                     Support
                     Red Hat Enterprise Linux Load Balancer (for RHEL Server)
                     Red Hat Enterprise Linux Load Balancer (for RHEL Server) - Extended Update
                     Support
SKU:                 RH00798
Contract:
Account:
Serial:              4923702908878597137
Pool ID:             8a82c6557fc28ee7017fce53f95610a9
Provides Management: No
Active:              True
Quantity Used:       1
Service Type:
Roles:               Red Hat Enterprise Linux Server
                     Red Hat Enterprise Linux Workstation
                     Red Hat Enterprise Linux Compute Node
Service Level:       Self-Support
Usage:               Development/Test
Add-ons:
Status Details:      Subscription is current
Subscription Type:   Standard
Starts:              03/27/2022
Ends:                03/27/2023
Entitlement Type:    Physical
# subscription-manager list --available
+-------------------------------------------+
    Available Subscriptions
+-------------------------------------------+
Subscription Name:   Red Hat Beta Access
Provides:            Red Hat CodeReady Linux Builder for x86_64 Beta
                     Red Hat Enterprise Linux for IBM z Systems Beta
                     Red Hat Enterprise Linux Fast Datapath Beta for Power, little endian
                     Red Hat Enterprise Linux Resilient Storage Beta
                     Red Hat Enterprise Linux for x86_64 Beta
                     Red Hat Enterprise Linux for Real Time for NFV Beta
                     Red Hat Enterprise Linux for Real Time Beta
                     Red Hat Enterprise Linux for SAP HANA for x86_64 Beta
                     Red Hat Directory Server Beta
                     Red Hat Enterprise Linux Advanced Virtualization Beta (for RHEL Server for IBM System Z)
                     Red Hat Enterprise Linux for SAP Applications for x86_64 Beta
                     Red Hat Enterprise Linux for SAP Applications for IBM z Systems Beta
                     Red Hat CodeReady Linux Builder for ARM 64 Beta
                     Red Hat Enterprise Linux for SAP Applications for Power, little endian Beta
                     Red Hat Enterprise Linux Fast Datapath Beta for x86_64
                     Red Hat CodeReady Linux Builder for Power, little endian Beta
                     Red Hat CodeReady Linux Builder for IBM z Systems Beta
                     Red Hat Enterprise Linux High Availability Beta
                     Red Hat Enterprise Linux for Power, little endian Beta
                     Red Hat Enterprise Linux for ARM 64 Beta
                     Red Hat Certificate System Beta
                     Red Hat Enterprise Linux for SAP HANA for Power, little endian Beta
SKU:                 RH00069
Contract:
Pool ID:             8a82c6557fc28ee7017fce53f78f10a7
Provides Management: No
Available:           Unlimited
Suggested:           1
Service Type:        L1-L3
Roles:
Service Level:       Self-Support
Usage:
Add-ons:
Subscription Type:   Standard
Starts:              03/27/2022
Ends:                03/27/2023
Entitlement Type:    Physical
設定合適的系統屬性

System Purpose 是系統訂閱服務的其中一個設定,每個訂閱的系統依據用途不同以及系統安裝類型,設定適合系統的各種屬性,這些屬性在自動掛載訂閱時,系統會選擇最合適的訂閱項目。

屬性類型有分 Role、Usage、Service-Level、Addons。

  • role: 依據安裝的系統類型
  • usage: 依據系統的用途 (免費版的只有 Development/Test )
  • service-level: 支援服務等級 (免費版的只有 Self-Support)
  • addons: 自訂義

要檢視各屬性包含的值,可以執行

# subscription-manager role --list
+-------------------------------------------+
               Available role
+-------------------------------------------+
 - Red Hat Enterprise Linux Workstation
 - Red Hat Enterprise Linux Server
 - Red Hat Enterprise Linux Compute Node

設定 role

# subscription-manager role --show
Role not set.

# subscription-manager role --set="Red Hat Enterprise Linux Server"
role set to "Red Hat Enterprise Linux Server".

# subscription-manager role --show
Current Role: Red Hat Enterprise Linux Server
Errata 資訊未更新

如果在官網訂閱網站顯示有最新的 Errata 套件修補資訊,但 yum 指令卻不會顯示。

強制系統檢查 errata 可以執行

rm -f /var/lib/rhsm/packages/packages.json
service rhsmcertd stop
rhsmcertd --now
yum update
repos

Subscribe to the Extras channel/repo

subscription-manager repos --list
subscription-manager repos --list-enabled
subscription-manager repos --list-disabled

# subscription-manager repos --enable REPOID
subscription-manager repos --enable rhel-7-server-extras-rpms
subscription-manager repos --disable amq-clients-2-for-rhel-8-x86_64-rpms

# With yum
yum repolist --all
yum-config-manager --enable <repo-id>
Expired Subscription

Error: You no longer have access to the repositories that provide these products.  It is important that you apply an active subscription in order to resume access to security and other critical updates. If you don't have other active subscriptions, you can renew the expired subscription.

檢查已 attach 的訂閱

# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name:   Red Hat Developer Subscription for Individuals
Provides:            Red Hat Enterprise Linux High Availability for x86_64 - Update Services for
                     SAP Solutions
                     Red Hat Enterprise Linux Atomic Host
                     Red Hat CodeReady Linux Builder for IBM z Systems - Extended Update Support
                     JBoss Enterprise Application Platform from RHUI
                     Red Hat Enterprise Linux Atomic Host Beta
                     JBoss Enterprise Web Server from RHUI
                     Red Hat Developer Tools (for RHEL Server)
                     Red Hat Container Images
                     Red Hat Developer Tools Beta (for RHEL Server)
                     Red Hat Container Images Beta
                     Red Hat 3scale API Management Platform
                     Red Hat OpenShift Enterprise JBoss EAP add-on
                     Red Hat Software Collections (for RHEL Server for ARM)
                     Red Hat Software Collections Beta (for RHEL Server for ARM)
                     Red Hat OpenShift Enterprise JBoss FUSE add-on
                     Red Hat Migration Toolkit
                     Red Hat OpenShift Enterprise JBoss A-MQ add-on
                     Red Hat JBoss Core Services from RHUI
                     Red Hat Enterprise Linux for x86_64
                     Red Hat Enterprise Linux Resilient Storage for x86_64
                     Red Hat Enterprise Linux Resilient Storage for x86_64 - Extended Update
                     Support
                     dotNET on RHEL (for RHEL Server)
                     Red Hat Enterprise Linux Scalable File System (for RHEL Server)
                     dotNET on RHEL Beta (for RHEL Server)
                     Red Hat Enterprise Linux Scalable File System (for RHEL Server) - Extended
                     Update Support
                     Red Hat Ansible Automation Platform
                     Red Hat OpenShift Container Platform for ARM 64
                     Oracle Java (for RHEL Server)
                     Red Hat Enterprise Linux for SAP Solutions for x86_64
                     OpenJDK Java (for Middleware)
                     Red Hat Enterprise Linux for Real Time
                     Red Hat AMQ Interconnect
                     Red Hat Software Collections (for RHEL Server)
                     Red Hat Enterprise Linux for SAP Applications for x86_64 - Extended Update
                     Support
                     Red Hat Openshift Application Runtimes for IBM Power LE
                     Oracle Java (for RHEL Server) - Extended Update Support
                     Red Hat Developer Tools (for RHEL Server for ARM)
                     Red Hat Developer Tools Beta (for RHEL Server for ARM)
                     Red Hat Enterprise Linux for SAP Solutions for x86_64 - Extended Update
                     Support
                     Red Hat S-JIS Support (for RHEL Server) - Extended Update Support
                     Red Hat Software Collections Beta (for RHEL Server)
                     Red Hat Enterprise Linux Fast Datapath Beta for x86_64
                     Red Hat Enterprise Linux Fast Datapath
                     Red Hat Ansible Engine
                     Red Hat Enterprise Linux Server
                     Red Hat OpenShift Container Platform
                     Red Hat Container Development Kit
                     MRG Realtime
                     Red Hat CodeReady Linux Builder for x86_64
                     Red Hat CodeReady Linux Builder for ARM 64
                     Red Hat Developer Toolset (for RHEL Server)
                     Red Hat Enterprise Linux High Performance Networking (for RHEL Server)
                     Red Hat Enterprise Linux High Performance Networking (for RHEL Server) -
                     Extended Update Support
                     Red Hat Enterprise Linux High Performance Networking (for RHEL Compute Node)
                     Red Hat Build of Quarkus
                     Red Hat OpenShift Application Runtimes Beta
                     Red Hat Enterprise Linux EUS Compute Node
                     Red Hat Enterprise Linux for x86_64 - Extended Update Support
                     Red Hat Enterprise Linux Fast Datapath (for RHEL for ARM 64)
                     Red Hat Openshift Application Runtimes
                     Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
                     Red Hat Enterprise Linux for ARM 64
                     Red Hat Beta
                     Red Hat EUCJP Support (for RHEL Server) - Extended Update Support
                     JBoss Enterprise Application Platform
                     JBoss Enterprise Web Platform
                     Red Hat Developer Suite v.3
                     Red Hat Enterprise Linux for SAP Applications for Power LE - Update Services
                     for SAP Solutions
                     Red Hat Enterprise Linux High Availability (for IBM z Systems) - Extended
                     Update Support
                     Red Hat Enterprise Linux for x86_64 - Update Services for SAP Solutions
                     Red Hat Enterprise Linux for SAP Applications for x86_64 - Update Services
                     for SAP Solutions
                     Red Hat Enterprise Linux for SAP Applications for x86_64
                     Red Hat Enterprise Linux Resilient Storage for IBM z Systems - Extended
                     Update Support
                     Red Hat JBoss AMQ Clients
                     Red Hat Enterprise Linux for SAP Solutions for x86_64 - Update Services for
                     SAP Solutions
                     Red Hat OpenShift Enterprise JBoss EAP add-on Beta
                     Red Hat CodeReady Linux Builder for x86_64 - Extended Update Support
                     Red Hat JBoss Middleware
                     Red Hat CodeReady Workspaces for OpenShift
                     Red Hat JBoss Data Grid
                     Red Hat JBoss Core Services
                     Red Hat Enterprise Linux High Availability for x86_64
                     Red Hat Enterprise Linux High Availability for x86_64 - Extended Update
                     Support
                     Red Hat Enterprise Linux Load Balancer (for RHEL Server)
                     Red Hat Enterprise Linux Load Balancer (for RHEL Server) - Extended Update
                     Support
SKU:                 RH00798
Contract:
Account:
Serial:              1872264450564878453
Pool ID:             2c9486b7848d39d60184a84a43e874fb
Provides Management: No
Active:              False
Quantity Used:       1
Service Type:
Roles:
Service Level:       Self-Support
Usage:               Development/Test
Add-ons:
Status Details:      Subscription is expired      <======== NOTE: To remove this one
Subscription Type:
Starts:              11/24/2022
Ends:                11/24/2023
Entitlement Type:    Physical

Subscription Name:   Red Hat Developer Subscription for Individuals
Provides:            Red Hat Enterprise Linux High Availability for x86_64 - Update Services for
                     SAP Solutions
                     Red Hat Enterprise Linux Atomic Host
                     Red Hat CodeReady Linux Builder for IBM z Systems - Extended Update Support
                     JBoss Enterprise Application Platform from RHUI
                     Red Hat Enterprise Linux Atomic Host Beta
                     JBoss Enterprise Web Server from RHUI
                     Red Hat Developer Tools (for RHEL Server)
                     Red Hat Container Images
                     Red Hat Developer Tools Beta (for RHEL Server)
                     Red Hat Container Images Beta
                     Red Hat 3scale API Management Platform
                     Red Hat OpenShift Enterprise JBoss EAP add-on
                     Red Hat Software Collections (for RHEL Server for ARM)
                     Red Hat Software Collections Beta (for RHEL Server for ARM)
                     Red Hat OpenShift Enterprise JBoss FUSE add-on
                     Red Hat Migration Toolkit
                     Red Hat OpenShift Enterprise JBoss A-MQ add-on
                     Red Hat JBoss Core Services from RHUI
                     Red Hat Enterprise Linux for x86_64
                     Red Hat Enterprise Linux Resilient Storage for x86_64
                     Red Hat Enterprise Linux Resilient Storage for x86_64 - Extended Update
                     Support
                     dotNET on RHEL (for RHEL Server)
                     Red Hat Enterprise Linux Scalable File System (for RHEL Server)
                     dotNET on RHEL Beta (for RHEL Server)
                     Red Hat Enterprise Linux Scalable File System (for RHEL Server) - Extended
                     Update Support
                     Red Hat Ansible Automation Platform
                     Red Hat OpenShift Container Platform for ARM 64
                     Oracle Java (for RHEL Server)
                     Red Hat Enterprise Linux for SAP Solutions for x86_64
                     OpenJDK Java (for Middleware)
                     Red Hat Enterprise Linux for Real Time
                     Red Hat AMQ Interconnect
                     Red Hat Software Collections (for RHEL Server)
                     Red Hat Enterprise Linux for SAP Applications for x86_64 - Extended Update
                     Support
                     Red Hat Openshift Application Runtimes for IBM Power LE
                     Oracle Java (for RHEL Server) - Extended Update Support
                     Red Hat Developer Tools (for RHEL Server for ARM)
                     Red Hat Developer Tools Beta (for RHEL Server for ARM)
                     Red Hat Enterprise Linux for SAP Solutions for x86_64 - Extended Update
                     Support
                     Red Hat S-JIS Support (for RHEL Server) - Extended Update Support
                     Red Hat Software Collections Beta (for RHEL Server)
                     Red Hat Enterprise Linux Fast Datapath Beta for x86_64
                     Red Hat Enterprise Linux Fast Datapath
                     Red Hat Ansible Engine
                     Red Hat Enterprise Linux Server
                     Red Hat OpenShift Container Platform
                     Red Hat Container Development Kit
                     MRG Realtime
                     Red Hat CodeReady Linux Builder for x86_64
                     Red Hat CodeReady Linux Builder for ARM 64
                     Red Hat Developer Toolset (for RHEL Server)
                     Red Hat Enterprise Linux High Performance Networking (for RHEL Server)
                     Red Hat Enterprise Linux High Performance Networking (for RHEL Server) -
                     Extended Update Support
                     Red Hat Enterprise Linux High Performance Networking (for RHEL Compute Node)
                     Red Hat Build of Quarkus
                     Red Hat OpenShift Application Runtimes Beta
                     Red Hat Enterprise Linux EUS Compute Node
                     Red Hat Enterprise Linux for x86_64 - Extended Update Support
                     Red Hat Enterprise Linux Fast Datapath (for RHEL for ARM 64)
                     Red Hat Openshift Application Runtimes
                     Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
                     Red Hat Enterprise Linux for ARM 64
                     Red Hat Beta
                     Red Hat EUCJP Support (for RHEL Server) - Extended Update Support
                     JBoss Enterprise Application Platform
                     JBoss Enterprise Web Platform
                     Red Hat Developer Suite v.3
                     Red Hat Enterprise Linux for SAP Applications for Power LE - Update Services
                     for SAP Solutions
                     Red Hat Enterprise Linux High Availability (for IBM z Systems) - Extended
                     Update Support
                     Red Hat Enterprise Linux for x86_64 - Update Services for SAP Solutions
                     Red Hat Enterprise Linux for SAP Applications for x86_64 - Update Services
                     for SAP Solutions
                     Red Hat Enterprise Linux for SAP Applications for x86_64
                     Red Hat Enterprise Linux Resilient Storage for IBM z Systems - Extended
                     Update Support
                     Red Hat JBoss AMQ Clients
                     Red Hat Enterprise Linux for SAP Solutions for x86_64 - Update Services for
                     SAP Solutions
                     Red Hat OpenShift Enterprise JBoss EAP add-on Beta
                     Red Hat CodeReady Linux Builder for x86_64 - Extended Update Support
                     Red Hat JBoss Middleware
                     Red Hat CodeReady Workspaces for OpenShift
                     Red Hat JBoss Data Grid
                     Red Hat JBoss Core Services
                     Red Hat Enterprise Linux High Availability for x86_64
                     Red Hat Enterprise Linux High Availability for x86_64 - Extended Update
                     Support
                     Red Hat Enterprise Linux Load Balancer (for RHEL Server)
                     Red Hat Enterprise Linux Load Balancer (for RHEL Server) - Extended Update
                     Support
SKU:                 RH00798
Contract:
Account:
Serial:              8577712511130208842
Pool ID:             2c94cfad870f5a69018726de7fc90097
Provides Management: No
Active:              True
Quantity Used:       1
Service Type:
Roles:
Service Level:       Self-Support
Usage:               Development/Test
Add-ons:
Status Details:      Subscription is current
Subscription Type:   Standard
Starts:              03/28/2023
Ends:                03/27/2024
Entitlement Type:    Physical

檢查官網的系統 > 訂閱:過期訂閱已消失或移除 (unattach) 

更新系統的訂閱資訊

subscription-manager refresh
Cheat Sheet

rh_sm_command_cheatsheet_1214_jcs_web.png