Super User is a question and answer site for computer enthusiasts and power users. 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

how to uninstall software in linux. I am facing issues installing No machine setup(NX)

share|improve this question

migrated from Apr 5 '10 at 11:52

This question came from our site for professional and enthusiast programmers.

rpm -e <package> or yum remove <package> if it was installed via a package. Otherwise make uninstall or judicious use of rm.

share|improve this answer

If I want to uninstall a program quickly and I only know part of the name I find the following commands always nice.

Lets say I want to remove only tomcat from my system, I use:

rpm -qa | grep "tomcat" | xargs rpm -e

If I want to remove tomcat and all its dependencies I use:

rpm -qa | grep "tomcat" | xargs yum erase -y

There are all kinds of variations on these commands, and they can be quite powerful.

share|improve this answer
Better do "yum erase /usr/bin/tomcat" in such a case. – vonbrand Jan 18 '13 at 17:31

checkout yum --help or man yum

share|improve this answer

yum remove <package> As for any details on which packages are installed, you could use yum list. That should show all packages.

share|improve this answer

You must log in to answer this question.