best_hosting

Wednesday, December 23, 2009

How to uninstall or remove old kernels in Ubuntu


Ubuntu always keeps the old kernel even after installing a new kernel. This is done just in case the new one doesn’t work well for you.

Now if you don't want the old kernels anymore then use the command below to remove the old kernel which you wish to remove.
$ sudo apt-get remove --purge 2.6.28-11*

replace 2.6.28-11 with the version you wish to remove.

Hope this helps...

3 comments:

spec2 on January 6, 2010 1:06 PM said...

how to install a new kernal

Dipin Krishna on January 7, 2010 2:24 PM said...

see http://blog.dipinkrishna.info/2009/08/kernelcheck-kernel-compiling-process-as.html for an easy and graphical interface to install kernels.

voku on January 16, 2010 6:24 PM said...

OLDKERNELS=$(dpkg -l|awk '{print $2}'|grep -E $LINUXPKG |grep -vE $METALINUXPKG|grep -v $CURKERNEL)

sudo aptitude purge $OLDKERNELS

 

Linux Tips Copyright © 2010 Dipin Krishna @ Linuxense