LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 12-13-2005, 05:00 AM   #1
rookiepaul
Member
 
Registered: Jul 2005
Location: London
Distribution: Debian, RedHat, Ubuntu
Posts: 73

Rep: Reputation: 15
Where should I put programs?


Okay guys, I'm really sorry for asking such a newbie question but it's something that I have never really got a straight answer for. Where in a linux distro should I install programs?... Say I'm using Red Hat 9 and want to install firefox, which directory should I put it in. Also, should I be installing it as root or as a user. My appologies for my lack of knowledge, but I am very new to linux. Many thanks.

Rookie
 
Old 12-13-2005, 05:15 AM   #2
arunvk
Member
 
Registered: Nov 2005
Location: India
Distribution: Fedora 11
Posts: 194

Rep: Reputation: 30
its depends whether u r installing or just simply running it.

when u r installing a program, u have to be root because the program needs to write files in the restricted folders. these folders r generally in /usr. u have no control over where these files r going to be installed. so dont even think about changing the installation folders.

few programs dont have to be installed.take firefox for example. u dont need to intall firefox, all u have to do is run it. the command to run it is ./firefox or simply double click the icon firefox. since firefox does not access any of the restricted folders u dont need to be root.

hope i was clear enough.
1
 
Old 12-13-2005, 05:18 AM   #3
rookiepaul
Member
 
Registered: Jul 2005
Location: London
Distribution: Debian, RedHat, Ubuntu
Posts: 73

Original Poster
Rep: Reputation: 15
Thanks man, but surely firefox has to be installed for you to run it, or does it just have to be untarred?
 
Old 12-13-2005, 05:19 AM   #4
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
Usually, programs would install to /usr such as /usr/local/ and /usr/bin for the binary executable, and in order to sucesfully install, "make install" would need to be done as root.

You can install apps into your directory if you wanted, depending on what dependencies they had and if they required any other libraries, but this would limit other users being able to access the program.

Some apps install to different locations, and will usually be detailed within the README or INSTALL file, depending on whether they follow the LSB guidelines
 
Old 12-13-2005, 05:26 AM   #5
arunvk
Member
 
Registered: Nov 2005
Location: India
Distribution: Fedora 11
Posts: 194

Rep: Reputation: 30
Quote:
Originally Posted by rookiepaul
but surely firefox has to be installed for you to run it, or does it just have to be untarred?
firefox 1.5 needs no installation. untar it and run firefox.
 
Old 12-13-2005, 05:45 AM   #6
TruongAn
Member
 
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728

Rep: Reputation: 33
For some software, you can put it at anywhere you like (the case of firefox).
But you must nothice that
If you put it in a normal user's home, only that user and, of course, root can run that software .
If you want this software to be accessible by any user, or you can say: install it, you must be root as arunvk said.

So, it is completely depend on your habbit.
 
Old 12-13-2005, 05:55 AM   #7
rookiepaul
Member
 
Registered: Jul 2005
Location: London
Distribution: Debian, RedHat, Ubuntu
Posts: 73

Original Poster
Rep: Reputation: 15
Thanks guys that really cleared it up for me
 
Old 12-13-2005, 06:16 AM   #8
magicsam
LQ Newbie
 
Registered: Dec 2005
Location: Netherlands, The
Distribution: SUSE 10 -> Gentoo
Posts: 14

Rep: Reputation: 0
Even after reading the above I still find it rather confusing as a n00b where to install programs and for example SuperKaramba themes.

I don't want to install them in my /home directory because that's a slower drive I use for data only (linux is installed on a WD Raptor.

Is /usr/local I good choice?
 
Old 12-13-2005, 09:57 AM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
IMHO, one of the really convoluted things about Linux. It comes from the concept of a very generalized, multi-user, system where not everyone will run the same programs.

Short answer---you can put programs whereever you want to!!--It's your system...

What you see in the file structure of a typical distro is simply convention. If you install a package--eg .rpm or .deb, then your installer will follow local convention---including setting up menus.

Some SW installs by default to /opt---usually you can change this.

Firefox runs whereever you unpack it (T-bird also, I think)

Search here or on Google for "Linux filesystem hierarchy"
 
Old 12-13-2005, 05:42 PM   #10
magicsam
LQ Newbie
 
Registered: Dec 2005
Location: Netherlands, The
Distribution: SUSE 10 -> Gentoo
Posts: 14

Rep: Reputation: 0
That google search was good! pathname.com/fhs contains the answers to everything i wanted to know.
 
Old 12-13-2005, 05:58 PM   #11
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by magicsam
/ Why did I use Windows for so long...?
Because you, like many others, were seduced by a deceptive ease of use which masked some major pathologies. Because many EXPECT you to use it (workplace). Because many FORCE you to use it (PC vendors)

The guy in Brazil the likened MS to drug dealers was not that far off......In his case, the political realities forced him to back off--I won't.....
 
  


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
Where to put programs? LoafOfBread34 Linux - Newbie 4 11-24-2005 04:07 PM
Best place to put new programs. swamprat Linux - Newbie 5 10-04-2005 09:45 PM
where to put programs? NonSumPisces Linux - Newbie 4 05-26-2004 11:08 AM
How do I put my programs in my PATH? grenal Linux - Newbie 2 10-12-2003 04:08 AM
How to put programs in startup emanners Linux - General 2 07-09-2001 03:04 PM


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