Removing Old Kernels in Ubuntu with Synaptic

If you have used Ubuntu for a while and performed upgrades, you may have quite a few kernels in GNU GRUB as shown below:

GRUB with Multiple=
Those kernels are usually not necessary, they take space on your hard disk and make you scroll down in GRUB to access your other OS (if any).

I’ll show how to only keep the last 2 kernels (for safety) in GRUB with Synaptic.

First, start synaptic as a superuser:

sudo synaptic

Select “System Administration“, in type “linux-image” in the Quick search field and show the installed kernel (green tick box). Then select the kernels you want to remove (keep the last 2 versions), right-click and select “Mark for Removal”. Synaptic Package Manager window should look like the screenshot below:

How to select and remove old linux kernels in synaptic

After that, simply click on Apply and within a short time (one minute in my case), the selected kernel are removed. Removing 4 kernels, freed 429 MB on my system.

Now I have 2 Linux kernels (4 choices including the recovery mode) in GRUB.

Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK 5 ITX RK3588 mini-ITX motherboard
Subscribe
Notify of
guest
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
0 Comments
oldest
newest
Khadas VIM4 SBC