Skip to content

Instantly share code, notes, and snippets.

@kurtis318
Last active March 30, 2019 01:58
Show Gist options
  • Save kurtis318/81a4abb34eea831190216537050799f9 to your computer and use it in GitHub Desktop.
Save kurtis318/81a4abb34eea831190216537050799f9 to your computer and use it in GitHub Desktop.
Disable Red Hat subscription-manager

Issue:

I do a lot of installing of Red Hat in a test environment without a RH subscription. I keep getting this error message:

# yum repo list
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
No such command: repo. Please use /usr/bin/yum --help

Today, after a yum update (I am at 7.6) and rebooting, I cannot run any yum commands without hanging. If I add the --noplugins option to the yum command, the yum command works. I need a more general solution short of removing subscription-manager via rpm command.

Solution:

REF: https://serverfault.com/questions/764900/how-to-remove-this-warning-this-system-is-not-registered-to-red-hat-subscriptio

Pretty simple.

Edit vim /etc/yum/pluginconf.d/subscription-manager.conf

Change enabled=1 to enabled=0

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