Last active
December 17, 2015 06:18
-
-
Save alfredormz/5563812 to your computer and use it in GitHub Desktop.
Elimina los kernels viejos y actualiza grub.
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
#TODO: cambiar el 11 para que elimine la cantidad total de kernels viejos excepto el usado actualmente. | |
dpkg --list | grep linux-image-3 | cut -d ' ' -f 3 | head -n11 | xargs sudo apt-get purge -y | sudo update-grub2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment