Where to put files from newly downloaded application
Linux - NewbieThis 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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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).
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
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
/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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.