Red Hat 7.6 订阅与注册问题解决详细步骤指南
最编程
2024-07-19 17:37:08
...
Redhat Enterprise 需要收费了,需要注册订阅才能使用yum 源 然后才能愉快的使用redhat系统。
接下来就介绍下如何在redhat系统中进行订阅和注册 以及后续的连接到可用的repo 和启用repo仓库。
Redhat 系统安装好之后 执行 yum 命令就会提示你进行订阅注册了。
1.准备账户订阅注册
在执行订阅注册命令前,需要去redhat 官网注册登录你账户,然后申请一个免费试用的redhat系统 试用。执行下面的命令就是进行订阅注册了。
订阅注册命令:
[root@lii ~]# subscription-manager register This system is already registered. Use --force to override [root@lii ~]#
2.查看可用订阅注册服务
订阅注册完成之后检查以下可用的repo服务库。如果上面订阅成功后直接查看 repo list 是没有可用的服务的。需要查看以下你当前注册账户的可用服务授权有哪些 然后根据服务授权pool ID 进行repo 服务的关联。
检查可用的订阅:
[root@lii ~]# [root@lii ~]# subscription-manager repos --list This system has no repositories available through subscriptions.
[root@lii ~]# subscription-manager list --available
+-------------------------------------------+ Available Subscriptions +-------------------------------------------+ Subscription Name: 60 Day Evaluation of Red Hat OpenShift Container Platform, Self-supported (32 Cores) Provides: Red Hat CodeReady Linux Builder for x86_64 Red Hat Ansible Engine Red Hat CodeReady Linux Builder for Power, little endian Red Hat OpenShift Enterprise Infrastructure Red Hat Enterprise Linux Fast Datapath Red Hat JBoss Core Services JBoss Enterprise Application Platform Red Hat CloudForms Red Hat CodeReady Workspaces for OpenShift OpenShift Pipelines Red Hat Beta Red Hat OpenShift Enterprise JBoss EAP add-on Red Hat OpenShift Container Platform Red Hat Enterprise Linux High Availability for x86_64 Red Hat Gluster Storage Management Console (for RHEL Server) Red Hat Build of Jaeger Red Hat CoreOS Red Hat OpenShift Enterprise JBoss A-MQ add-on Red Hat OpenShift Enterprise Client Tools Red Hat CoreOS Beta Red Hat Openshift Serverless Red Hat CloudForms Beta Oracle Java (for RHEL Server) Red Hat Software Collections (for RHEL Server) Red Hat Advanced Cluster Management for Kubernetes Red Hat Gluster Storage Server for On-premise Red Hat Storage for Public Cloud (via RHUI) Red Hat Enterprise Linux Scalable File System (for RHEL Server) Red Hat OpenShift Enterprise Application Node Oracle Java (for RHEL Server) - Extended Update Support Red Hat Enterprise Linux Atomic Host Red Hat JBoss AMQ Clients Red Hat Enterprise Linux Fast Datapath Beta for x86_64 Red Hat Software Collections Beta (for RHEL Server) Red Hat Enterprise Linux Server OpenShift Tools and Services Red Hat Enterprise Linux for x86_64 JBoss Enterprise Web Server Red Hat OpenShift Service Mesh Red Hat Container Native Virtualization Red Hat Gluster Storage Nagios Server Red Hat OpenShift Enterprise JBoss FUSE add-on SKU: SER0419 Contract: 12237819 Pool ID: 8a85f99b727637b20172a8e7df2a6536 Provides Management: Yes Available: Unlimited Suggested: 1 Service Level: Self-Support Service Type: L1-L3 Subscription Type: Stackable Starts: 06/12/2020 Ends: 08/11/2020 System Type: Virtual Subscription Name: Red Hat OpenShift Broker/Master Infrastructure (2 Cores) Provides: dotNET on RHEL Beta (for RHEL Server) Oracle Java (for RHEL Server) Red Hat Software Collections (for RHEL Server) Red Hat CodeReady Linux Builder for x86_64 Red Hat Ansible Engine Red Hat OpenShift Enterprise Infrastructure Red Hat Enterprise Linux Fast Datapath Red Hat CloudForms Red Hat Enterprise Linux Atomic Host Red Hat Enterprise Linux Fast Datapath Beta for x86_64 Red Hat Beta Red Hat Software Collections Beta (for RHEL Server) Red Hat Enterprise Linux Server Red Hat Enterprise Linux for x86_64 Red Hat Enterprise Linux for x86_64 - Extended Update Support Red Hat OpenShift Container Platform Red Hat OpenShift Service Mesh Red Hat CodeReady Linux Builder for x86_64 - Extended Update Support dotNET on RHEL (for RHEL Server) Red Hat OpenShift Enterprise Client Tools Red Hat CloudForms Beta SKU: MCT2741 Contract: Pool ID: 8a85f99b727637b20172a8e7d3156526 Provides Management: Yes Available: 176 Suggested: 2 Service Level: Layered Service Type: L1-L3 Subscription Type: Stackable Starts: 06/12/2020 Ends: 08/11/2020 System Type: Physical Subscription Name: Red Hat OpenShift Broker/Master Infrastructure (2 Cores) Provides: dotNET on RHEL Beta (for RHEL Server) Oracle Java (for RHEL Server) Red Hat Software Collections (for RHEL Server) Red Hat CodeReady Linux Builder for x86_64 Red Hat Ansible Engine Red Hat OpenShift Enterprise Infrastructure Red Hat Enterprise Linux Fast Datapath Red Hat CloudForms Red Hat Enterprise Linux Atomic Host Red Hat Enterprise Linux Fast Datapath Beta for x86_64 Red Hat Beta Red Hat Software Collections Beta (for RHEL Server) Red Hat Enterprise Linux Server Red Hat Enterprise Linux for x86_64 Red Hat Enterprise Linux for x86_64 - Extended Update Support Red Hat OpenShift Container Platform Red Hat OpenShift Service Mesh Red Hat CodeReady Linux Builder for x86_64 - Extended Update Support dotNET on RHEL (for RHEL Server) Red Hat OpenShift Enterprise Client Tools Red Hat CloudForms Beta SKU: MCT2741 Contract: Pool ID: 8a85f99b727637b20172a8e7d370652b Provides Management: Yes Available: Unlimited Suggested: 2 Service Level: Layered Service Type: L1-L3 Subscription Type: Stackable Starts: 06/12/2020 Ends: 08/11/2020 System Type: Virtual Subscription Name: 60 Day Evaluation of Red Hat OpenShift Container Platform, Self-supported (32 Cores) Provides: Red Hat CodeReady Linux Builder for x86_64 Red Hat Ansible Engine Red Hat CodeReady Linux Builder for Power, little endian Red Hat OpenShift Enterprise Infrastructure Red Hat Enterprise Linux Fast Datapath Red Hat JBoss Core Services JBoss Enterprise Application Platform Red Hat CloudForms Red Hat CodeReady Workspaces for OpenShift OpenShift Pipelines Red Hat Beta Red Hat OpenShift Enterprise JBoss EAP add-on Red Hat OpenShift Container Platform Red Hat Enterprise Linux High Availability for x86_64 Red Hat Gluster Storage Management Console (for RHEL Server) Red Hat Build of Jaeger Red Hat CoreOS Red Hat OpenShift Enterprise JBoss A-MQ add-on Red Hat OpenShift Enterprise Client Tools Red Hat CoreOS Beta Red Hat Openshift Serverless Red Hat CloudForms Beta Oracle Java (for RHEL Server) Red Hat Software Collections (for RHEL Server) Red Hat Advanced Cluster Management for Kubernetes Red Hat Gluster Storage Server for On-premise Red Hat Storage for Public Cloud (via RHUI) Red Hat Enterprise Linux Scalable File System (for RHEL Server) Red Hat OpenShift Enterprise Application Node Oracle Java (for RHEL Server) - Extended Update Support Red Hat Enterprise Linux Atomic Host Red Hat JBoss AMQ Clients Red Hat Enterprise Linux Fast Datapath Beta for x86_64 Red Hat Software Collections Beta (for RHEL Server) Red Hat Enterprise Linux Server OpenShift Tools and Services Red Hat Enterprise Linux for x86_64 JBoss Enterprise Web Server Red Hat OpenShift Service Mesh Red Hat Container Native Virtualization Red Hat Gluster Storage Nagios Server Red Hat OpenShift Enterprise JBoss FUSE add-on SKU: SER0419 Contract: 12237819 Pool ID: 8a85f99b727637b20172a8e7deca6530 Provides Management: Yes Available: 16 Suggested: 1 Service Level: Self-Support Service Type: L1-L3 Subscription Type: Stackable Starts: 06/12/2020 Ends: 08/11/2020 System Type: Physical 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 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 CodeReady Linux Builder for x86_64 - Extended Update Support Red Hat Enterprise Linux High Availability - Update Services for SAP Solutions Red Hat Enterprise Linux Resilient Storage for x86_64 - Extended Update Support Red Hat Enterprise Linux High Availability for x86_64 - Extended Update Support 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 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 Red Hat Enterprise Linux for x86_64 - Extended Update Support 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 S-JIS Support (for RHEL Server) - Extended Update Support SKU: RH00798 Contract: Pool ID: 8a85f99c727637ad0172a0fed72b67d5 Provides Management: No Available: 16 Suggested: 1 Service Level: Self-Support Service Type: Subscription Type: Standard Starts: 06/10/2020 Ends: 06/10/2021 System Type: Physical [root@lii ~]#
3.关联订阅注册服务pool ID
以上内容是我执行查看可用服务命令后给出的可用服务有哪些 授权试用日期的期限。
接下来就是关联订阅可用服务。
关联订阅服务命令:
[root@lii ~]# subscription-manager attach --pool=8a85f99b727637b20172a8e7df2a6536 Successfully attached a subscription for: 60 Day Evaluation of Red Hat OpenShift Container Platform, Self-supported (32 Cores) 1 local certificate has been deleted. [root@lii ~]# [root@lii ~]# subscription-manager attach --pool=8a85f99c727637ad0172a0fed72b67d5 Successfully attached a subscription for: Red Hat Developer Subscription 2 local certificates have been deleted. [root@lii ~]#
4.启用rpms服务库
[root@lii ~]# subscription-manager repos --enable rhel-7-server-rpms Repository 'rhel-7-server-rpms' is enabled for this system. [root@lii ~]# [root@lii ~]# [root@lii ~]# subscription-manager repos --enable rhel-7-server-extras-rpms Repository 'rhel-7-server-extras-rpms' is enabled for this system. [root@lii ~]# [root@lii ~]# [root@lii ~]# subscription-manager repos --enable rhel-7-server-optional-rpms Repository 'rhel-7-server-optional-rpms' is enabled for this system. [root@lii ~]# [root@lii ~]# [root@lii ~]# subscription-manager repos --enable rhel-7-server-ose-4.2-rpms Repository 'rhel-7-server-ose-4.2-rpms' is enabled for this system. [root@lii ~]#
根据自己需要关联订阅需要的rpms库即可。然后就可以愉快的使用redhat enterprise 系统了。