Manually Removing Old Kernels
Chester Wyke March 30, 2023 Updated: April 15, 2025 #debianMAC Address Change
Set permissions recursively on directory structure
Touch (Set file modified date)
Android Apps on Linux
Blacklist Module
Calender Notifications Popup Disable
CUPS PDF Printer
gping
Hide Mounts
Nautilus
Power
Smartgit
Video Cards
Snapcraft
Acrobat Reader
Audio
Shortcuts (Important)
DNS
Mounting Drives
Setup Network Shares
Cron
Startup
Users and Groups
Paths to remember
Manually Removing Old Kernels
Set Icon for Application
Strange Problems and Fixes
Redirecting stderr
Extensions
Ubuntu Software
Show Seconds on Clock Display
Create Bootable Flash Drive
Compressed Files
services systemd (unit)
SCP
SSH
Updating
Useful commands
Firewall
View Whitespace
OpenVPN
PPP logs
MAN
Terminal
sed
Characters
zsh
Links between files
7z encrypted file
Wayland or x11?
Delete Old Files Automatically
TLDR
Check current to know which not to remove. uname -r
Search keys to remove the backup kernel manually
linux-image
linux-header
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
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.
Mark kernels for removal
Search for the following search terms and remove the kernels that you want to remove.
linux-image
linux-header