Apr
15
Debian: remove unused packages
April 15, 2009 | 3 Comments
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:
1 | aptitude install deborphan |
1 | deborphan |
1 | aptitude purge <packages listed by deborphan> |
Now my server can breathe and so can I.
Tagged with: aptitude, Debian, hard drive, packages, space
Liked this page?
Subscribe to the RSS feed or sign up for the newsletter now.
Debian: remove unused packages http://tinyurl.com/dhpomg
I’ve used just orphan -sz to see the list, and then apt-get remove –purge $(deborphan).
But if orphan -a used, the list is extended to some actually needed packages (for instance Skype, Transmission or even more drastic: linux-headers).
So, I was careful with -a command.
But I wanted to ask U what these sub commands mean:
< and >? Because when I try that (after the regullar orphan removal) it shows some other packages to be removed.
Sorry the characters didn’t come out right. I just meant to run the command aptitude purge with the name of the packages listed by deborphan. Good luck