肖恩D++
Not Equal C && !=C && 不等于西
-
One line to remove all unneeded old kernel for Ubuntu
Posted on December 5th, 2011 Add commentsAlong with the kernel keeps updating, many old kernels are kept in the system. For normal users, those old kernels are no longer needed, so the best way just remove them.
To remove all kernels, just run the single line with below:1dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | grep -E "(image|headers)" | xargs sudo apt-get -y purge*Original post from here
164 views
Leave a Reply
Be the First to Comment!