Skip to content

Instantly share code, notes, and snippets.

@alfredormz
Last active December 17, 2015 06:18
Show Gist options
  • Save alfredormz/5563812 to your computer and use it in GitHub Desktop.
Save alfredormz/5563812 to your computer and use it in GitHub Desktop.
Elimina los kernels viejos y actualiza grub.
#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