Hide Forgot
Description of problem: repoquery with "--search" parameter complains system is not registered with RHN Classic or RHN Satellite. [root@localhost ~]# yum repolist Loaded plugins: product-id, rhnplugin, subscription-manager This system is receiving updates from Red Hat Subscription Management. This system is not registered with RHN Classic or RHN Satellite. You can use rhn_register to register. RHN Satellite or RHN Classic support will be disabled. ... repo id repo name status rhel-6-server-rpms Red Hat Enterprise Linux 6 Server (RPMs) 11,114 ... repolist: 11,808 [root@localhost ~]# repoquery -a --plugins --search --pkgnarrow=updates This system is not registered with RHN Classic or RHN Satellite. You can use rhn_register to register. RHN Satellite or RHN Classic support will be disabled. Without "--search" works. [root@localhost ~]# repoquery -a --plugins --pkgnarrow=updates This system is not registered with RHN Classic or RHN Satellite. You can use rhn_register to register. RHN Satellite or RHN Classic support will be disabled. bash-0:4.1.2-15.el6_4.x86_64 chkconfig-0:1.3.49.3-2.el6_4.1.x86_64 coreutils-0:8.4-19.el6_4.2.x86_64 ... Version-Release number of selected component (if applicable): yum-utils-1.1.30-14.el6.noarch How reproducible: Always. Steps to Reproduce: 1. Execute above commands. 2. 3. Actual results: See above Expected results: See above Additional info:
In comment #0 I can see that even without "--search" it reports that "system is not registered with RHN Classic or RHN Satellite" so there's no difference. What exactly should be fixed there?
Hi, The system *is* registered with Red Hat Subscription Management. So, I think if a system is registered with one of the system, there should be error. Thank you
Unfortunately that isn't the case. Can't you uninstall yum-rhn-plugin when you don't use it?
Hi, Uninstalling yum-rhn-plugin fixed it. [root@localhost ~]# yum remove yum-rhn-plugin [root@localhost ~]# repoquery -a --plugins --search --pkgnarrow=updates [root@localhost ~]# no error. Sorry if I wasted your time. I'm going to write a knowledge article about this, so this don't happen again. Thank you.
*** This bug has been marked as a duplicate of bug 1057424 ***