To remove all the unused Linux Kernel headers, images and modules, simply run this command: 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
To remove all the unused Linux Kernel headers, images and modules, simply run this command: 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
This is Linux. It gives you a cute mascot and enough rope to hang yourself!
Nice one. That's a bit easier then the way I was doing it.
Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide
Tomorrow's an illusion and yesterday's a dream, today is a solution...
Lot of useful things here! http://www.webupd8.org/
This is Linux. It gives you a cute mascot and enough rope to hang yourself!
If you are running Natty, and are a synaptic user, it marks older kernels as obsolete the next time you run it after installing a new kernel and rebooting.
Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide
Tomorrow's an illusion and yesterday's a dream, today is a solution...
I just might have to upgrade someday I guess Im still using and loving Karmic 9.10 but support is going to end soon. Im not sure if I like the new unity desktop I just love gnome and how easy and intuitive it is but will upgrade sooner or later maybe in April.
This is Linux. It gives you a cute mascot and enough rope to hang yourself!
All but the current and second most run from the command line:
Code:OLD=$(ls -tr /boot/vmlinuz-* | head -n -2 | cut -d- -f2- | \ awk '"'"'{print "linux-image-" $0}'"'"' ) if [ -n "$OLD" ]; then apt-get -qy remove --purge $OLD fi apt-get -qy autoremove --purge
Awesome. I just lost 395 megs
Which is more important in obtaining the truth, "what" or "why"? Trick question. They are of equal importance.
Freely ye have received, freely give.
That is handy! In fact, I think I'll commit it to memory.
...
As if.
Bookmarks