[GLLUG] Managing space in disk.

Ben Chavez ebcha1974 at hotmail.com
Thu Mar 24 12:11:03 EDT 2016


I had an issue recently with an update in Ubuntu where the update manager
complained that I didn't have enough free space in the disk to complete the
upgrade (My root partition is 25 GB from a 500GB hard drive) I googled how
to free up space in Ubuntu and I found 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"

I really don't know in detail how that command works but I understand it
would remove old headers and images from past kernels upgrades so after the
command was done running I had 11 GB available. 

Now I would like to that in other distros that I have installed and I
haven't done any cleaning in years. Can you guys share your experience
managing disk space? I will be interested to know 


More information about the linux-user mailing list