How to Enable RHEL Subscription in RHEL 8

RedHat Enterprise Linux (RHEL) is an easy to manage and simple to control operating system that can be used on different Linux platforms such as – servers, virtual data centers, workstations etc.

As many of TecMint readers may already know in order to get the most of RHEL, you need to have an active subscription for the release you are using.

The subscription provides you with:

  • Ongoing delivery
    • Patches
    • Bug fixes
    • Updates
    • Upgrades
  • Technical support
    • 24/7 availability
    • Unlimited incidents
    • Specialty based routing
    • Multi-vendor case ownership
    • Multi-channel
  • Commitments
    • Hardware certifications
    • Software certifications
    • Cloud provider certifications
    • Software assurance
  • Expertise
    • Security Response Team (SRT)
    • Customer portal
    • Knowledge Base
    • Access labs
    • Training

This was a short list of the benefits of the subscription and if you are interested in reviewing more, you can check RHEL subscription model faq.

In this tutorial, we are going to show you how to use the RHEL subscription-manager to manage your subscriptions. Note that this is a two process as you need to first register a system and then apply subscription.

How to Register Red Hat Subscription in RHEL 8

If you have not registered your system during the RHEL 8 installation, you can do it now by applying the following command as root user.

# subscription-manager register

Then you can apply a subscription through the customer portal -> Systems -> Your system -> Attach a subscription, or use the command line again with.

# subscription-manager attach --auto
Active Redhat Subscription on RHEL 8

Active Redhat Subscription on RHEL 8

You can complete the whole process in one step by using the following command.

# subscription-manager register --username <username> --password <password> --auto-attach
Register RHEL 8 to Redhat Subscription

Register RHEL 8 to Redhat Subscription

Where you should change <username> and <password> with the username and password used for your RHEL customer portal.

If you do not want to use the “auto” to choose the subscription, you can use Pool ID to register. After the registration you can use:

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

To obtain the available Pool IDs you can use:

# subscription-manager list --available

How to Unregister Red Hat Subscription in RHEL 8

If you want to unregister a system, you will have to use the following commands:

Remove all subscriptions from this system:

# subscription-manager remove --all
Remove Redhat Subscription

Remove Redhat Subscription

Unregister the system from the customer portal:

# subscription-manager unregister
Uregister System from RedHat Portal

Uregister System from RedHat Portal

Finally remove all local system and subscription data without affecting the server:

# subscription-manager clean
Remove Redhat Subscription Data

Remove Redhat Subscription Data

Check Available Repositories

Once you have completed your subscription, you can review the enabled repositories by using the following command:

# yum repolist
Check Yum Repositories

Check Yum Repositories

If you want to enable more repositories for your RHEL installation, you can edit the following file:

# vi /etc/yum.repos.d/redhat.repo

Within that file, you will see a long list of available repos. To enable certain repo, changed 0 to 1 next to enabled:

Enable Yum Repositories

Enable Yum Repositories

Another way, you can enable a repo is by using the subscription manager. First list the available repos with:

# subscription-manager repos --list

This will result in a list of available repos that you can enable.

List Available Yum Repositories

List Available Yum Repositories

To enable or disable a repo use the following commands:

# subscription-manager repos –enable=RepoID
# subscription-manager repos --disable=RepoID
Enable or Disable Yum Repositories

Enable or Disable Yum Repositories


In this tutorial you learned how to register, unregister and list your RHEL subscriptions by using the command line subscription-manager. Subscription ultimately gives you access to RHEL software repositories from the subscribed entitlements. So if you are a RHEL user, don’t forget to register your systems.

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Marin Todorov

I am a bachelor in computer science and a Linux Foundation Certified System Administrator. Currently working as a Senior Technical support in the hosting industry. In my free time I like testing new software and inline skating.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

2 Responses

  1. Marin says:

    Hi borys,

    You can check the information here:

  2. borys says:

    My dev sub haven’t RHEL 8 beta, how did You get subscription of it ?

Leave a Reply to Marin Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.