27

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
  • 403
  • 1
  • 7
  • 10

6 Answers6

46

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
  • 103
  • 4
ManishSingh
  • 561
  • 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: [email protected] Password: [email protected] 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
  • sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/subscription-manager.conf – markhahn May 07 '23 at 17:40
  • register to satellite? expand please. – IAbstract Jun 08 '23 at 13:44
8

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,793
  • 10
  • 27
  • 36
roninjoe
  • 181
  • 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
5

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
  • 347
  • 2
  • 7
2

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

sudo dnf remove subscription-manager

You can always re-install if necessary

tijko
  • 111
  • 3
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

Florin Asăvoaie
  • 7,057
  • 23
  • 35
0

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
  • 111
  • 3