Created
January 11, 2023 14:19
-
-
Save ionar/cdf68534a36cf3b808a66c80b3297be0 to your computer and use it in GitHub Desktop.
Comando para listar kernels não utilizados na família Debian
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
| dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | |
| Depois só remover com: apt-get purge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment