How would I go about uninstalling multiple kernels? Here is what I want to do.
Code:
title Ubuntu, kernel 2.6.12
root (hd0,2)
kernel /boot/vmlinuz-2.6.12 root=/dev/hda3 ro quiet splash
savedefault
boot
title Ubuntu, kernel 2.6.12 (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.12 root=/dev/hda3 ro single
savedefault
boot
title Ubuntu, kernel 2.6.10-5-686
root (hd0,2)
kernel /boot/vmlinuz-2.6.10-5-686 root=/dev/hda3 ro quiet splash
initrd /boot/initrd.img-2.6.10-5-686
savedefault
boot
title Ubuntu, kernel 2.6.10-5-686 (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.10-5-686 root=/dev/hda3 ro single
initrd /boot/initrd.img-2.6.10-5-686
savedefault
boot
title Ubuntu, kernel 2.6.10-5-386
root (hd0,2)
kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda3 ro quiet splash
initrd /boot/initrd.img-2.6.10-5-386
savedefault
boot
title Ubuntu, kernel 2.6.10-5-386 (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda3 ro single
initrd /boot/initrd.img-2.6.10-5-386
savedefault
boot
title Ubuntu, kernel memtest86+
root (hd0,2)
kernel /boot/memtest86+.bin
savedefault
boot
I want to get rid of the 2.6.10-5-386 (why use 386 when I have a 686 kernel that works), the .12 kernel (doesn't work). Is there a way to remove them cleanly? Only thing I can think of is if dpkg has a command to list all packages. Any suggestions?
edit: After much searching I found it. Still don't know how to uninstall the 386 version of the kernel.
Code:
sudo dpkg --get-selections | less
sudo dpkg -r kernel-image-2.6.12
Bookmarks