LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Removing Old Kernels (https://www.linuxquestions.org/questions/debian-26/removing-old-kernels-420990/)

carlosinfl 03-02-2006 12:24 PM

Removing Old Kernels
 
OK - my Grub is looking pretty messy since I have upgraded my kernel a few times. I am currently 100% that my 2.6.15-1-k7 kernel is fine and will not need to ever boot into an older kernel. Can someone please explain how I can remove the old kernels from my system so I just show that one entry and don't clutter my system.

Thanks!

saman007uk 03-02-2006 12:34 PM

Find all kernels installed,
Code:

dpkg --get-selections | grep kernel-image
Then remove unwanted ones:
Code:

apt-get remove --purge kernel-image-...

carlosinfl 03-02-2006 01:01 PM

?

Code:

stricom:/boot/grub# dpkg --get-selections | grep kernel-image
stricom:/boot/grub#


saman007uk 03-02-2006 01:18 PM

If you are using unstable,
Code:

dpkg --get-selections | grep linux-image

yotamk 03-02-2006 03:01 PM

Try this thread:
http://www.linuxquestions.org/questi...hreadid=271042

carlosinfl 03-02-2006 06:28 PM

Quote:

Originally Posted by saman007uk
If you are using unstable,
Code:

dpkg --get-selections | grep linux-image

So what would my next course of action be?

Code:

carlos@stricom:~$ dpkg --get-selections | grep linux-image
linux-image-2.6.14-2-k7                        install
linux-image-2.6.15-1-k7                        install

:scratch:

lavluda 03-02-2006 08:11 PM

Code:

apt-get remove --purge **
** which one you want to remove

carlosinfl 03-03-2006 12:10 PM

Quote:

Originally Posted by lavluda
Code:

apt-get remove --purge **
** which one you want to remove

Thanks! Issue resolved.


All times are GMT -5. The time now is 10:21 AM.