Click to See Complete Forum and Search --> : Which directory should I use


carljenkins
02-18-2004, 09:30 AM
I hope this is the right place to put this thread.

I am using fedora and continually just install things from /home/me I know there is a bettrer way than this.

I read some read hat guides on the FHS but it really didn't say this is where you install applications for everyday use.

Should I use /usr/local to install packages on my system or is there another directory that linux prefers?

pickarooney
02-18-2004, 10:02 AM
Depends on the type of application. Are you compiling or using RPMs?

thaddaeus
02-18-2004, 10:45 AM
for slack i use
/usr/src for the main source code
/etc/"program name" for all configuration files
as for where programs install i let them install where they want and find em later but most en up in /usr/local or /etc

mdwatts
02-18-2004, 12:32 PM
http://justlinux.com/nhf/Filesystems/Directory_Navigation.html

Make sure you read the section on /usr/local.

carljenkins
02-18-2004, 10:23 PM
I usually use rpm's but I have used the tar.gz on occassion. I don't compile much as I am still new to linux so I guess I still fear the unknown.

Thaks for the link i'll read that tonight.

mdwatts
02-19-2004, 01:07 PM
With installing from rpm packages, you have no choice over where everything is installed as it's preconfigured in the rpm package.

But with compiling from source, you can specify where to install by using

./configure --prefix=/path/to/install

arn0ld
02-19-2004, 09:00 PM
Originally posted by carljenkins
I usually use rpm's but I have used the tar.gz on occassion. I don't compile much as I am still new to linux so I guess I still fear the unknown.


I am old to UNIX/Linux and I only compile (other than the kernel) if I can not find a sutable RPM. There is a great deal more value to rpm than installing.