LinuxQuestions.org
Review your favorite Linux distribution.
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 03-21-2005, 04:06 PM   #1
Evil Elvis
LQ Newbie
 
Registered: Mar 2005
Location: northern california
Distribution: StartCom EN 4.0...at least today
Posts: 2

Rep: Reputation: 0
Where to install things (its a question)


Greetings. My question is probably best asked as an example.

I have just installed Linux (I don't think it matters much which distro). Everything is working as I expected from things I have read. I can access different drives/partitions, printer, internet and so on. I decide I want to run the program Seti@Home. So I download it.

Where do I download it to? Does it matter if I put it in /home or maybe stick it in /etc/what-the-hell-is-this/docs?

When I do have it downloaded and I decide to install it, does it know where to install?

Seti is an example. I know how to make it run. The questions are for any app/program I might decide to download or install from whatever source.

I think I know the answer but would prefer to be sure. I have searched for an answer in this forum and others as well as reading quite a bit of HOW TO's. If the answer was there then I am dimmer than even I imagined.

Thanx for any input.
Evil Elvis
 
Old 03-21-2005, 04:20 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,854

Rep: Reputation: 310Reputation: 310Reputation: 310Reputation: 310
"Where do I download it to? Does it matter if I put it in /home or maybe stick it in /etc/what-the-hell-is-this/docs?"

Download it to wherever you want within /home/user. You should not download to /etc or any other directory which needs root permissions because it is bad security to allow any program accessing the Internet to have root access.

"When I do have it downloaded and I decide to install it, does it know where to install?"

Yes.

---------------------------
Steve Stites
 
Old 03-21-2005, 04:20 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
when compiling from source (btw. yes it does matter what you are using, and either way it would have been quicker to tell us that say it didn't matter ), the configure script will have standard defaults. you just don't install programs in /etc... it just wouldn't happen. you can unpack source wherever you want, but that's not where it will run from. if you were to want a program to run from somewhere non-standard you would need to pass the location as a parameter to the configure script.

but if you are on fc3, then you can just install by RPM, and there it is utterly irrelevant where you download to. the rpm app will install where it is told to. then you can delete whatever you downloaded.
 
Old 03-21-2005, 04:23 PM   #4
GUIPenguin
Member
 
Registered: Aug 2004
Location: Maine
Distribution: Gentoo Linux
Posts: 239

Rep: Reputation: 30
alot of time I will use a prefix when compiling to specifiy the install dir like

./configure --prefix="/home/user"
 
Old 03-21-2005, 05:43 PM   #5
Evil Elvis
LQ Newbie
 
Registered: Mar 2005
Location: northern california
Distribution: StartCom EN 4.0...at least today
Posts: 2

Original Poster
Rep: Reputation: 0
Many Thanks

These are exactly the things I needed to hear. I understood that an RPM puts things where they need to be but other apps that you download and remove from archive I wasn't sure of.

I did not know that the distro DOES make a difference. I assumed all Linux distro's used basically the same file structure. Guess I have a lot more reading to do. I am currently trying Fedora Core 3 x86_64.

Thanks again for the quick and helpful replies.

Evil Elvis
 
Old 03-22-2005, 03:24 AM   #6
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
I usually like to install into /usr/local
 
Old 03-22-2005, 04:38 AM   #7
saltire
Member
 
Registered: Feb 2005
Location: Christchurch, NZ
Distribution: Kubuntu Dapper 6.06
Posts: 43

Rep: Reputation: 15
Try typing
Code:
echo $PATH
into a terminal - the result will tell you which directories your distro will look in when you run a command or app. It is a reasonably sensible idea to have your programs install to one of these, but as the others have mentioned, you don't have to by any means. But if you don't, then you'll have to specify the complete path to the app when you want to run it. Also, to find out which directory an app is installed in, try "which appname" in a terminal.
 
Old 03-22-2005, 09:34 AM   #8
Padma
Member
 
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30
Re: Many Thanks

Quote:
Originally posted by Evil Elvis
I did not know that the distro DOES make a difference. I assumed all Linux distro's used basically the same file structure. Guess I have a lot more reading to do. I am currently trying Fedora Core 3 x86_64.
Actually, all Linux distros do use "basically the same file structure." It's the *non-basic* things that will get you. And of course, the user *can* put things wherever he/she want's to, really.

With RedHat/Fedora, use RH rpms whenever practical - it will save a lot of headaches. When you *need* to build from source, download to "/home/<user>/<whatever>", and install to some consistent place, like "/usr/local/bin". Just make sure the path is in your PATH variable.
 
  


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 install things idk5293 SUSE / openSUSE 1 09-08-2005 03:42 PM
how do you install things? omfwtfbbq Linux - Newbie 2 04-12-2005 01:08 AM
first few things to do after install? ucfitkid Linux - Newbie 2 02-03-2004 07:32 PM
Can't get things to install ByeOss Linux - Newbie 12 06-24-2003 03:45 AM
LILO: Just a quick question BEFORE I screw things up..... icd30 Linux - General 2 09-29-2002 05:08 PM


All times are GMT -5. The time now is 04:18 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