Created
September 28, 2021 12:21
-
-
Save ehvattum/e0a1cae532495b2f3f507ffe2b1949ca to your computer and use it in GitHub Desktop.
purge old kernels from /boot
This file contains 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
sudo apt-get purge $(dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve "$(uname -r | sed -r 's/-[a-z]+//')") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment