LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-17-2009, 01:34 PM   #1
foampile
Member
 
Registered: Feb 2009
Posts: 50

Rep: Reputation: 15
Question yum install tomcat5.i386


i was wondering if anyone can give me a plausible rationale why the yum tomcat installation makes more mess over system directories than a possum shot at a short range with a sawed off shotgun ?

i am spending my whole day getting used to where different components are. i mean, why can't the ENTIRE package, everything in it, be under a SINGLE directory, e.g. /env/tomcat and under it have conf, bin, webapps, etc. rather than this:

find / -name '*tomcat*' -print

/var/cache/tomcat5
/var/run/tomcat5.pid
/var/lib/tomcat5
/var/lib/tomcat5/server/lib/[tomcat5][catalina-cluster].jar
/var/lib/tomcat5/server/lib/[tomcat5][servlets-default].jar
/var/lib/tomcat5/server/lib/[tomcat5][catalina-optional].jar
/var/lib/tomcat5/server/lib/[tomcat5][servlets-webdav].jar
/var/lib/tomcat5/server/lib/[tomcat5][tomcat-http].jar
/var/lib/tomcat5/server/lib/[tomcat5][catalina-ant-jmx].jar
/var/lib/tomcat5/server/lib/[tomcat5][tomcat-apr].jar
/var/lib/tomcat5/server/lib/[tomcat5][servlets-invoker].jar
/var/lib/tomcat5/server/lib/[tomcat5][tomcat-util].jar
/var/lib/tomcat5/server/lib/[tomcat5][tomcat-coyote].jar
/var/lib/tomcat5/server/lib/[tomcat5][catalina-storeconfig].jar
/var/lib/tomcat5/server/lib/[tomcat5][catalina].jar
/var/lib/tomcat5/server/lib/[tomcat5][tomcat-jkstatus-ant].jar
/var/lib/tomcat5/server/lib/[tomcat5][tomcat-ajp].jar
/var/lib/tomcat5/common/i18n/tomcat-i18n-en.jar
/var/lib/tomcat5/common/i18n/tomcat-i18n-es.jar
/var/lib/tomcat5/common/i18n/tomcat-i18n-fr.jar
/var/lib/tomcat5/common/i18n/tomcat-i18n-ja.jar
/var/lib/tomcat5/common/lib/[commons-dbcp-tomcat5].jar
/var/lib/tomcat5/common/lib/[commons-collections-tomcat5].jar
/var/lib/tomcat5/common/lib/[commons-pool-tomcat5].jar
/var/lib/tomcat5/common/lib/[tomcat5][naming-factory].jar
/var/lib/tomcat5/common/lib/[tomcat5][naming-resources].jar
/var/log/tomcat5
/usr/lib/gcj/jakarta-commons-pool/jakarta-commons-pool-tomcat5-1.3.jar.db
/usr/lib/gcj/jakarta-commons-pool/jakarta-commons-pool-tomcat5-1.3.jar.so
/usr/lib/gcj/tomcat5
/usr/lib/gcj/tomcat5/tomcat-coyote-5.5.23.jar.so
/usr/lib/gcj/tomcat5/tomcat-apr-5.5.23.jar.so
/usr/lib/gcj/tomcat5/tomcat-util-5.5.23.jar.so
/usr/lib/gcj/tomcat5/tomcat-util-5.5.23.jar.db
/usr/lib/gcj/tomcat5/tomcat5-servlet-2.4-api-5.5.23.jar.so
/usr/lib/gcj/tomcat5/tomcat-coyote-5.5.23.jar.db
/usr/lib/gcj/tomcat5/tomcat-jkstatus-ant-5.5.23.jar.so
/usr/lib/gcj/tomcat5/tomcat-http-5.5.23.jar.so
/usr/lib/gcj/tomcat5/tomcat-juli.jar.db
/usr/lib/gcj/tomcat5/tomcat5-servlet-2.4-api-5.5.23.jar.db
/usr/lib/gcj/tomcat5/tomcat-jkstatus-ant-5.5.23.jar.db
/usr/lib/gcj/tomcat5/tomcat-apr-5.5.23.jar.db
/usr/lib/gcj/tomcat5/tomcat-http-5.5.23.jar.db
/usr/lib/gcj/tomcat5/tomcat-juli.jar.so
/usr/lib/gcj/tomcat5/tomcat-ajp-5.5.23.jar.so
/usr/lib/gcj/tomcat5/tomcat5-jsp-2.0-api-5.5.23.jar.so
/usr/lib/gcj/tomcat5/tomcat-ajp-5.5.23.jar.db
/usr/lib/gcj/tomcat5/tomcat5-jsp-2.0-api-5.5.23.jar.db
/usr/lib/gcj/jakarta-commons-collections/jakarta-commons-collections-tomcat5-3.1.jar.so
/usr/lib/gcj/jakarta-commons-collections/jakarta-commons-collections-tomcat5-3.1.jar.db
/usr/lib/gcj/jakarta-commons-dbcp/jakarta-commons-dbcp-tomcat5-1.2.1.jar.db
/usr/lib/gcj/jakarta-commons-dbcp/jakarta-commons-dbcp-tomcat5-1.2.1.jar.so
/usr/share/doc/jakarta-commons-collections-tomcat5-3.1
/usr/share/doc/tomcat5-servlet-2.4-api-5.5.23
/usr/share/doc/tomcat5-5.5.23
/usr/share/doc/jakarta-commons-dbcp-tomcat5-1.2.1
/usr/share/doc/tomcat5-jasper-5.5.23
/usr/share/doc/tomcat5-jsp-2.0-api-5.5.23
/usr/share/tomcat5
/usr/share/tomcat5/bin/tomcat-juli.jar
/usr/share/java/commons-collections-tomcat5.jar
/usr/share/java/commons-pool-tomcat5-1.3.jar
/usr/share/java/tomcat5
/usr/share/java/tomcat5/tomcat-ajp.jar
/usr/share/java/tomcat5/tomcat-util.jar
/usr/share/java/tomcat5/tomcat-coyote-5.5.23.jar
/usr/share/java/tomcat5/tomcat-ajp-5.5.23.jar
/usr/share/java/tomcat5/tomcat-coyote.jar
/usr/share/java/tomcat5/tomcat-jkstatus-ant.jar
/usr/share/java/tomcat5/tomcat-http.jar
/usr/share/java/tomcat5/tomcat-util-5.5.23.jar
/usr/share/java/tomcat5/tomcat-http-5.5.23.jar
/usr/share/java/tomcat5/tomcat-apr.jar
/usr/share/java/tomcat5/tomcat-jkstatus-ant-5.5.23.jar
/usr/share/java/tomcat5/tomcat-apr-5.5.23.jar
/usr/share/java/jakarta-commons-pool-tomcat5.jar
/usr/share/java/jakarta-commons-dbcp-tomcat5-1.2.1.jar
/usr/share/java/jakarta-commons-pool-tomcat5-1.3.jar
/usr/share/java/commons-dbcp-tomcat5-1.2.1.jar
/usr/share/java/commons-dbcp-tomcat5.jar
/usr/share/java/tomcat5-jsp-2.0-api-5.5.23.jar
/usr/share/java/tomcat5-jsp-2.0-api.jar
/usr/share/java/commons-pool-tomcat5.jar
/usr/share/java/jakarta-commons-collections-tomcat5.jar
/usr/share/java/jakarta-commons-dbcp-tomcat5.jar
/usr/share/java/commons-collections-tomcat5-3.1.jar
/usr/share/java/jakarta-commons-collections-tomcat5-3.1.jar
/usr/share/java/tomcat5-servlet-2.4-api.jar
/usr/share/java/tomcat5-servlet-2.4-api-5.5.23.jar
/usr/bin/tomcat5
/usr/bin/dtomcat5
/etc/tomcat5
/etc/tomcat5/tomcat5.conf
/etc/tomcat5/tomcat-users.xml
/etc/logrotate.d/tomcat5
/etc/sysconfig/tomcat5
/etc/rc.d/rc0.d/K20tomcat5
/etc/rc.d/rc4.d/K20tomcat5
/etc/rc.d/rc2.d/K20tomcat5
/etc/rc.d/rc1.d/K20tomcat5
/etc/rc.d/rc6.d/K20tomcat5
/etc/rc.d/rc3.d/K20tomcat5
/etc/rc.d/rc5.d/K20tomcat5
/etc/rc.d/init.d/tomcat5

