UnusedPkg is a useful command line diagnostic tool that allows to scan for the oldest and unused packages in Linux-based systems. This tool will find and list in the terminal all packages that need to be removed sorted by size and number of days that packages have been idle, not used.

To install UnusedPkg under Ubuntu 11.10/11.04, run the following commands from the terminal:

wget -O unusedpkg-0.6.tar.gz http://goo.gl/DXqP1

sudo tar -xzvf unusedpkg-0.6.tar.gz -C ~/  && cd ~/Unusedpkg*

sudo mv unusedpkg /usr/bin

You can now start this tool with this command to start scanning your system files:


Warning: You have to check timestamps of the package using "unusedpkg info <package>" before deleting/uninstalling it.