Gregg's MOTD

Tips & Tricks that I've Encountered Over the Years...

Red Hat Subscription Service

July 04, 2023 — Gregg Szumowski

Once you have installed RHEL 9, register your RHEL subscription by running the following command on the terminal. The username and password are the login details to your Red Hat account.

$ sudo subscription-manager register --username=username --password=password

To confirm that the system is registered to Red Hat Subscription Management (RHSM), run the command:

$ sudo subscription-manager list --installed

Then refresh and subscribe:

$ sudo subscription-manager refresh
$ sudo subscription-manager attach --auto

Or, list the subscriptions that are available:

$ subscription-manager list --available --all
$ subscription-manager attach --pool=<POOL_ID>

Unregistering a system:

$ subscription-manager remove --all
$ subscription-manager unregister
$ subscription-manager clean

Tags: cli, rhel, motd