Comment détecter si tomcat et la fourmi sont installés sur la machine linux

Je suis en train d'installer Tomcat et Ant sur ma machine linux, mais avant de les installer, j'ai juste besoin de vérifier si ils sont déjà installés ou non.

Concernant tomcat:

J'ai googlé un lot et de la recherché sur ma machine dans les répertoires suivants pour tomcat

/usr/local/, /opt/, /usr/share/

mais j'din trouverez pas de tomcat dossier dans l'un des au-dessus du chemin, s'il indique que tomcat n'est pas installé ? donc en fait

1. what is the path to `look/find` exactly to know/check whether tomcat is installed or not in 
   all linux machines
2. what will be the path the tomcat will be installed exactly after installation
3. How to find the version of tomcat on any linux machine (if tomcat already installed) 
4. Whether there are any commands to look for both whether `tomcat` installed and `ant` 
   installed

Concernant Ant:

J'ai googlé et a obtenu la commande ci-dessous en raison de laquelle j'ai obtenu le résultat ci-dessous après l'exécution de
il

sh-4.2$ ant -v

résultat

sh-4.2$ ant -v
Apache Ant(TM) version 1.8.2 compiled on November 21 2011
Trying the default build file: build.xml
Buildfile: build.xml does not exist!
Build failed

donc en fait

1. Does the above result mean that `Ant` is installed ? or not ?
2. what is the path to `look/find` exactly to know/check whether ant is installed or not in 
   all linux machines
3. what will be the path the `ant` will be installed exactly after installation
4. How to find the version of `Ant` on any linux machine (if Ant already installed) 

OriginalL'auteur Shiva Krishna Bavandla | 2013-02-21