LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-17-2005, 08:15 AM   #1
ArchNGEL
Member
 
Registered: Apr 2003
Location: Hungary
Distribution: Fedora Core 6 (2.6.18)
Posts: 61

Rep: Reputation: 15
use of separate /usr/local


Hi!

I partitioned my HD to mount /usr and /usr/local separately, so if I install two linux distros, both can use the same /usr/local and thus save some place.

Is this line of thought correct, or have I totally misunderstood the idea of separate /usr/local

If it's ok to do that way, is there anything I should be aware of?

It's no use to search google for "/usr /usr/local multiple distro"

thank you very much,

A.
 
Old 10-17-2005, 08:48 AM   #2
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
The philosophy is that you try to separate files belonging to the distribution from files you put there yourself. Typically these files are in /home and /usr/local. so its reasonable (IMHO) to have these on the same partition. One way to do this is to have /home mounted on its own partition. Then make a directory /home/usrlocal and a symlink

/usr/local -> /home/usrlocal

I don't see much logic in having a partition just for /usr/local. This way two (or more) distributions can use the files in the /home partition.

Last edited by maroonbaboon; 10-17-2005 at 08:50 AM.
 
Old 10-17-2005, 08:56 AM   #3
ArchNGEL
Member
 
Registered: Apr 2003
Location: Hungary
Distribution: Fedora Core 6 (2.6.18)
Posts: 61

Original Poster
Rep: Reputation: 15
So theoretically my idea should work as well.
I mean if I compile a program to /usr/local it won't be dependent on specific files on /usr, will it?

You see, i have never really thought about that since it's the first time I want to install multiple distros


Thank you for ur answer anyways,

A
 
Old 10-17-2005, 09:39 AM   #4
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
I wrote my views on this on my web site:
My site > Computing > Linux >
- Config: Partitions and filesystems,
- Software: installation.

Yves.
 
Old 10-17-2005, 09:56 AM   #5
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
I think YY's website is similar to my suggestion, but with some differences in detail and added refinements.

There is nothing wrong with /usr/local alone on a separate partition. I just don't see the logic unless /home also has its own partition.

If you compile and install an application to /usr/local it is quite likely it will be dynamically linked to libraries in /usr/lib. If those libraries disappear or the version changes the program quite likely will not run. So the separation is not 100%.
 
Old 10-17-2005, 11:28 AM   #6
ArchNGEL
Member
 
Registered: Apr 2003
Location: Hungary
Distribution: Fedora Core 6 (2.6.18)
Posts: 61

Original Poster
Rep: Reputation: 15
/home is also separate, the reason of my asking was to know if different distros can use the same /usr/local without trouble, but as far as I understand it should go well

thank you for your answers

A.
 
Old 10-18-2005, 10:49 AM   #7
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
It can be done, but you have to make sure that all programs located in /usr/local have their dependencies (libraries) installed on all distributions that use this /usr/local partition.

Yves.
 
  


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 On
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 06:07 PM
/usr vs /usr/local on linuxpackages.net merchtemeagle Slackware 4 10-18-2005 04:09 PM
separate /usr from root fs lawadm1 Linux - Software 1 09-06-2004 08:44 PM
Installing software, /usr/lib directory and /usr/local millertime Linux - Software 2 07-10-2004 10:21 AM
Separate partions for /usr, /home,/root, and /swap hedburner Slackware 2 09-14-2003 12:55 PM


All times are GMT -5. The time now is 04:13 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration