Manually Removing Old Kernels

Chester Wyke March 30, 2023 Updated: April 15, 2025 #debian

TLDR

Check current to know which not to remove. uname -r

Search keys to remove the backup kernel manually

Background

My /boot partition is 1GB because that seemed like plenty enough space but turns out well it’s not. When there is a new kernel sometimes I’ll need to manually remove the old one to make space for the new one. This isn’t the biggest of problems in the world but it’s less than desirable. From my understanding in addition to the currently running kernel one older kernel is kept as a backup but seems I only have space for 2 so when a new one comes out I need to remove the old one.

Using Synaptic

Source: https://askubuntu.com/questions/2793/how-do-i-remove-old-kernel-versions-to-clean-up-the-boot-menu

WARNING!!!

If you remove your current kernel then you won’t be able to boot.

Install Synaptic

I typically install it from the Ubuntu Store and it comes preinstalled on Debian. In the Ubuntu store it is listed as “Synaptic Package Manager”. Or it can be installed with the following command

sudo apt install synaptic

Check current kernel version in use

Use the following command to check your current kernel version in use and ensure you do NOT remove this version.

uname -r

Mark kernels for removal

Search for the following search terms and remove the kernels that you want to remove.

ScreenShot