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 06-28-2004, 02:18 AM   #1
ihop
LQ Newbie
 
Registered: Jun 2004
Location: Houston
Distribution: SuSE 9.1
Posts: 2

Rep: Reputation: 0
Style Question: Installing New Programs


I've been using linux on & off for a few years, and one thing that was never clear to me was a common knowledge on where to install programs. I usually just end up making new folders in my home directory, which seems a little messy.

Trying to make sense of the default install setup when you install a distro isn't much help. While binaries are in /bin directories, they're spread around in different /bins, and it's hard to figure out the logic of it. /usr/local seems like a logical place for things that aren't installed as root, but then that brings up another question: when to & when not to install something as root. I've been told it can be dangerous, but some programs require root access, and further, help documents don't always explicitly state whether or not that's required.

So, does anyone have any tips, links, or advice that could give insight into common conventions & efficient use of a *NIX file tree?

Thanks -Ian
 
Old 06-28-2004, 02:23 AM   #2
GT_Onizuka
Member
 
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711

Rep: Reputation: 30
Well, for the most part, when you install something, it picks where its going to install. For example, installing from a package of any sort (.rpm, .tgz, .deb) will install wherever it's told to by default. If you install from source, most applications will choose to install somewhere (usually /usr/local/bin, but there are exceptions) and will only install elsewhere if you tell it explicitly to do so. If, however, you are downloading a binary (like Firefox is), I just throw mine in /usr/local/bin, as it seems to work the best for me, and I know where everything is.
 
Old 06-28-2004, 08:40 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
The tarball will install into either /usr or /usr/local. Some files will go into the bin dir and some into the lib directory, and some in doc.
According to the Linux Filesystem Hierarchy Standard (LFHS), /usr/local should be the base directory for the installations. Upgrading a distro will not change the files in these directories.
The part I don't understand myself is using a common /usr/local directory for a network. Shouldn't it be called /usr/shared then?
This sounds a lot like the phrase 'wireless cable'?

Last edited by jschiwal; 06-28-2004 at 08:42 PM.
 
Old 11-18-2004, 01:02 AM   #4
ihop
LQ Newbie
 
Registered: Jun 2004
Location: Houston
Distribution: SuSE 9.1
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by jschiwal
According to the Linux Filesystem Hierarchy Standard (LFHS), /usr/local should be the base directory for the installations. Upgrading a distro will not change the files in these directories.
Woah, that's some good stuff right there: http://www.pathname.com/fhs/

Thanks for the information if you ever see this, heh, delayed response.
 
  


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
installing bibtex style duzty_ Linux - Software 5 06-07-2005 08:43 PM
Kopete iChat style on SuSE 9.1: help installing wtfisupwithemo Linux - Software 0 10-27-2004 11:28 AM
Question about installing and running programs BRoscoL Linux - Newbie 6 05-24-2004 01:56 PM
Installing new programs question rhodan Slackware 9 05-17-2004 03:29 PM
latex question; how do I add a new style sheet schatoor Linux - Software 0 01-07-2003 05:23 PM


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