Skip to main content

No packages marked for update message is returned when using yum with rhn_register

After registering redhat linux system for rhn, yum update command returned "No Packages marked for Update"

# yum update
Loaded plugins: downloadonly, security
Setting up Update Process
No Packages marked for Update

This is because of rhnplugin is disabled. "enabled = 0" has to bechanged to "1" in the /etc/yum/pluginconf.d/rhnplugin.conf file:

[main]
enabled = 0
gpgcheck = 1

# You can specify options per channel, e.g.:
#
#[rhel-i386-server-5]
#enabled = 1
#
#[some-unsigned-custom-channel]
#gpgcheck = 0

After that check yum repolist:
# yum -v repolist
Loading "rhnplugin" plugin
Loading "security" plugin
Config time: 0.044
Looking for repo options for [rhel-x86_64-server-5]
Yum Version: 3.2.22
rhel-x86_64-server-5                            | 1.4 kB     00:00     
rhel-x86_64-server-5/primary              | 4.6 MB     00:01     
rhel-x86_64-server-5                            13380/13380
Repo-id     : rhel-x86_64-server-5
Repo-name   : Red Hat Enterprise Linux (v. 5 for 64-bit x86_64)
Repo-status : enabled:
Repo-updated: Tue Mar  6 13:19:52 2012
Repo-pkgs   : 13,380
Repo-size   : 23 G
Repo-baseurl: https://xmlrpc.rhn.redhat.com/XMLRPC/GET-REQ/rhel-x86_64-server-5                                                                                    | 1.4 kB     00:00 



Comments

Popular posts from this blog

Find and replace with sed command in Linux

Find and replace feature is always handy. It can turn into a torture when it comes to change or delete a simple constant string in a text file. There is a handy tool in linux for doing these kind of tihngs. Actually sed is not a text editor but it is used outside of the text file to make changes.