Two days ago, I ran into a strange problem with my email server which refused to send any more emails. It turned out my hard drive was full… I started by emptying the tmp directory and running aptitude clean and aptitude autoclean but that wasn’t enough to free enough space to allow me to breathe for long. Some Googling lead me to deborphan, a package that will list packages installed because they were once a dependancy but that are now useless to the system. Those packages identified, I just had to remove them all.
A few commands to do the same thing:
aptitude install deborphan
aptitude purge <packages listed by deborphan>
Now my server can breathe and so can I.