JavaScript must be enabled in order for you to see "WP Copy Data Protect" effect. However, it seems JavaScript is either disabled or not supported by your browser. To see full result of "WP Copy Data Protector", enable JavaScript by changing your browser options, then try again.

How to use the subscription of RHEL 7 via the CLI


Kerker, I haven’t posted the rubbish over a month, and don’t find out a punch word to celebrate the CNY, so can note the procedure for the subscription about RHEL 7 to use the related develop packages from the official websites. How to set it, and let’s keep reading:
1) Register and automatically subscribe in one step
#subscription-manager register --username <USERNAME> --password <PASSWORD> --auto-attach
Registering to: subscription.rhsm.redhat.com:443/subscription
The system has been registered with ID: da7e7824-72a3-4d8d-a207-27d2ffc95526
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status: Subscribed

2) Register with a specific pool
#subscription-manager list --available --all
+-------------------------------------------+
Available Subscriptions
+-------------------------------------------+
Subscription Name: Red Hat Hardware Program
Provides: Red Hat Developer Tools Beta (for RHEL Server for System Z)
Red Hat Enterprise Linux Scalable File System (for RHEL Server)
Red Hat Beta
Red Hat Enterprise Linux for Power, big endian
Red Hat Developer Tools (for RHEL Server for IBM Power LE)
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power 9
Red Hat Developer Tools Beta (for RHEL Server for IBM Power LE)
Red Hat Enterprise Linux Server
Red Hat Certification (for RHEL Server)
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux High Performance Networking (for RHEL Server)
Red Hat Developer Tools (for RHEL Server for System Z)
SKU: MCT0786
Contract: 11296973
Pool ID: 8a85f98c5a3c151e015a3c3421f8138d
Provides Management: No
Available: 5
Suggested: 1
Service Level: Standard
Service Type: L1-L3
Subscription Type: Standard
Ends: 02/13/2018
System Type: Physical
#subscription-manager repos --enable=rhel-7-server-optional-rpms --enable=rhel-7-server-extras-rpms --enable=rhel-7-server-rh-common-rpms

