Last active
December 29, 2021 14:35
-
-
Save cmbaughman/89818774d4e8d01e596663eb3232d460 to your computer and use it in GitHub Desktop.
When apt fails because there are too many kernels installed in /boot, but apt autoremove --purge doesn't remove them...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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