Skip to main content

Red Hat Subscription Management

Red Hat Subscription Management

Red Hat Subscription Manager is installed on a local system and it tracks what products are installed, what subscriptions are available for the system, and what subscriptions are actually used by the system. It also tracks subscription expiration and automatically attaches new subscriptions based on the products and hardware.
Red Hat Subscription Manager works with content management tools (yum) to help install and update content on the local system.
Operating System : Red Hat Enterprise Linux 7.2

This blog guide to subscribe RHEL system with command line only, I have Red Hat Developer Subscription for Individuals which I am using here.

1. Register with your username and password 

[root@rhel7server ~]# subscription-manager register
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: xxxxxxxxx
Password: 
The system has been registered with ID: 9e88b0f5-d165-4786-ad3a-25xe80d2e604
The registered system name is: rhel7server.ansari.online

2. List all available subscriptions

[root@rhel7server ~]# subscription-manager list --available
+-------------------------------------------+
    Available Subscriptions
+-------------------------------------------+
Subscription Name:   Red Hat Developer Subscription for Individuals
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 Ansible Automation Platform
                     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:             8a85f99c71eff3f4017217c3d8ee523a
Provides Management: No
Available:           16
Suggested:           1
Service Type:        
Roles:               
Service Level:       Self-Support
Usage:               
Add-ons:             
Subscription Type:   Standard
Starts:              05/15/2020
Ends:                05/15/2021
Entitlement Type:    Physical

3. Attache available Pool

[root@rhel7server ~]# subscription-manager attach  --pool=8a85f99c71eff3f4017217c3d8ee523a
Successfully attached a subscription for: Red Hat Developer Subscription for Individuals

4. List available repositories with subscription-manager and enable which are necessary

[root@rhel7server ~]# subscription-manager repos --list
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   rhel-7-server-v2vwin-1-debug-rpms
Repo Name: Red Hat Virt V2V Tool for RHEL 7 (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/v2vwin/debug
Enabled:   0
Repo ID:   rhel-7-server-automation-services-catalog-1-beta-debug-rpms
Repo Name: Red Hat Automation Services Catalog 1 Beta for RHEL 7 (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/automation-services-catalog/1/debug
Enabled:   0
Repo ID:   rhel-7-server-eus-satellite-tools-6.3-debug-rpms
Repo Name: Red Hat Satellite Tools 6.3 (for RHEL 7 Server - EUS) (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/$releasever/$basearch/sat-tools/6.3/debug
Enabled:   0
Repo ID:   rhel-7-server-satellite-tools-6.8-rpms
Repo Name: Red Hat Satellite Tools 6.8 (for RHEL 7 Server) (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.8/os
Enabled:   0
Repo ID:   rhel-atomic-7-cdk-3.8-rpms
Repo Name: Red Hat Container Development Kit 3.8 /(RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/atomic/7/7Server/$basearch/cdk/3.8/os
Enabled:   0
Repo ID:   rhel-7-server-e4s-satellite-tools-6.8-source-rpms
Repo Name: Red Hat Satellite Tools 6.8 (for RHEL 7 Server - Update Services SAP Solutions) (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/e4s/rhel/server/7/$releasever/$basearch/sat-tools/6.8/source/SRPMS
Enabled:   0
Repo ID:   rhel-7-server-devtools-beta-rpms
Repo Name: Red Hat Developer Tools Beta RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/devtools/1/os
Enabled:   0
Repo ID:   rhel-7-server-eus-satellite-tools-6.5-source-rpms
Repo Name: Red Hat Satellite Tools 6.5 (for RHEL 7 Server - EUS) (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/$releasever/$basearch/sat-tools/6.5/source/SRPMS
Enabled:   0
Repo ID:   rhel-7-server-devtools-source-rpms
Repo Name: Red Hat Developer Tools Source RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/devtools/1/source/SRPMS
Enabled:   0
Repo ID:   rhel-7-server-ansible-tower-3.5-rpms
Repo Name: Ansible Tower 3.5 Text-Only Advisories
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible-tower/3.5/os
Enabled:   0
Repo ID:   rhel-7-server-satellite-tools-6.7-debug-rpms
Repo Name: Red Hat Satellite Tools 6.7 (for RHEL 7 Server) (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.7/debug
Enabled:   0
Repo ID:   rhel-7-server-satellite-tools-6-puppet-upgrade-beta-rpms
Repo Name: Red Hat Satellite Tools 6 Beta - Puppet Upgrade (for RHEL 7 Server) (RPMs)
Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/sat-tools/6-puppet-upgrade/os
Enabled:   0
.
.
.
Repo ID:   rhel-7-server-openstack-7.0-tools-source-rpms
Repo Name: Red Hat OpenStack Tools 7.0 for Red Hat Enterprise Linux 7 Server (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/openstack-tools/7.0/source/SRPMS
Enabled:   0


5. Enable Repository 

[root@rhel7server ~]# subscription-manager repos \ 
--enable=rhel-7-server-supplementary-rpms

[root@rhel7server ~]# subscription-manager repos \ 
--enable=rhel-7-server-supplementary-rpms --enable=rhel-server-rhscl-7-rpms --enable=rhel-7-server-ansible-2.8-rpms


Check more command syntax in cheat sheet
Subscription-manager cheat sheet : Download from here

Thanks for reading
For any suggestion and question, Please write in comment section !!

Comments

Popular posts from this blog

Mount ISO image in HP-UX 11i v3

ISO image is an archive file that could be written to a optical disc(CD/DVD). ISO images can be created from optical discs by disc imaging software (freely available on internet) or from a collection of files.  In HP-UX 11i v3 by default we can't mount .iso images we need a kernel module "fspd". it is Dynamically Loadable Kernel Module (DLKM).we need to install ISOIMAGE-ENH product which deliver this fspd DLKM. You can download this product by following link : https://h20392.www2.hpe.com/portal/swdepot/displayProductInfo.do?productNumber=ISOIMAGE-ENH After installation of ISOIMAGE-ENH load fspd module  To Load fspd Module # kcmodule fspd=loaded To unload fspd Module # kcmodule fspd=unused And here is how it works very simply: Create a directory to mount iso image on it.  # mkdir /rhel_iso # mount /soft/iso_images/RHEL-5.1-IA64-CD1.iso /rhel_iso Share my Blog and post questions and opinions in  comments !!

Update HP-UX Operating Environment (OE)

Hello Readers, Today I am describing how to update Operating Environment of HP-UX Operating System, Update OE steps are written below. Have a look.... 1. Check current OE version details 2. Download CD/DVD of Latest Operating Environment or HP-UX Operating System. 3. Create a Depot of OS Depot to update.  4. Run update in preview mode for any errors and warnings.  5. If update runs in preview mode successfully, Run update without Preview mode.  1. Checkup current OE version details # swlist | grep -i OE    HPUX11i-VSE-OE       B.11.31.1603   HP-UX Virtual Server Operating Environment You may see in output, currently it is of  March 2016 Virtual Server Operating Environment 2. Download CD/DVD of Latest Operating Environment or HP-UX Operating System. First download latest iso of HPUX Operating System and create a software depot from it How to mount iso images in HPUX system you may study my anoth...

HP-UX 11.31-Restore a single file/Directory from Ignite Backup (Tape and Net Recovery)

Hello Friends, This topic is related with HP-UX Operating System. In HP-UX Operating System Ignite is one of the hpux feature by which OS recovery image is being created in ignite server and external Tape cartridges which can be later used to restore OS in case of system crash. (In later Posts I will write about ignite server setup and ignite restoration techniques). Today I will write how to restore a single file or Directory from ignite backup in two cases, First is when we have ignite backup on Tape cartridge and Second is when we have ignite backup in Ignite Server. 1. From the Ignite Tape (assuming 2mn for tape device): # mt -f /dev/rmt/2mn rewind # mt -f /dev/rmt/2mn fsf 1     <– for PA-RISC System (and) # mt -f /dev/rmt/2mn fsf 22    <– for Itanium/Integrity System Use below command to restore file '/etc/lvmtab' # tar xvf /dev/rmt/2mn  etc/lvmtab NOTE : No leading '/'  (absolute path is to be used at time of restorati...