Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Ubuntu : clean /boot
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge
@robzelo

This comment has been minimized.

Copy link

commented Oct 3, 2017

This article walks through the steps

https://technovechno.com/how-to-clean-boot-on-ubuntu/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.