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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-27-2007, 11:20 AM
|
#1
|
Member
Registered: Mar 2007
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323
Rep:
|
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.
|
|
|
10-27-2007, 11:33 AM
|
#3
|
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
|
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 11:37 AM.
|
|
|
10-27-2007, 12:12 PM
|
#4
|
Member
Registered: Mar 2007
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323
Original Poster
Rep:
|
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?
|
|
|
10-27-2007, 12:19 PM
|
#5
|
Member
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299
Rep:
|
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
|
|
|
10-27-2007, 01:11 PM
|
#6
|
Senior Member
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079
Rep:
|
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
|
|
|
10-27-2007, 02:03 PM
|
#7
|
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153
|
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 02:08 PM.
Reason: Added a PS
|
|
|
10-27-2007, 02:18 PM
|
#8
|
Member
Registered: Mar 2007
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323
Original Poster
Rep:
|
Thanks for the info.
Quote:
Originally Posted by tredegar
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.
|
|
|
10-27-2007, 03:12 PM
|
#9
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Rep: 
|
I think /usr/local is the most common destination for ./configure, make, make install stuff.
|
|
|
10-27-2007, 03:38 PM
|
#10
|
Member
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299
Rep:
|
Source should be /usr/src according to FHS
|
|
|
10-27-2007, 03:47 PM
|
#11
|
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
|
/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.
|
|
|
All times are GMT -5. The time now is 07:36 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|