Created
July 31, 2014 06:56
-
-
Save jbonney/a4efbe1b5b03f6887582 to your computer and use it in GitHub Desktop.
Remove old kernels on Ubuntu server (http://ubuntuforums.org/showthread.php?t=2058377)
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
# Get info about current kernel | |
uname -a | |
# List installed kernels | |
dpkg-query -l | awk '/linux-image-*/ {print $2}' | |
# Remove old kernel and dependencies (DO NOT DELETE KERNEL FROM uname -a) | |
sudo apt-get --purge remove <Kernel> | |
sudo apt-get autoremove | |
# Update grub (usually not necessary) | |
sudo update-grub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment