LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-27-2007, 12:20 PM   #1
lumix
Member
 
Registered: Mar 2007
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323

Rep: Reputation: 30
Where to put files from newly downloaded application


This still eludes me.

Regardless of distribution (although perhaps it can't be disregarded altogether), where do I put my application files?

For example: I download DoFoo.tar.gz. Where is a sensible place to:

1) store the .gz

2) extract the files to

3) install the app?

And why is it sensible? I'm looking more to understand how linux works and what the implications are of keeping files in this directory or that.

I guess I would make the assumption that I am using a Debian based distro and am currently the only user, but that other users might be added who would want to use DoFoo for all its amazing features.

Help me understand this linux thing (2 years after I've started using it).

Thanks.
 
Old 10-27-2007, 12:32 PM   #2
larkl
Member
 
Registered: Sep 2007
Distribution: Puppy 5.2.8
Posts: 69

Rep: Reputation: 15
Probably /usr/bin, a quick googling...
http://www.freeos.com/articles/3102/
 
Old 10-27-2007, 12:33 PM   #3
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
Have you ever looked at the Filesystem Hierarchy Standard? It will provide you the rationale for what goes where.

Last edited by weibullguy; 10-27-2007 at 12:37 PM.
 
Old 10-27-2007, 01:12 PM   #4
lumix
Member
 
Registered: Mar 2007
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323

Original Poster
Rep: Reputation: 30
Thanks for the links. I've scrolled through these but I'm still a bit fuzzy. In the above example, where would you put each of the 3 items?
 
Old 10-27-2007, 01:19 PM   #5
The_JinJ
Member
 
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299

Rep: Reputation: 30
Download and unzip in your home directory would be ok - as said above, probably install to usr/bin but depends what it is.
The zip and extracted files will generally be deleted so home directory is ok.
Read the link weibullguy posted again - these guys recommend the file system layout with reasoning....eg. /usr/bin: Most user commands
 
Old 10-27-2007, 02:11 PM   #6
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
Source code usually goes in /usr/src but it doesn't really matter, you can keep all the files in your home directory if you want
 
Old 10-27-2007, 03:03 PM   #7
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Quote:
In the above example, where would you put each of the 3 items?
I have recompiled my kernel twice, and installed from source maybe three times, so I am hardly an expert, but the way I understand it is this:

You can download the tar file anywhere that is convenient.
You untar it, and cd to that directory.
./configure configures it
make does the make bit
(as root) make install installs it, wherever it is "supposed to go", and this is probably determined by the previous two steps.
Thereafter you can delete the source directory, as it has had its use, although I tend to keep them as the READMEs can be useful later.

Edit: You are using Debian, why don't you just use apt-get, or one of the graphical repository managers to install software? /Edit

Last edited by tredegar; 10-27-2007 at 03:08 PM. Reason: Added a PS
 
Old 10-27-2007, 03:18 PM   #8
lumix
Member
 
Registered: Mar 2007
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323

Original Poster
Rep: Reputation: 30
Thanks for the info.

Quote:
Originally Posted by tredegar View Post

Edit: You are using Debian, why don't you just use apt-get, or one of the graphical repository managers to install software? /Edit
Naturally because it isn't found in the repository.
 
Old 10-27-2007, 04:12 PM   #9
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
I think /usr/local is the most common destination for ./configure, make, make install stuff.
 
Old 10-27-2007, 04:38 PM   #10
The_JinJ
Member
 
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299

Rep: Reputation: 30
Source should be /usr/src according to FHS
 
Old 10-27-2007, 04:47 PM   #11
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
/usr/local is the default prefix if the package uses GNU autotools but it might be somewhere else if not. /usr/src is for storing source code for reference purposes, it's not supposed to be used to build software.
 
  


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
how to start a newly installed application ? QiEr Linux - Newbie 3 02-02-2005 02:45 AM
Downloaded Linux ISO how do I put it on a 3 CDs? DDRfreak2 Linux - Newbie 5 12-28-2004 01:29 PM
Where does urpmi put downloaded files? craigl Mandriva 1 04-29-2004 08:28 PM
Where does the Mozilla put the downloaded file? duzhenhuan Linux - Software 1 02-24-2004 06:23 AM
Very basic question: how do I run a newly downloaded app? lhoff Linux - Newbie 5 07-06-2001 08:06 PM


All times are GMT -5. The time now is 08:59 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration