[CentOS] "yum update" did not update kernel on one box

Wed May 7 10:27:25 UTC 2008
lannyma at gmail.com <lannyma at gmail.com>

On 5/7/08, Ralph Angenendt <ra+cento AT br-online.de> wrote:
> Lanny Marcus wrote:
> > Scott: Great! If I can locate kernel-headers-2.6.18-53.1.14.el5 and
> > kernel-2.6.18-53.1.14.el5 I can use the rpm -e command to remove them
> > and then yum update again and that should update the kernel in her box.
> > How do I locate them?
>
> Why locate them? rpm -e takes the package *name*, not the package
> itself.

Yes. I woke up about 430 this morning and I realized that rpm can
locate the file by itself.   :-)    However, I want to learn how to
use find that Mark (mhr) mentioned!

[lanny at compaq1300 ~]$ su -
Password:
[root at compaq1300 ~]# rpm -e kernel-headers-2.6.18-53.1.14.el5
[root at compaq1300 ~]# rpm -e kernel-2.6.18-53.1.14.el5
[root at compaq1300 ~]# yum update
Loading "priorities" plugin
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
Reading repository metadata in from local files
263 packages excluded due to repository priority protections
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for kernel to pack into transaction set.
kernel-2.6.18-53.1.14.el5 100% |=========================| 258 kB    00:03
---> Package kernel.i686 0:2.6.18-53.1.14.el5 set to be installed
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 kernel                  i686       2.6.18-53.1.14.el5  updates            13 M

Transaction Summary
=============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 13 M
Is this ok [y/N]: y
Downloading Packages:
(1/1): kernel-2.6.18-53.1 100% |=========================|  13 MB    03:36
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: kernel                       ######################### [1/1]

Installed: kernel.i686 0:2.6.18-53.1.14.el5
Complete!
[root at compaq1300 ~]# exit

Notice that:  I was able to remove both files, with rpm -e without any
problem and I was able to run yum update, and it installed the new
kernel, but not the kernel-header file.

[lanny at compaq1300 ~]$ uname -a
Linux compaq1300.HOMELAN 2.6.18-8.el5 #1 SMP Thu Mar 15 19:57:35 EDT
2007 i686 i686 i386 GNU/Linux
[lanny at compaq1300 ~]$

After rebooting the box, it is still on the original kernel, rather
than on the new kernel.

I just installed kernel-headers-2.6.18-53.1.14.el5 again. Was that
correct or not?

Probably very close to solving this now! Thanks much to everyone who
has contributed ideas! Lanny