Monday, April 30, 2012

Very useful command to remove all unwanted kernels

dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | xargs sudo apt-get -y purge

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.