Friday, October 28, 2011

Fedora install tomcat 6

yum install tomcat6 tomcat6-admin-webapps tomcat6-webapps
chmod g+x /usr/share/tomcat6/logs
chmod g+x /etc/tomcat6
chmod g+x /usr/share/tomcat6/webapps/
chmod g+x /usr/share/tomcat6/temp
chmod g+x /usr/share/tomcat6/work
chmod g+x /var/cache/tomcat6
chown -R tomcat:tomcat /etc/tomcat6/Catalina
chmod g+x /var/lib/tomcat6/

Ok. Now try start tomcat again:
service tomcat6 restart
Open browser: http://localhost:8080/

Sunday, October 9, 2011

How to list the files installed by a yum package

If you don’t have repoquery you’ll need to install it first:

% yum install yum-utilsThen you can run it like so:

% repoquery --list *package*repoquery writes the list of files for the specified package to standard output. For example, to see the files installed by the nmh package, use:

% repoquery --list nmh
/etc/nmh
/etc/nmh/MailAliases
/etc/nmh/components
/etc/nmh/digestcomps
/etc/nmh/distcomps
...

#Referenced from http://cimarron-taylor.appspot.com/html/0901/090107-yum.html

YUM command

yum gets the list of packages from repository /etc/yum.repos.d

install additional repository into top folder
- wsget *.repo