Is there a way to remove/hide old kernel versions?
On my laptop I have limited space but install all new updates, including kernel updates. However, Ubuntu doesn't seem to uninstall old kernels after installing a new kernel update. I guess this happens with reason: since the new kernel might fail, and it would be nice if GRUB provided a way to select the old kernel to boot with. But do I really need the whole history?, I guess not!:
rc linux-image-2.6.32-21-generic rc linux-image-2.6.32-24-generic rc linux-image-2.6.32-25-generic rc linux-image-2.6.35-22-generic rc linux-image-2.6.35-23-generic rc linux-image-2.6.35-24-generic rc linux-image-2.6.35-25-generic rc linux-image-2.6.35-27-generic rc linux-image-2.6.35-28-generic rc linux-image-2.6.35-30-generic rc linux-image-2.6.38-10-generic rc linux-image-2.6.38-11-generic ii linux-image-2.6.38-12-generic rc linux-image-2.6.38-8-generic ii linux-image-3.0.0-12-generic ii linux-image-3.0.0-13-generic ii linux-image-3.0.0-14-generic ii linux-image-3.0.0-15-generic ii linux-image-3.0.0-16-generic ii linux-image-generic
apt-get autoremove should remove at least some of those images, but it doesn't. I will remove those now by hand, but isn't there a way to do this automatically and to keep, let's say, the last three images? Yes a shell script and a
cron job! Any alternatives?