PDA

View Full Version : Remove old Kernels?


thebean
2004-06-15, 05:20 AM CDT
Hey all, if there were steps I should take to remove older kernel versions? I'd hate to keep them from piling up.

I guess I should first be asking if it's safe to remove the old kernel?

Right now I just edit /etc/grub.conf and remove the boot option for the previous kernel. Anything else I can do?

Thanks

TheBean

Jman
2004-06-15, 07:42 AM CDT
If you can boot from the new one, it should be safe. Keeping the old one leaves it for backup if something should go wrong.

To remove it run as root rpm -e kernel-version in a terminal (Main Menu > System Tools > Terminal) where version is the full release number. Enter rpm -q kernel to get the installed kernels.

crackers
2004-06-15, 10:11 AM CDT
Using the rpm command will also clean up your grub.conf, by the way...

thebean
2004-06-15, 11:30 AM CDT
thanks!

ashmew2
2009-05-20, 12:41 AM CDT
Such an old thread but still works like a charm...Thank You :)

pixaroglets
2009-06-27, 01:24 PM CDT
damn right! :)

Diomedea
2009-10-01, 04:47 AM CDT
One observation: those who have the nvidia driver installed have to first remove the kmod package for the kernel version they want to eliminate. That can be done with Add/Remove Software.