3) Query the all repo list for the usage about the subscription
#yum repolist all
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
repo id repo name status
rh-gluster-3-client-for-rhel-7-server-debug-rpms/7Server/x86_64 Red Hat Storage Native Client for RHEL 7 (Debug RPMs) disabled
rh-gluster-3-client-for-rhel-7-server-rpms/7Server/x86_64 Red Hat Storage Native Client for RHEL 7 (RPMs) disabled
rh-gluster-3-client-for-rhel-7-server-source-rpms/7Server/x86_64 Red Hat Storage Native Client for RHEL 7 (Source RPMs) disabled
rhel-7-server-beta-debug-rpms/x86_64 Red Hat Enterprise Linux 7 Server Beta (Debug RPMs) disabled
rhel-7-server-beta-rpms/x86_64 Red Hat Enterprise Linux 7 Server Beta (RPMs) disabled
rhel-7-server-beta-source-rpms/x86_64 Red Hat Enterprise Linux 7 Server Beta (Source RPMs) disabled
rhel-7-server-cert-beta-rpms/x86_64 Red Hat Certification Beta (for RHEL 7 Server) disabled
rhel-7-server-cert-beta-source-rpms/x86_64 Red Hat Certification Beta (for RHEL 7 Server) (Source RPMs) disabled
rhel-7-server-cert-rpms/7Server/x86_64 Red Hat Certification (for RHEL 7 Server) disabled
rhel-7-server-cert-source-rpms/7Server/x86_64 Red Hat Certification (for RHEL 7 Server) (Source RPMs) disabled
rhel-7-server-debug-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server (Debug RPMs) disabled
rhel-7-server-extras-beta-debug-rpms/x86_64 Red Hat Enterprise Linux 7 Server - Extras Beta (Debug RPMs) disabled
rhel-7-server-extras-beta-rpms/x86_64 Red Hat Enterprise Linux 7 Server - Extras Beta (RPMs) disabled
rhel-7-server-extras-beta-source-rpms/x86_64 Red Hat Enterprise Linux 7 Server - Extras Beta (Source RPMs) disabled
rhel-7-server-extras-debug-rpms/x86_64 Red Hat Enterprise Linux 7 Server - Extras (Debug RPMs) disabled
rhel-7-server-extras-rpms/x86_64 Red Hat Enterprise Linux 7 Server - Extras (RPMs) enabled: 712
rhel-7-server-extras-source-rpms/x86_64 Red Hat Enterprise Linux 7 Server - Extras (Source RPMs) disabled
rhel-7-server-fastrack-debug-rpms/x86_64 Red Hat Enterprise Linux 7 Server - Fastrack (Debug RPMs) disabled
rhel-7-server-fastrack-rpms/x86_64 Red Hat Enterprise Linux 7 Server - Fastrack (RPMs) disabled
rhel-7-server-fastrack-source-rpms/x86_64 Red Hat Enterprise Linux 7 Server - Fastrack (Source RPMs) disabled
rhel-7-server-insights-3-debug-rpms/x86_64 Red Hat Insights 3 (for RHEL 7 Server) (Debug RPMs) disabled
rhel-7-server-insights-3-rpms/x86_64 Red Hat Insights 3 (for RHEL 7 Server) (RPMs) disabled
rhel-7-server-insights-3-source-rpms/x86_64 Red Hat Insights 3 (for RHEL 7 Server) (Source RPMs) disabled
rhel-7-server-openstack-10-tools-debug-rpms/7Server/x86_64 Red Hat OpenStack Platform 10 Tools for RHEL 7 Server (Debug RPMs) disabled
rhel-7-server-openstack-10-tools-rpms/7Server/x86_64 Red Hat OpenStack Platform 10 Tools for RHEL 7 Server (RPMs) disabled
rhel-7-server-openstack-10-tools-source-rpms/7Server/x86_64 Red Hat OpenStack Platform 10 Tools for RHEL 7 Server (Source RPMs) disabled
rhel-7-server-openstack-11-tools-debug-rpms/x86_64 Red Hat OpenStack Platform 11 Tools for RHEL 7 Server (Debug RPMs) disabled
rhel-7-server-openstack-11-tools-rpms/x86_64 Red Hat OpenStack Platform 11 Tools for RHEL 7 Server (RPMs) disabled
rhel-7-server-openstack-11-tools-source-rpms/x86_64 Red Hat OpenStack Platform 11 Tools for RHEL 7 Server (Source RPMs) disabled
rhel-7-server-openstack-7.0-tools-debug-rpms/7Server/x86_64 Red Hat OpenStack Tools 7.0 for Red Hat Enterprise Linux 7 Server (Debug RPMs) disabled
rhel-7-server-openstack-7.0-tools-rpms/7Server/x86_64 Red Hat OpenStack Tools 7.0 for Red Hat Enterprise Linux 7 Server (RPMs) disabled
rhel-7-server-openstack-7.0-tools-source-rpms/7Server/x86_64 Red Hat OpenStack Tools 7.0 for Red Hat Enterprise Linux 7 Server (Source RPMs) disabled
rhel-7-server-openstack-8-tools-debug-rpms/7Server/x86_64 Red Hat OpenStack Platform 8 Tools for RHEL 7 Server (Debug RPMs) disabled
rhel-7-server-openstack-8-tools-rpms/7Server/x86_64 Red Hat OpenStack Platform 8 Tools for RHEL 7 Server (RPMs) disabled
rhel-7-server-openstack-8-tools-source-rpms/7Server/x86_64 Red Hat OpenStack Platform 8 Tools for RHEL 7 Server (Source RPMs) disabled
rhel-7-server-openstack-9-tools-debug-rpms/7Server/x86_64 Red Hat OpenStack Platform 9 Tools for RHEL 7 Server (Debug RPMs) disabled
rhel-7-server-openstack-9-tools-rpms/7Server/x86_64 Red Hat OpenStack Platform 9 Tools for RHEL 7 Server (RPMs) disabled
rhel-7-server-openstack-9-tools-source-rpms/7Server/x86_64 Red Hat OpenStack Platform 9 Tools for RHEL 7 Server (Source RPMs) disabled
rhel-7-server-optional-beta-debug-rpms/x86_64 Red Hat Enterprise Linux 7 Server - Optional Beta (Debug RPMs) disabled
rhel-7-server-optional-beta-rpms/x86_64 Red Hat Enterprise Linux 7 Server - Optional Beta (RPMs) disabled
rhel-7-server-optional-beta-source-rpms/x86_64 Red Hat Enterprise Linux 7 Server - Optional Beta (Source RPMs) disabled
rhel-7-server-optional-debug-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server - Optional (Debug RPMs) disabled
rhel-7-server-optional-fastrack-debug-rpms/x86_64 Red Hat Enterprise Linux 7 Server - Optional Fastrack (Debug RPMs) disabled
rhel-7-server-optional-fastrack-rpms/x86_64 Red Hat Enterprise Linux 7 Server - Optional Fastrack (RPMs) disabled
rhel-7-server-optional-fastrack-source-rpms/x86_64 Red Hat Enterprise Linux 7 Server - Optional Fastrack (Source RPMs) disabled
rhel-7-server-optional-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server - Optional (RPMs) enabled: 13,083
rhel-7-server-optional-source-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server - Optional (Source RPMs) disabled
rhel-7-server-rh-common-beta-debug-rpms/x86_64 Red Hat Enterprise Linux 7 Server - RH Common Beta (Debug RPMs) disabled
rhel-7-server-rh-common-beta-rpms/x86_64 Red Hat Enterprise Linux 7 Server - RH Common Beta (RPMs) disabled
rhel-7-server-rh-common-beta-source-rpms/x86_64 Red Hat Enterprise Linux 7 Server - RH Common Beta (Source RPMs) disabled
rhel-7-server-rh-common-debug-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server - RH Common (Debug RPMs) disabled
rhel-7-server-rh-common-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server - RH Common (RPMs) enabled: 231
rhel-7-server-rh-common-source-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server - RH Common (Source RPMs) disabled
rhel-7-server-rhceph-1.3-tools-debug-rpms/7Server/x86_64 Red Hat Ceph Storage Tools 1.3 for Red Hat Enterprise Linux 7 Server (Debug RPMs) disabled
rhel-7-server-rhceph-1.3-tools-rpms/7Server/x86_64 Red Hat Ceph Storage Tools 1.3 for Red Hat Enterprise Linux 7 Server (RPMs) disabled
rhel-7-server-rhceph-1.3-tools-source-rpms/7Server/x86_64 Red Hat Ceph Storage Tools 1.3 for Red Hat Enterprise Linux 7 Server (Source RPMs) disabled
rhel-7-server-rhceph-2-tools-debug-rpms/7Server/x86_64 Red Hat Ceph Storage Tools 2 for Red Hat Enterprise Linux 7 Server (Debug RPMs) disabled
rhel-7-server-rhceph-2-tools-rpms/7Server/x86_64 Red Hat Ceph Storage Tools 2 for Red Hat Enterprise Linux 7 Server (RPMs) disabled
rhel-7-server-rhceph-2-tools-source-rpms/7Server/x86_64 Red Hat Ceph Storage Tools 2 for Red Hat Enterprise Linux 7 Server (Source RPMs) disabled
rhel-7-server-rhn-tools-beta-debug-rpms/x86_64 RHN Tools for Red Hat Enterprise Linux 7 Server Beta (Debug RPMs) disabled
rhel-7-server-rhn-tools-beta-rpms/x86_64 RHN Tools for Red Hat Enterprise Linux 7 Server Beta (RPMs) disabled
rhel-7-server-rhn-tools-beta-source-rpms/x86_64 RHN Tools for Red Hat Enterprise Linux 7 Server Beta (Source RPMs) disabled
rhel-7-server-rhn-tools-debug-rpms/7Server/x86_64 RHN Tools for Red Hat Enterprise Linux 7 Server (Debug RPMs) disabled
rhel-7-server-rhn-tools-rpms/7Server/x86_64 RHN Tools for Red Hat Enterprise Linux 7 Server (RPMs) disabled
rhel-7-server-rhn-tools-source-rpms/7Server/x86_64 RHN Tools for Red Hat Enterprise Linux 7 Server (Source RPMs) disabled
rhel-7-server-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server (RPMs) enabled: 17,813
rhel-7-server-satellite-maintenance-6-debug-rpms/x86_64 Red Hat Satellite Maintenance 6 (for RHEL 7 Server) (Debug RPMs) disabled
rhel-7-server-satellite-maintenance-6-rpms/x86_64 Red Hat Satellite Maintenance 6 (for RHEL 7 Server) (RPMs) disabled
rhel-7-server-satellite-maintenance-6-source-rpms/x86_64 Red Hat Satellite Maintenance 6 (for RHEL 7 Server) (Source RPMs) disabled
rhel-7-server-satellite-tools-6-beta-debug-rpms/x86_64 Red Hat Satellite Tools 6 Beta (for RHEL 7 Server) (Debug RPMs) disabled
rhel-7-server-satellite-tools-6-beta-rpms/x86_64 Red Hat Satellite Tools 6 Beta (for RHEL 7 Server) (RPMs) disabled
rhel-7-server-satellite-tools-6-beta-source-rpms/x86_64 Red Hat Satellite Tools 6 Beta (for RHEL 7 Server) (Source RPMs) disabled
rhel-7-server-satellite-tools-6.1-debug-rpms/x86_64 Red Hat Satellite Tools 6.1 (for RHEL 7 Server) (Debug RPMs) disabled
rhel-7-server-satellite-tools-6.1-rpms/x86_64 Red Hat Satellite Tools 6.1 (for RHEL 7 Server) (RPMs) disabled
rhel-7-server-satellite-tools-6.1-source-rpms/x86_64 Red Hat Satellite Tools 6.1 (for RHEL 7 Server) (Source RPMs) disabled
rhel-7-server-satellite-tools-6.2-debug-rpms/x86_64 Red Hat Satellite Tools 6.2 (for RHEL 7 Server) (Debug RPMs) disabled
rhel-7-server-satellite-tools-6.2-rpms/x86_64 Red Hat Satellite Tools 6.2 (for RHEL 7 Server) (RPMs) disabled
rhel-7-server-satellite-tools-6.2-source-rpms/x86_64 Red Hat Satellite Tools 6.2 (for RHEL 7 Server) (Source RPMs) disabled
rhel-7-server-source-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server (Source RPMs) disabled
rhel-7-server-supplementary-beta-debug-rpms/x86_64 Red Hat Enterprise Linux 7 Server - Supplementary Beta (Debug RPMs) disabled
rhel-7-server-supplementary-beta-rpms/x86_64 Red Hat Enterprise Linux 7 Server - Supplementary Beta (RPMs) disabled
rhel-7-server-supplementary-beta-source-rpms/x86_64 Red Hat Enterprise Linux 7 Server - Supplementary Beta (Source RPMs) disabled
rhel-7-server-supplementary-debug-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server - Supplementary (Debug RPMs) disabled
rhel-7-server-supplementary-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server - Supplementary (RPMs) disabled
rhel-7-server-supplementary-source-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server - Supplementary (Source RPMs) disabled
rhel-7-server-v2vwin-1-debug-rpms/7Server/x86_64 Red Hat Virt V2V Tool for RHEL 7 (Debug RPMs) disabled
rhel-7-server-v2vwin-1-rpms/7Server/x86_64 Red Hat Virt V2V Tool for RHEL 7 (RPMs) disabled
rhel-7-server-v2vwin-1-source-rpms/7Server/x86_64 Red Hat Virt V2V Tool for RHEL 7 (Source RPMs) disabled
repolist: 31,839

4) Query the all package lists from the mirror sites you selected
#yum list

5) The related support para for subscription-manager & repolist
#subscription-manager list --available --all
#subscription-manager repos
#subscription-manager repos list
#subscription-manager repos --list
#yum repolist all
#yum repolist all | grep -i openstack

6) The sample command to download the packages of python-osl* only
#yum install --downloadonly python-osl*

◎、Above context is about how to use the subscription of RHEL 7 via the CLI, and I have referred the this article from the RHEL official site. You also can google it if want to know more info for etc. That’s all for today, and hope this article is helpful for you.See you next time!

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 
This site is protected by WP-CopyRightPro