sudo apt-get remove --purge $(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d') This entry was posted in Linux. Bookmark the permalink. Please Post Your Comments & ReviewsYour email address will not be published. Required fields are marked * Save my name, email, and website in this browser for the next time I comment.