Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to do some clean up and was wondering how can I see what packages I have never used or has been very long since I used them.

share|improve this question
up vote 2 down vote accepted

UnusedPkg: A Tool to Search the Oldest Unused Packages in Ubuntu From Terminal

enter image description here

UnusedPkg sorts and lists down the oldest unused packages. The sorted list is displayed with the size, package name and number of days the package has been idle for.

With the help of the list , you can determine the packages that are unnecessary and needs to be removed from the system. You can download its .tar.gz package from the download link given at the end of the post.

To install the UnusedPkg in Ubuntu, extract the downloaded package archive and obtain the unusedpkg folder. Then, move the unusedpkg shell script inside that folder to /usr/bin/ folder.

If you don’t have the root access, you can run the script from the unusedpkg directory only.

Once installed, you can run the tool by running following commands in the terminal.


Warning: To avoid any problem, before uninstalling or removing any package, you have to manually check its timestamps using unusedpkg info or manually with ls -alu

Download UnusedPkg

share|improve this answer
Great tool BlueXrider. I will be testing it. – Luis Alvarado Feb 25 '12 at 14:33

That is a great question.

This is a sort of work around rather then an answer, but, ...

In my experience, it is easier to start with a minimal installation and build up rather then to try to remove things from a standard Ubuntu desktop installation.

There is a bit of a learning curve to either method as removing packages can result in a broken system and either way you will need to learn what packages you use and what their dependencies are, as well as what is part of the "minimal" core.


Ubuntu Minimal CD

Ubuntu wiki low memory systems

Ubuntu packages ubuntu-minimal

share|improve this answer
+1 for the experience. I will still wait for maybe an app or a script that does this. If not then an experience answer will do. – Luis Alvarado Feb 23 '12 at 23:26
Just take care with that Ubuntu Minimal CD, if you play it backwards it installs Arch =) – bodhi.zazen Feb 23 '12 at 23:32

gtk-orphan has a nice interface to find orphaned packages. Great for cleaning up additional packages that were installed automatically and also for seeing extra software you have installed.

share|improve this answer
Great tool Anarci. Nice idea. – Luis Alvarado Feb 25 '12 at 14:31

Your Answer


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.