[Ilugc] How to remove old kernels

  • From: sriram@xxxxxxxxxxxxxxxxxx (P. Sriram)
  • Date: Thu, 12 Dec 2002 12:14:02 +0530 (IST)

On Wed, 11 Dec 2002, Tamil Nadu wrote:

I have installed new kernels as a patch through RedHat update, whenever
my system boots up it display's all the old kernels. Is it possible to
remove the old kernels, if so how. Will it affect other areas if i
removed the old kernels. (Next kernel update i tried with "i" buy even
then it display's the old kernel. Your help will be greatly appreciated.

hi,

i suppose you are updating using redhats up2date feature. i would not
quite call it a patch since it actually installs replacement packages and
deletes exisiting ones - except for kernel. if you delete an existing
(working) kernel and install a new one which does not boot, you are really
in bad shape since you machine is not bootable anymore. hence, it is
recommended to install new kernels using the i option (which leaves
existing kernel intact) rather than the u or f options (which delete old
packages and leave only the new version of package installed).  once you
check that the machine is booting, you could do a rpm -e (package name) to
erase the old version of the package. in your case, you could do an rpq -q
kernel to get a list of the installed kernel versions and then do rpm -e
kernelxxxx for each of the old kernel versions installed (xxx as printed
out by the rpm -q command). on the next boot, you will see only you latest 
kernel in the boot menu.

sriram

ps: all this can be found at our local redhat updates mirror site readme 
file. visit http://ftp.iitm.ac.in/linux/redhat/updates


Other related posts: