I usually do it this way:
#apt-get -y remove --purge <package>
keep what you want, sometimes after you purge, still there are other libraries pertaining to the app removed, which are left behind. Example: emacsen, after removing emacs21. If you make a mistake press 'u', to change your selection. Do not get rid of libraries you don't what they are, leave them there, deborphan will give you a list of the obsolete ones.
it gives you a list of 'orphaned' libs, to get rid of them:
#deborphan | xargs apt-get -y remove --purge
it keeps me under 1 GB of used space in my hd.
Add to that:
#apt-get install localepurge
choose only your locales, choose your locale environment, say 'no' to localized man pages, and 'no' to new locales. It should save you 40-50 MB right there.
Still, like Dead Parrot says, fire up mc, and delete stuff like hidden files, you don't need. Example: i don't use gnome, so i nuke gconf, gnome2, etc
I do the debfoster/deborphan twice a week.
Last edited by macondo; 10-12-2004 at 10:08 PM.