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.

How can I uninstall any program using terminal. For example, how can I uninstall TeamViewer 7 wich is stored in my home folder. I can not see TeamViewer in ubuntu softvare center, so I can not uninstall it that way.

share|improve this question
1  
If you install TeamViewer 7 using the .deb, you should be able to find it by running dpkg -l | grep -i teamviewer then use dpkg -r or apt-get purge package_name to remove the package with its configuration files. –  Terry Wang Feb 11 '13 at 9:16
1  
Also, if you ever need to remove/purge a package, but you don't remember its exact name but the beginning of it, you can press Tab one (or two if there are more options) time(s) to autocomplete what you are typing. For instance, I want to remove Google Chrome: I type sudo apt-get --purge remove goog and I press the Tab key two times; the terminal will show me this: google-chrome-unstable, google-talkplugin, google-musicmanager, goograndom-app and so on. In this way I can know what packages start with google. In case I only have google-chrome-unstable, a single Tab will do. –  Alfredo Hernández Mar 5 '13 at 22:04

1 Answer 1

Simple googling might have helped, anyway here is how you can uninstall any package from terminal:

apt-get --purge remove <package>

You should never remove files by hand use dpkg --purge <package> if you have already removed it with apt plus the files by hand and it thinks it is still configured this should get rid of it.

Source of info and more on this you can find here: linuxquestions

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.