I am working on RHEL 6 and would like to check if Tomcat is installed in the system. The Tomcat process is not running. Basically looking for some Unix utility which can detect the third party software installed in the system.
To check if a software/application is installed in Linux
3.6k Views Asked by Rohit At
2
There are 2 best solutions below
6

Try
rpm -qa | grep tomcat
the rpm -qa
will list all packages, the grep
filters for the string "tomcat"
This will not require root access.
EDIT2
In case your application is installed from source, I think you can try as follows
which tomcat
that might come up with "/usr/sbin/tomcat" or something similar.
else try
find /usr/ -name 'tomcat' 2> /dev/null
replace the /usr/
portion with another path where you suspect it can be present. else, try with just /
.
or even
locate tomcat | less
to have a look all paths related to tomcat.
In case you have the source directory from which it was installed, you can get the paths from there from the makefile.
$ find / -name "*tomcat*"
That should get you at least something relevant if it's present. It's going to take a while to run, though...