Skip to content

Instantly share code, notes, and snippets.

Last active Dec 29, 2021
What would you like to do?
When apt fails because there are too many kernels installed in /boot, but apt autoremove --purge doesn't remove them...
sudo apt-mark auto $(apt-mark showmanual | grep -E "^linux-([[:alpha:]]+-)+[[:digit:].]+-[^-]+(|-.+)$")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment