After succefully compiling a new Ubuntu Kernel thanks to the tutorial at http://www.howtoforge.com/kernel_compilation_ubuntu, I wanted to remove that kernel for some reason (forgot to compile some option I needed). In the past I had compiled kernel in the old-school debian way, but now that I had installed the kernel via the make-kpkg and dpkg -i commands I thought I could remove it the same way: Code: dpkg -r linux-image-2.6.19-custom.deb But I had to discover that dpkg does not work this way. So my humble question is: is it just simply safe to remove manually the files corresponding to my self-compiled kernel? First I ensured I am now using another kernel with Code: uname -r Then I went to the /boot/ directory and removed the different files: Code: cd /boot/ sudo rm initrd.img-2.6.19-custom sudo rm System.map-2.6.19-custom sudo rm vmlinuz-2.6.19-custom Then I also removed the .deb package in /usr/src, as well as the kernel headers: Code: cd /usr/src/ sudo rm -rf linux-headers-2.6.19-custom And then do a Code: sudo update-grub to make sure Grub knows this kernel doesn't exist anymore. I'm asking the question because I sense that some people may end up with several useless kernel-images laying around on their hard drive not knowing how to remove them safely.