How to register and subscribe a system to the Red Hat Customer Portal using Red Hat Subscription-Manager

Solution Verified - Updated -


  • Red Hat Enterprise Linux(RHEL) 5.7 and newer
  • Red Hat Enterprise Linux(RHEL) 6.1 and newer
  • Red Hat Enterprise Linux(RHEL) 7.0 and newer
  • Red Hat Subscription Management
  • Red Hat Subscription-Manager
  • Red Hat Customer Portal


  • How to register a new Red Hat Enterprise Linux system to the Customer Portal using Red Hat Subscription-Manager
  • How to un-register a system using Red Hat Subscription-Manager
  • How to register a Red Hat Enterprise Linux server to a specific subscription using its pool-id
  • How to update or migrate registered server from RHN Classic to RHSM?
  • What is Subscription-Manager and how do I register a RHEL system so that I can install packages or updates with yum?
  • How do I register my system to RHSM using Subscription-Manager, to be able to install packages using yum?
  • We are not able to install the packges from yum, how to register a system to RHSM to access the packages?
  • I'm trying to find rhn_register with RHEL 7.0 but it's missing. How do I register a RHEL7 server for updates?
  • How to register with rhsm


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.

Red Hat Labs Registration Assistant

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

Register and automatically subscribe in one step

Use the following command to register the system, then automatically associate any available subscription matching that system:

# subscription-manager register --username <username> --password <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).

Register first, then attach a subscription in the Customer Portal

Use the following command to register a system without immediately attaching a subscription:

# subscription-manager register

Attach a specific subscription through the Customer Portal

After registration, you can assign a subscription to the registered system from the Customer Portal by referring this article.

  • After this, refresh the information on your machine using the following command. Be sure to run this any time you add or change the attached subscription from the Customer Portal:
# subscription-manager refresh

Attach a subscription from any available that match the system

After registration, use the following command to attach any available subscription that matches the current system.

# subscription-manager attach --auto

Register with a specific pool

After registration, use the following command to attach a subscription from a specific pool:

# subscription-manager attach --pool=<POOL_ID>

(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"

Registration via GUI

# subscription-manager-gui
  • Systems can also be registered with Customer Portal Subscription Management during the firstboot process or as part of the kickstart setup (both described in the Installation Guide)

Connecting through a HTTP Proxy or Firewall

Offline Registration

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.

Unregistering a system

# 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)?

Migrating from RHN Classic to RHSM


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

RHEL Systems Registration Guide

  • This document is part of a collection covering RHEL System Registration.
    • If this is not the right solution for your registration needs or;
    • If you wish to make a different registration choice;

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.


This hardly ever works as it should.

I registered a VM using my free developer subscription and also installed some packages using software collections. I would like to change it to use company paid subscription. Can you provide the steps for the change?

I just get 401s

HTTP error (401 - Unauthorized): Service not available, please try again later

I know other posts say not to use your email, but my login is an email. Not very helpful, took 2 hours just to figure out this even needed to happen... only to just fight with something so incredibly simple? Not exactly motivating to even continue with the headache.

Hi, i have license certificate with subscription for year for 2 systems, how to registration with the details?

I've been searching to get a manifest for my VMs. There's a video that mentions a tab for "satellite organizations". No such thing (on 6.7 anyway). Still trying to get a manifest.

Nothing I can find where it describes how to "accept the terms" before being able to register. Notes says to logout and backin from Customer Portal to "accept", but tried multiple times, and don't get such a prompt

I sadly had to use insecure on a centos Server, but please note I'm new to Redhat. If you have any suggestion regarding this. One thing is why this happens because the system complain it couldn't verify Server's certificate.