Wednesday, February 16, 2011

RedHat 5.x patches not applying

For some unknown number of days, weeks, months... There has been a problem installing patches one of my RedHat 5.x servers. Basically when you run 'yum update' it says there are no updates to be installed:


root@server1 [/etc/yum.repos.d]# yum update
Loaded plugins: rhnplugin, security
Excluding Packages in global exclude list
Finished
Skipping security plugin, no data
Setting up Update Process
No Packages marked for Update


But the RH website said there were over 300 patches that needed to be applied.


The fix was the clear the metadata:


root@server1 [/etc]# yum clean metadata
Loaded plugins: rhnplugin, security
14 metadata files removed
1 sqlite files removed
0 metadata files removed




Now everything works:


root@server1 [/etc]# yum update
Loaded plugins: rhnplugin, security
rhel-x86_64-server-5 | 1.4 kB 00:00
rhel-x86_64-server-5/primary | 3.7 MB 00:00
rhel-x86_64-server-5 10994/10994
Excluding Packages in global exclude list
Finished
Skipping security plugin, no data
Setting up Update Process
Resolving Dependencies
Skipping security plugin, no data
--> Running transaction check
---> Package NetworkManager.x86_64 1:0.7.0-10.el5_5.2 set to be updated
---> Package NetworkManager-glib.x86_64 1:0.7.0-10.el5_5.2 set to be updated
---> Package OpenIPMI.x86_64 0:2.0.16-11.el5 set to be updated
---> Package OpenIPMI-libs.x86_64 0:2.0.16-11.el5 set to be updated
---> Package OpenIPMI-tools.x86_64 0:2.0.16-11.el5 set to be updated
---> Package acl.x86_64 0:2.2.39-6.el5 set to be updated
...


RedHat is just like Solaris... A major pain in my ass.

No comments:

Post a Comment

Followers