Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to remove some packages that I installed a long time ago but don't need any more, when I type dpkg --get-selection I get a list of all the packages installed in my system, but I need to sort those packages, like this "the packages needed by the system all together", "packages that can be removed all together".

Is there any command that can sort them for me ??

share|improve this question
    
I think that the correct verb isn't "sort" but "clean" or "remove". –  Braiam Nov 5 '13 at 14:14

3 Answers 3

up vote 1 down vote accepted

If you want to find packages that you don't use anymore, this should be done manually, since the system has no way to know if you still need them or not. Now for packages that were installed along something you needed, but you no longer needs and/or removed, you can try Anwar Shah answer or use deborphan:

sudo apt-get install deborphan
deborphan

This will generate a list of no longer needed dependencies that you can uninstall/remove.

share|improve this answer
    
This is exactly what i needed, thanks –  ArK Nov 5 '13 at 14:20

No, there is no such things as "the packages needed by the system all together" since the system has no way to determine which packages are required. Because it is you who directs the requirement.

However, some packages might be installed together with other packages and if you removed those, the 'installed together' packages might not get removed. In this case, you can run this command to remove those unnecessary packages.

sudo apt-get autoremove
share|improve this answer

You can also install synaptic which will provide you with more GUI information about installed and available packages. Run:

sudo apt-get update && sudo apt-get install synaptic
share|improve this answer

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.