Skip to content

Instantly share code, notes, and snippets.

@PhilipSchmid
Created April 7, 2017 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PhilipSchmid/0f13386ab0f49732a78c3a369765f2c1 to your computer and use it in GitHub Desktop.
Save PhilipSchmid/0f13386ab0f49732a78c3a369765f2c1 to your computer and use it in GitHub Desktop.
How to switch from RHN to Red Hat subscription-manager

How to switch from RHN to Red Hat subscription-manager

RHEL 6 Server

  1. Check if subscription-manager is installed. If not, install it via yum install subscription-manager.

  2. Delete host on the RHN site.

  3. "Unregister" host from RHN:

rm -rf /etc/sysconfig/rhn/systemid
  1. Add host via the following commands:
subscription-manager register --username USER@EXAMPLE.COM --password PASSWORD --auto-attach
subscription-manager repos --enable rhel-6-server-optional-rpms

RHEL 6 Workstation

Same steps as for the server. The only think that changes, is the workstation optional repo name. Enable it via the following command:

subscription-manager repos --enable rhel-6-workstation-optional-rpms

RHEL 7 general

For RHEL 7, just use the repos rhel-7-server-optional-rpms and rhel-7-workstation-optional-rpms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment