Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'd like to find a tool that could tell me which Debian packages on my system have been rarely or never used, perhaps by looking at file lists and access times. This is to find candidates for deletion from my nearly full hard drive. I'm not very well informed about the rich ecosystem of desktop GUI tools (I use aptitude); does anyone know if one of those tools, or any other tool, can identify how recently a package has been used?

share|improve this question
add comment

2 Answers 2

up vote 5 down vote accepted

As already mentioned, popularity-contest should help. It will display the oldest unused packages at the bottom. Uninstall those, but with a watchful eye on whether or not there's stuff depending on them installed.

Here's a snippet of the output:

1294222606 1292570417 vlc /usr/lib/vlc/plugins/gui/libqt4_plugin.so
1294222606 1292570109 xulrunner-1.9.2 /usr/share/xulrunner-1.9.2/chrome/classic.jar
1294222606 1292507839 ttf-dejavu-extra /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf
1294222606 1292507459 x11-utils /usr/bin/xprop

The colums mean atime, ctime, package-name, and file accessed.


One other tool for removing stuff you don't need is deborphan. Running mine gives me:

libaio1
libpython3.1

It means there are no packages depending on those two libraries, implying that I can safely remove them. Newer version of apt-get should make this usage of deborphan less needed, but such orphaned libraries pop up from time to time.


Have a look at this post as well.

share|improve this answer
1  
Brilliant! I can definitely make use of this! And deborphan proved more useful than I expected. Thanks a lot!! –  Norman Ramsey Feb 5 '11 at 22:26
add comment

The popularity-contest package is able to collect this information but I do not know if you can directly access it.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.