LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 05-14-2004, 07:39 AM   #1
ldp
Member
 
Registered: Apr 2004
Location: Belgium Antwerpen
Distribution: slackware - knoppix
Posts: 141

Rep: Reputation: 18
what is the standard place to put sourcefiles and where install?


Hello,

Is there anywhere a place where one should always put the sourcefiles they download and where to install the applications you build from them? (I mean like in window$, most programs are installed in c:\program files\)

Like for exaple, I download httpd-2.0.49.tar.gz Should I put it in /usr/local/src and unpack it there? And should I then install it in /usr/local/bin ?? I know this is a rather stupid question because in theory (I think) one should be able to put the files anywhere they want. It's just that I want to stick to the standard and use the right maps for what they're intended for. Just for the sake of clarity.

Regards,
Lieven
 
Old 05-14-2004, 08:34 AM   #2
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 449

Rep: Reputation: 31
As you say, you can put them where you want. Myself, I put the original download in /usr/src/tarfiles, unpack them in /usr/src/build (occasionally the tree goes in $HOME/build), and usually take the typical default to install in /usr/local except when I need to overwrite distro installs in /usr space. It seems to help me keep track of what I have done.
 
Old 05-14-2004, 09:12 AM   #3
javpra
Member
 
Registered: Nov 2003
Distribution: FreeBSD/Gentoo/Debian
Posts: 49

Rep: Reputation: 18
Hello,

There really is no standard. Most programs go to /usr/local or /usr/opt. Most source code goes to /usr/src. Some programs request or suggest other defaults. You should read individual program README or INSTALL files for their recommendations. Once a program is installed the .tar file is no longer needed so if you wish those can be removed unless you plan on reinstalling again later. This site is a great resource for information such as this
www.tldp.org
It has online and downloadable manuals on everything from user guides to system administration. Here is where you can find what is usually stored in which directorty.

http://www.tldp.org/guides.html

open the "introduction to linux guide" and go to chapter 3.1.3.1
I hope this is of assistance.
 
Old 05-14-2004, 11:17 AM   #4
ldp
Member
 
Registered: Apr 2004
Location: Belgium Antwerpen
Distribution: slackware - knoppix
Posts: 141

Original Poster
Rep: Reputation: 18
Hey thank you both. It looks to me like the usr/ directory is a nice place for all this. Thanks for the link too, it has lots of info.
rgds,
Lieven
 
Old 05-14-2004, 11:29 AM   #5
Strike
Member
 
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569

Rep: Reputation: 31
There is a standard. It's called the Filesystem Hierarchy Standard. It dictates that /usr/local is the place where local customizations and software installs are supposed to go. Debian honors this and no package will overwrite anything in that directory tree. The only stuff any (correct) package puts in /usr/local would be directories for things like Python's site-packages directory.

/usr/local is the correct place on a Debian system.
 
Old 05-14-2004, 11:36 AM   #6
ldp
Member
 
Registered: Apr 2004
Location: Belgium Antwerpen
Distribution: slackware - knoppix
Posts: 141

Original Poster
Rep: Reputation: 18
Nice to know, I was planning to use the /usr/local/apache2 directory for my install. Infact, it's also the default from that aplication.
thanks.
 
  


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
Best place to put new programs. swamprat Linux - Newbie 5 10-04-2005 09:45 PM
can't even get to the place to install analogg59 Linux - Software 1 07-29-2005 12:33 PM
best-practice place to put shared directories funaroma Linux - Newbie 1 11-30-2004 04:50 PM
standard vs Expert install? Standard flubs up! Frost Linux - Software 1 03-27-2002 08:55 AM
best place to install apps Thomas_Delrue Linux - Newbie 1 07-10-2001 03:45 PM


All times are GMT -5. The time now is 06:59 AM.

Main Menu
Advertisement
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