Skip to content

Instantly share code, notes, and snippets.

@jclosure
Created September 28, 2024 16:13
Show Gist options
  • Save jclosure/84c1ff111fd2e59d2df663362a80fc99 to your computer and use it in GitHub Desktop.
Save jclosure/84c1ff111fd2e59d2df663362a80fc99 to your computer and use it in GitHub Desktop.
Clean out /boot partition - kernel sources, etc.

get the current kernel

uname -a

list everything

dpkg --list | egrep -i --color 'linux-image|linux-headers|linux-modules' | awk '{ print $2 }'

on everything but the current kernel packages

sudo apt purge <everything_except_your_kernel>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment