oracledba.help
Install

Redhat System Registration

Overview

To be able to install software or apply patches with a redhat server you need to perform a system Registration.

Status

 subscription-manager status
 -- Active\Current
 +-------------------------------------------+  
    System Status Details  
 +-------------------------------------------+  
 Overall Status: Current

 -- Not Active
 Status:         Not Subscribed
 Status Details: Not covered by a valid subscription.

 subscription-manager list --consumed

Process

CmdLine
[root] subscription-manager register --username <username> --password <password> --auto-attach

 Example
 [root] subscription-manager register --username scott --password tiger --auto-attach
 Registering to: subscription.rhsm.redhat.com:443/subscription
 The system has been registered with ID: 7b7e9cd5-38ac-4445-a70f-1dd4b233ac8c
 The registered system name is: lnx01.mycompany.local
 Installed Product Current Status:
 Product Name: Red Hat Enterprise Linux Server
 Status:       Subscribed

GUI

 0. You have created a Redhat.com account.

 1. Log into the GUI as the root user.

 2. Applications 🠊 RH Subscription Manager 🠊 [Register]

 3. Login:     <Redhat.com Username>
    Password:  ******
    Systemname: <UseDefault>
    [Register]

    Confirm Subscriptions (Phyiscal 1): [Attach]

    It will connect to Redhat then show Subscribed as Status.

Standard Unregister\Register Session

 subscription-manager unregister
 subscription-manager clean
 subscription-manager register --username scott --password tiger --auto-attach --force

If preferred: subscription-manager unregister --username=scott

Complete Clean Refresh of Subscription

 # subscription-manager remove --all 
1 subscription removed at the server.
1 local certificate has been deleted. # subscription-manager unregister
System has been unregistered. # subscription-manager clean
All local data removed # subscription-manager register --username=scotttiger
Registering to: subscription.rhsm.redhat.com:443/subscription
Password:
The system has been registered with ID: nnn... # subscription-manager attach --auto
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status: Subscribed

Redhat URL that shows subscription info for all systems.

Troubleshooting

If the process hangs during subscription-manager register or any other part, try killing the subscription-manager as shown below then retrying your command:

 # pgrep rhsmcertd 
 # kill -9 pid (replace 'pid' with the actual process ID)
 # service rhsmcertd restart

 subscription-manager register --username scott --password tiger --auto-attach --force

Related Info

How to register and subscribe a system to the Red Hat Customer Portal using Red Hat Subscription-Manager Link : https://access.redhat.com/solutions/253273

  1. yum clean all
  2. yum repolist

Trouble Shooting

subscription-manager attach --auto

Installed Product Current Status:
Product Name: Red Hat Software Collections (for RHEL Server)
Status:       Not Subscribed

Product Name: Red Hat Enterprise Linux Server
Status:       Not Subscribed

Unable to find available subscriptions for all your installed products.