LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-29-2004, 11:18 AM   #1
MDesigner
Member
 
Registered: Jun 2004
Distribution: openSUSE 10.2
Posts: 69

Rep: Reputation: 15
Question Difference between /usr/ and /usr/local/ ?


Serious newbie question I checked out the Filesystem Hierarchy Standard document, but I still don't quite get what /usr/local is all about. It says:

Quote:
The /usr/local hierarchy is for use by the system administrator when installing software locally. It needs to be safe from being overwritten when the system software is updated. It may be used for programs and data that are shareable amongst a group of hosts, but not found in /usr.

Locally installed software must be placed within /usr/local rather than /usr unless it is being installed to replace or upgrade software in /usr.
What does that mean, "installing software locally"? As opposed to what..? Installing it remotely?

Could someone explain this in dummy terms? Thanks!
 
Old 06-29-2004, 12:31 PM   #2
apimente.br
Member
 
Registered: Aug 2003
Location: Sao Paulo - Brazil
Distribution: Mageia
Posts: 151

Rep: Reputation: 15
What I know is:

The /usr directory is where the app installed by the distribution stands.

The /usr/local directory is where the app installed (compiled?) by the system admin stands.

For ex. if you download mplayer and do a ./configure - make - make install it comes to the /usr/local.

Could someone confirm if this is correct?
 
Old 06-29-2004, 12:31 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Seriously, looks like a copy from a thread earlier today: http://www.linuxquestions.org/questi...hreadid=198892

Read that thread.
 
Old 06-29-2004, 12:41 PM   #4
muhmmadaasim
LQ Newbie
 
Registered: Jun 2004
Location: pakistan
Posts: 18

Rep: Reputation: 0
hi
I m little cofused,when i extract the tar file with the command of (tar xvf filename).After this i did't know how i apply ./configure,make and makeinstall file.please give me some guidelines.
thanks
 
Old 06-29-2004, 12:53 PM   #5
MDesigner
Member
 
Registered: Jun 2004
Distribution: openSUSE 10.2
Posts: 69

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by apimente.br
What I know is:

The /usr directory is where the app installed by the distribution stands.

The /usr/local directory is where the app installed (compiled?) by the system admin stands.

For ex. if you download mplayer and do a ./configure - make - make install it comes to the /usr/local.

Could someone confirm if this is correct?
I dunno, LinuxPackages.net tells you that apps tend to want to install into /usr/local, but this is bad.

Actually, that other thread doesn't seem related to mine.. I'm not talking about networking machines. I'm just not clear on the difference between /usr and /usr/local. Here's what LinuxPackages says about /usr/local, with regards to creating slackpacks:

Quote:
...most programs will install to /usr/local by default. We don't want this since we are going to let others use this package /usr/local is off limits basically for packages that others will be using. This is outlined in the FHB.(sic)
 
Old 06-29-2004, 01:18 PM   #6
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
muhmmadaasim,

This is the second time I've seen you do this today. Please don't ask an unrelated question in an existing thread. Create a new thread. You are much more likely to get help that way.

Also you should try the search feature by clicking "search" at the top of the page or available on the menu at the right-side of the page.
 
Old 06-29-2004, 03:39 PM   #7
kevcart3
LQ Newbie
 
Registered: Jun 2004
Location: USA
Distribution: Fedora Core 2
Posts: 15

Rep: Reputation: 0
well, all you have to do when compiling a prog is to put this into the terminal

./configure --prefix=/usr

this will eliminate the prog from installing into /usr/local
/usr/local can cause problems with depenancies if your not careful.
 
Old 07-04-2004, 09:37 AM   #8
apimente.br
Member
 
Registered: Aug 2003
Location: Sao Paulo - Brazil
Distribution: Mageia
Posts: 151

Rep: Reputation: 15
Yesterday I was looking for a better answer, and I found this good HowTo:
http://howtos.linux.com/guides/Linux...hy/index.shtml

quote:
/usr/local

The original idea behind '/usr/local' was to have a separate ('local') '/usr' directory on every machine besides '/usr', which might be just mounted read-only from somewhere else. It copies the structure of '/usr'. These days, '/usr/local' is widely regarded as a good place in which to keep self-compiled or third-party programs. The /usr/local hierarchy is for use by the system administrator when installing software locally. It needs to be safe from being overwritten when the system software is updated. It may be used for programs and data that are shareable amongst a group of hosts, but not found in /usr. Locally installed software must be placed within /usr/local rather than /usr unless it is being installed to replace or upgrade software in /usr.
 
  


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
Starting httpd: /usr/sbin/httpd: symbol lookup error: /usr/local/lib/libaprutil-0.so. bijuhpd Linux - Newbie 1 10-30-2005 05:07 PM
/usr vs /usr/local on linuxpackages.net merchtemeagle Slackware 4 10-18-2005 03:09 PM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 01:02 AM
Installing software, /usr/lib directory and /usr/local millertime Linux - Software 2 07-10-2004 09:21 AM
Why /usr/X11R6 before /usr/local? Griffon26 Linux - Software 2 07-18-2002 06:46 PM


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