Skip to content

Instantly share code, notes, and snippets.

@cmbaughman
Last active Dec 29, 2021
Embed
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...
#!/usr/bin/bash
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