LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Removing Kernel (https://www.linuxquestions.org/questions/linux-general-1/removing-kernel-143207/)

Rv5 02-06-2004 10:47 PM

Removing Kernel
 
Im using RH9, whats the best way to remove old versions of the kernel? Im now 3 or 4 versions backlogged and think I can safely remove my oldest one now.

jtshaw 02-06-2004 11:34 PM

Well, providing Redhat doens't play any funny games I don't know about. /usr/src/linux-version should contain the source for each kernel. /boot/vmlinuz-version or /boot/bzImage-version should be the kernel image. And you can removed enteries from grub.conf (or menu.lst) in /boot/grub.

vincebs 02-07-2004 12:52 AM

I do this all the time whenever my newly compiled 2.6 kernels fail (always). Go to /boot and type:
rm *2.x*
where x is the minor kernel version, e.g. 4.20-18 if you're uninstallling kernel 2.4.20-18.

Make sure your symbolic links (config, system.map, initrd.img, vmlinuz) aren't broken. If they are, assign them to one of your new kernels.

Then go to /lib/modules
Type rm -drf *2.x* to delete kernel 2.x's modules

Then you're done!

Rv5 02-07-2004 02:08 AM

very cool. thanks guys

Shade 02-07-2004 09:21 AM

Yeah, I just don't like the idea of using wildcards when fooling around with kernel maintainance ;)
Just oooone little misplaced space. "Oops. Better not reboot til I've compiled a new one..."

--Shade


All times are GMT -5. The time now is 04:18 AM.