Question: I am new to linux I want to setup tomcat 6 on fedora 64 bit. i some how managed to install tomcat by using following command

```
yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps

```

but i don't at which directory tomcat installed. also i want to know how i can configure JAVA\_HOME and CATALINA\_HOME environment variables.

Answer: 
On Fedora 13 a `CATALINA_HOME` environment variable is not explicitly defined following a Tomcat 6 install. It is essentially equal to `/usr/share/tomcat6/` though. This threw me off when reading Tomcat 6 guides that routinely refer to a `CATALINA_HOME`. You could add one to your `~/.bash_profile` if it helps.

```
CATALINA_HOME=/usr/share/tomcat6/
export CATALINA_HOME

```

You will have to log out and back in for this to take effect.
```
    sudo find / -name "apache-tomcat*"

```

you might or might not need sudo.

You can just download the zip and put it wherever you want, you know...