Skip to content

Instantly share code, notes, and snippets.

@p3x-robot
Last active February 11, 2022 18:14
Show Gist options
  • Save p3x-robot/2f77e21203969ed74b75ba9f999434ea to your computer and use it in GitHub Desktop.
Save p3x-robot/2f77e21203969ed74b75ba9f999434ea to your computer and use it in GitHub Desktop.
Debian based Linux delete old kernels help
dpkg --list | egrep -i --color 'linux-image|linux-headers|linux-modules'
dpkg --list | egrep -i --color 'linux-image|linux-headers|linux-modules' | grep "^rc" | cut -d " " -f 3 | xargs sudo dpkg --purge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment