Possible Duplicate:
What is the correct way to completely remove an application?
Is it possible to undo an apt-get install command?

Most of the time when I want to try a new program, the package manager tells me that I also need to install certain dependencies. Figuring that the program will not work without these dependencies, I install all of them. Sometimes the program is good, other times the program doesn't work or crashes or I just don't like it.

How can I uninstall the program and all the dependencies that were installed with it?

Do I need to manually keep track of what gets installed when and where and what it needs to function?

I don't want a bunch of useless or otherwise unused programs cluttering up my computer, wasting space and slowing my system down. How can I get rid of it without guessing what I should and shouldn't need to keep?

Edited 2/4/2013 to differentiate question:

Is there any way to remove do this without resorting to the command line? I use Muon in kubuntu and Synaptic in lubuntu. Can neither one of these programs remove the software and dependancies that it installs?

  • Probable duplicate: How can I uninstall software?
    – user25656
    Feb 4 '13 at 12:11
  • @vasa1 Yes, almost picked that one too, but the accepted answer that Q doesn't mention "autoremove" and automatically installed packages (the other does).
    – gertvdijk
    Feb 4 '13 at 12:12
  • OP will benefit by reading help.ubuntu.com/community/AptGet/Howto which has nice summaries of various commands related to installing and removing software.
    – user25656
    Feb 4 '13 at 12:17
  • @gertvdijk, in totality, that question does answer OP's issues. I'm not sure that mentioning something as a duplicate question requires that the accepted answer, and the accepted answer alone, needs to provide the answer to the current question.
    – user25656
    Feb 4 '13 at 12:23
  • 1
    I believe your updated question is a bit changed. I would suggest to ask a new question: "How do I perform an 'autoremove' in Muon and Synaptic?" and make it awesome! Please be more specific in your question next time, as you can see users aren't very likely to come up with question you were looking for if you don't mention it all. :)
    – gertvdijk
    Feb 5 '13 at 0:28

If you are not a power user or developer who create programs, dependency tracker is there to mark the obsolete package.

Just run

sudo apt-get autoremove to remove unused dependency.

Also if you want to clean the downloaded cache files (installers at /var/cache/apt/archives that are used for installation you can run

sudo apt-get clean

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