Click to See Complete Forum and Search --> : Upgraded Kernel -- how do I delete the old one?
louis_b
07-27-2002, 04:38 AM
I'm running RH 7.2 (2.4.9-34 kernel). The kernel was upgraded using Red Hat Network, which worked without trouble and bother. Upon re-booting, GRUB now gives me 3 choices, Dos and two kernel choices. I understand how to modify grub.conf to modify the menu but the old kernel is still there. How do I find it & safely delete it since the new kernel works ok? Or should I just leave it?
Thanks for the help.
mdwatts
07-27-2002, 04:42 AM
I would suggest you leave it to use as a backup.
If you really want to delete the old kernel, then delete
the kernel image in /boot
/lib/modules/<old kernel version>
/usr/src/linux-<old kernel version>
endoalpha
07-27-2002, 06:27 AM
I suggest you leave it also, but to remove it with redhat, I would: rpm -e kernel-uwant2remove.rpm
I would let rpm uninstall stuff, rather than deleting directories, leaving the old kernel in the rpm database to screw with things later. After rpm -e, do what mdwatts suggests to cleanup leftover crud.
mdwatts
07-27-2002, 08:19 AM
I forgot about the Redhat kernel being a rpm package.
Mine is too, but I always leave the default kernel as is and add/delete other kernels manually that I download from kernel.org.
mingshun
07-27-2002, 08:25 AM
Just to add on:
Always rpm kernel with "--force -ivh" options whenever possible.
Upgrading it (-U option) may overwrite your old kernel with the
new one and that can be disastrous.