33

I get the following error when i am listing the updates.Server is currently registered with ULN. Although its a warning, i do not want the below message displayed when i am issuing yum command.i found out subscription-manager plugin is loaded. How to disable subscription-manager plugin??

Loaded plugins: downloadonly, product-id, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
xrkr
  • 473

9 Answers9

54

There are two possible solutions:

  1. in the plugin configuration file, disable plugin:
    vim /etc/yum/pluginconf.d/subscription-manager.conf
enabled=0

  1. Register to the satellite
9

At least in my case, RHEL 7.6, /etc/yum/pluginconf.d/subscription-manager.conf already had enabled=0.

/etc/yum/pluginconf.d/enabled_repos_upload.conf however, had enabled=1, and changing that to enabled=0 prevented the warning.

chicks
  • 3,915
  • 10
  • 29
  • 37
roninjoe
  • 191
8

To do this via the yum command line use --disableplugin subscription-manager. This method is good for scripting.

The following example will not print "not registered" message:

# yum --disableplugin subscription-manager list installed | head -3
Loaded plugins: langpacks, product-id, search-disabled-repos
Installed Packages
GConf2.x86_64                         3.2.6-8.el7                @anaconda/7.5

And just to show you that not providing the flag will print the "not registered" message:

# yum  list installed | head -5
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.
Installed Packages
GConf2.x86_64                         3.2.6-8.el7                @anaconda/7.5
7

For me, this was fixed after removing the subscription-manager:

sudo dnf remove subscription-manager

You can always re-install if necessary

tijko
  • 113
  • 4
2

Nice and clean fix, minimizing the console screen, good for stuff like baking container images:

dnf --noplugins remove -y -q subscription-manager dnf-plugin-subscription-manager
sorin
  • 8,454
2

Disable/remove the subscription-manager yum plugin.

Check this link: https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/repos-disable

1

A few years have passed, yum has been replaced by dnf (but they seem to have made sure that command line parsing hasn't been broken too badly).

FWIW, dnf still produces the same error message, but it can be told to omit them with the --quiet switch. Chances aren't bad that this also works for yum.

hillu
  • 121
1

These answers aren't quite correct. If you really want to remove Subscription Manager, do this:

dnf remove -y subscription-manager dnf-plugin-subscription-manager
Josh M.
  • 738
0

On RHEL 6.7 I modified /etc/yum/pluginconf.d/rhnplugin.conf changing enabled = 1 to enabled = 0.

Deathgrip
  • 101