2

Possible Duplicate:
How do I clean up my harddrive?

Every 5 months I start running out of space on my root partition... I scramble to erase documentation, remove log files, and keep only a single kernel so as to keep enough space. And then every time I run a distribution upgrade (cdromupgrade) I end up with about a gig more space even though it keeps all the same programs installed.

Anyone know where the kruft is?

3 Answers3

3

You may want to run sudo du -x --max-depth=1 / | sort -n to see where your space is going. You can walk the directories to get a better idea where the space is going. I generally find the space ends up being in few directories.

You may want to try running sudo apt-get clean to remove all the debs from the cache directory. The directory /var/cache/apt/archives can grow quite large if you don't clean it out. Once the packages are installed, you don't need the .deb archived. They are helpful if you need to reinstall the package, or find the original version of a file that was installed.

BillThor
  • 4,698
2

You can try running sudo apt-get autoremove and sudo apt-get autoclean which may free up some space. Normally the update manager should do this for you but perhaps cdromupgrade doesn't.

poolie
  • 9,241
0

KDirStat is a fairly direct way of finding where all your space is going.