could they have made it more complex ? if you just download the tar.gz and do make, it installs it all in one directory, provided you don't change the default settings. however, my boss says that yum uses the "standard" configuration and we should use that to avoid deviating from the norms for the sake of future maintenance.

can someone please rationalize why my life has, all of the sudden, become so much more complicated than having it all under the same directory ???
 
Old 02-17-2009, 03:07 PM   #2
nottings
LQ Newbie
 
Registered: Aug 2007
Posts: 6

Rep: Reputation: 0
It actually makes perfect sense why it is installed where it is... Read up on some of these base directory paths and you'll quickly understand too.

start with /var/lib; /usr/bin; /usr/lib; /usr/share; /etc; /etc/rc.d

Each is for a mostly for a particular component of an application and once you understand it's purpose, you'll understand the whole picture better. Good luck
 
Old 02-17-2009, 03:18 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,947

Rep: Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602
'rpm -ql tomcat5' will print a file list in the terminal.

( You will not have to use 'find' for this, there is a
dedicated command for every task in Linux.)

'rpm -ql tomcat5 > tomcat5_files.txt' will make a text file
in /home/foampile/

The file structure is standard Unix / Linux invented 40 years
ago, to make the perfect OS. ( With some modifications along )
There are very god reasons, that files are placed, where they are.

And why have files in one directory, think of the mess in
Windows !

.....

Last edited by knudfl; 02-17-2009 at 03:45 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
yum error with Fedora 10 on i386 after installing application jenovanomusuko Linux - Newbie 3 01-20-2009 12:40 PM
# yum install qt-PostgreSQL-3.3.6-13.i386 failed? maradnus Linux - Newbie 1 11-06-2008 02:05 AM
yum install mysql-devel.i386 jbhanc0125 Linux - Newbie 3 04-01-2006 02:21 PM
i386 yum upgrade to x86? wesmoc Fedora 5 01-19-2006 10:30 AM
trying to install Tomcat5 on linux Idrisk Linux - Newbie 2 09-20-2005 07:47 AM


All times are GMT -5. The time now is 03:39 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration