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 |
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.
🐧 2 comments so far... add one ↓
Category | List of Unix and Linux commands |
---|---|
File Management | cat |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Network Utilities | dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time |
Searching | grep • whereis • which |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
This is not recommended with RHEL6:
rm -rfv /var/cache/yum/*
yum clean all
This article doesn’t apply to rhel6. If change the enable value to 0, yum doesn’t work properly. Even after subscription.