Wednesday, May 15, 2024
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 4420  / 2 Years ago, sun, june 12, 2022, 4:05:11

Possible Duplicate:

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


I thought 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?


More From » package-management

 Answers
7

You can use Ubuntu Tweak to remove old kernels in an easy way and to do many other useful things. Here is an article explaining some of its features.


[#40609] Sunday, June 12, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oneeme

Total Points: 340
Total Questions: 110
Total Answers: 133

Location: Ghana
Member since Fri, Oct 21, 2022
2 Years ago
;