tank

Well-Known Member
Apr 12, 2011
255
5
68
Chicago, IL
cPanel Access Level
Root Administrator
I stumbled across this article for cleaning up the boot sector. First question is what is the best way to accomplish this? Second question I am worried that I can and will accidentally delete the wrong thing?... can I/ And last question is this command a good command.

Code:
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
Found it here: I know its for ubuntu
/http://ubuntugenius.wordpress.com/2011/01/08/ubuntu-cleanup-how-to-remove-all-unused-linux-kernel-headers-images-and-modules/

Thanks your help is appreciated.

Tank