drosofff
8/24/2016 - 1:21 PM

Purging the /boot folder from old kernels and img

Purging the /boot folder from old kernels and img

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