[xubuntu-users] "Not enough space on disk /boot"

Ralf Mardorf ralf.mardorf at rocketmail.com
Mon May 25 19:44:32 UTC 2015


On Mon, 25 May 2015 13:11:53 -0500, Ince, Wilbur wrote:
>I searched for a 'fool-proof' command line method, and found a thread
>for a one-line solution.

Likely something similar too

dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e  `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | grep -E "(image|headers)"  | xargs sudo apt-get --dry-run remove

http://ubuntuforums.org/showthread.php?t=2277364

the grep -v uname excludes the running kernel. Be careful with the other
one line thingies. The above does use the "--dry-run" option, that's very
good, but others use the "-y" option and this is irresponsibly.

"-y, --yes, --assume-yes
 Automatic yes to prompts; assume "yes" as answer to all prompts and
 run non-interactively."

"-s, --simulate, --just-print, --dry-run, --recon, --no-act
 No action; perform a simulation of events that would occur but do
 not actually change the system."

http://manpages.debian.org/cgi-bin/man.cgi?query=apt-get





More information about the xubuntu-users mailing list