23

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
  • 363
  • 1
  • 5
  • 10

5 Answers5

41

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
Cristopher
  • 93
  • 4
ManishSingh
  • 511
  • 4
  • 3
  • does it work for RHEL 7.5 running on AWS ec2-instance as # subscription-manager register --auto-attach Registering to: subscription.rhsm.redhat.com:443/subscription Username: ashxxxxxx@abc.com Password: ashxxxxxx@abc.com cannot register with any organizations. – Ashish Karpe Jul 17 '18 at 11:44
  • Setting enabled=0 took care of this for me in Fedora 33. File was /etc/dnf/plugins/subscription-manager.conf on my system. – user8675309 Jan 10 '21 at 20:21
  • For fresh installation of Fedora 32, the location of the configuration file is actually this: `/etc/dnf/plugins/subscription-manager.conf` – Dee'Kej Jan 18 '21 at 11:18
  • Is there a command that can disable the plugin, as opposed to editing the file? – trebor Jul 19 '21 at 19:33
  • The flags `--noplugins` or `--disableplugin=plugin_name` can be used to disable from command line (via [red hat doc](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sec-yum_plugins)). – trebor Aug 02 '21 at 21:49
7

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,639
  • 10
  • 26
  • 36
roninjoe
  • 171
  • 1
  • 1
  • This worked for me - although subscription-manager.conf had enabled=1, setting it to zero had no effect on the warning message. enabled_repos_upload.conf enabled=0 suppressed the warning. – AveryFreeman Dec 30 '19 at 04:02
1

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

Florin Asăvoaie
  • 6,932
  • 22
  • 35
0

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

sudo dnf remove subscription-manage
0

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
shrewmouse
  • 297
  • 1
  • 7