How to uninstall software in Linux

2

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

TopCoder

Posted 2010-04-05T11:48:14.137

Reputation:

Answers

3

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

Ignacio Vazquez-Abrams

Posted 2010-04-05T11:48:14.137

Reputation: 100 516

1

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.

Saif Bechan

Posted 2010-04-05T11:48:14.137

Reputation: 2 835

Better do "yum erase /usr/bin/tomcat" in such a case. – vonbrand – 2013-01-18T17:31:58.417

0

checkout yum --help or man yum

iNPUTmice

Posted 2010-04-05T11:48:14.137

Reputation:

0

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

Zsub

Posted 2010-04-05T11:48:14.137

Reputation: 521