https://access.redhat.com/solutions/253273
Red Hat Enterprise Linux
system to the Customer Portal using Red Hat Subscription-Manager
Red Hat Subscription-Manager
Red Hat Enterprise Linux
server to a specific subscription using its pool-idRHN Classic
to RHSM
?RHSM
using Subscription-Manager, to be able to install packages using yum
?RHSM
to access the packages?rhn_register
with RHEL 7.0 but it's missing. How do I register a RHEL7 server for updates?Red Hat Subscription Management allows users to track their subscription quantity and consumption.
NOTE: With Red Hat Subscription-Manager, registration and utilization of a subscription is actually a two-part process.
First register a system, then apply a subscription.
We have an online tool to assist you in selecting the most appropriate registration technology for your system. If you would prefer to use this tool, please visit https://access.redhat.com/labs/registrationassistant/.
Use the following command to register the system, then automatically associate any available subscription matching that system:
# subscription-manager register --username --password --auto-attach
If the command is unable to attach a subscription, it will indicate that in the output. Then, you can attach the subscription from the Customer Portal, instead (see the next section).
Use the following command to register a system without immediately attaching a subscription:
# subscription-manager register
After registration, you can assign a subscription to the registered system from the Customer Portal by referring this article.
# subscription-manager refresh
After registration, use the following command to attach any available subscription that matches the current system.
# subscription-manager attach --auto
After registration, use the following command to attach a subscription from a specific pool:
# subscription-manager attach --pool=
(You can find which pools are available with subscription-manager list --available
)
Note: With subscription-manager-1.1.9-1 or later, attach option has been replacing the subscribe
option. For more information, please refer to following article: RHBA-2013-0350
If you are not sure of the pool ID needed, these and details such as expiration dates can be viewed using the following command:
# subscription-manager list --available --all
Using Virtual Data Center? You may find this solution helpful: How to subscribe a VMware or Hyper-V guest using "Red Hat Enterprise Linux for Virtual Datacenter subscription"
# subscription-manager-gui
Some systems may not have internet connectivity, but administrators still want to attach and track the subscriptions for that system. This can be done by manually registering the system using the Customer Portal.
# subscription-manager remove --all
# subscription-manager unregister
# subscription-manager clean
Also see How to delete System Profiles for those registered with Red Hat Subscription Manager (RHSM)?
Subscription-manager for the former Red Hat Network User - a 7-part series
Additional instructions on registering, unregistering, and reregistering a system using Red Hat Subscription Management can be found in documentation
Having trouble? Please see these solutions for first steps to resolve common issues:
* How to troubleshoot subscription-manager and yum issues
* RHSM Subscription Issues Troubleshooting Do's and Don'ts