RHN yum command: Unable to read consumer identity Warning and Solution

I am using yum update command with RHN to upgrade packages installed on my server, but getting the following warning on screen :

ADVERTISEMENTS

yum update -y
Loaded plugins: product-id, protectbase, rhnplugin, security, subscription manager:
Updating certificate-based repositories.
Unable to read consumer identity
0 packages excluded due to repository protections
Setting up Update Process
Resolving Dependencies
--> Running transaction check
...<snip>

How do I get rid of this warning /error under RHEL 6 server?

Tutorial details
Difficulty Easy (rss)
Root privileges Yes
Requirements Red Hat with RHN
Time N/A
You need to edit the following files

[a] /etc/yum/pluginconf.d/subscription-manager.conf

[b] /etc/yum/pluginconf.d/product-id.conf

Use a text editor such as vi:
# vi /etc/yum/pluginconf.d/product-id.conf /etc/yum/pluginconf.d/subscription-manager.conf
Set enabled to 0 as follows in both files:

[main]
enabled=0

Save and close the file. Finally, type the following command to clean cache:

rm -rfv /var/cache/yum/*
yum clean all

You can now install or update the system:
# yum install packageNameHere
OR
# yum -y update

Reference

As per RHEL KB # 165803 root cause for this error was:

When RHN Classic or RHN Satellite is used for updating the system, subscription-manager should be disabled.

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
2 comments… add one
  • Patrick Burwell Oct 1, 2013 @ 17:40

    This is not recommended with RHEL6:
    rm -rfv /var/cache/yum/*
    yum clean all

  • he yu Jan 24, 2014 @ 4:28

    This article doesn’t apply to rhel6. If change the enable value to 0, yum doesn’t work properly. Even after subscription.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.