If you want to change kernels, just do an
apt-cache search linux-image
for a list all of the available kernels. Then whichever one of those kernels you decide to use, install the package that apt-cache returned along with it's headers (just substitute the word headers for the word linux). So for example, to install the current backports kernel along with it's headers you would issue
sudo apt-get install linux-image-2.6.38-bpo.2-686 linux-headers-2.6.38-bpo.2-686
or if you wanted to revert to the stable squeeze 686 kernel you could do
sudo apt-get install linux-image-2.6-686 linux-headers-2.6-686
DKMS will automatically compile and install the apropriate kernel modules for all of the kernels you have installed. You will of course, have to restart your system to boot the new kernel. After rebooting into the kernel you just installed, you can uninstall the one that came with your system or just leave it in case you want a backup. Kernels don't use up that much space, so there's really no point in removing it unless you're running off a USB stick or an ancient machine with 16 GiB or less of hard drive space.
Edit: Also, if you want to change the order that the items appear in the GRUB menu, you can just cut and paste the menu entries in /boot/grub/grub.cfg but just make sure you keep the individual menu entries intact and don't screw anything up, or you might have to reinstall grub! A menu entry will look something like this:
menuentry 'Debian GNU/Linux, with Linux 3.0.0-8.dmz.1-liquorix-amd64' --class debian --class gnu-linux --class gnu --class os {
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set=root 69e90afc-8e64-4f2e-8ca9-28b69bc56b4f
echo 'Loading Linux 3.0.0-8.dmz.1-liquorix-amd64 ...'
linux /boot/vmlinuz-3.0.0-8.dmz.1-liquorix-amd64 root=UUID=69e90afc-8e64-4f2e-8ca9-28b69bc56b4f ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-8.dmz.1-liquorix-amd64
}
So move them up and down, but just make sure you keep them all in one piece.
Last edited by mynis01 (2011-11-30 18:46:08)