Created
October 27, 2016 11:29
-
-
Save wimvds/c65455c0b3d1c3182cdc4acc18446bcb to your computer and use it in GitHub Desktop.
What to do if /boot reaches 100%
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
List all old kernels that can be removed (Debian) : | |
dpkg -l linux-{image,headers}-* | awk '/^ii/{print $2}' | egrep '[0-9]+\.[0-9]+\.[0-9]+' | grep -v $(uname -r) | |
Remove them using dpkg --purge : | |
ie. dpkg --purge linux-headers-3.13.0-86 linux-headers-3.13.0-86-generic linux-image-3.13.0-86-generic linux-image-extra-3.13.0-86-generic | |
Afterwards run apt-get autoremove (if needed preceded by apt-get -f install). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment