github twitter
Removing Unused Linux Kernals from /boot on Ubuntu
Dec 14, 2014
One minute read
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

References


Back to posts


comments powered by Disqus