source: introduction/important/position.xml@ fabf04f7

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since fabf04f7 was 6732c094, checked in by Randy McMurchy <randy@…>, 17 years ago

Updated all the XML files (and the one stylesheet) to use the 4.5 version of DocBook XML DTD

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@6716 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 4.1 KB
RevLine 
[4122007]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[4122007]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
[4afc2603]8<sect1 id="position">
[d5f2a3f]9 <?dbhtml filename="position.html"?>
10
11 <sect1info>
12 <othername>$LastChangedBy$</othername>
13 <date>$Date$</date>
14 </sect1info>
15
16 <title>The /usr Versus /usr/local Debate</title>
17
18 <para><emphasis>Should I install XXX in <filename>/usr</filename> or
19 <filename>/usr/local</filename>?</emphasis></para>
20
21 <para>This is a question without an obvious answer for an
22 LFS based system.</para>
23
[4afc2603]24 <para>In traditional Unix systems,
25 <filename class='directory'>/usr</filename> usually contains files that come
26 with the system distribution, and the
27 <filename class='directory'>/usr/local</filename> tree is free for the local
28 administrator to manage. The only really hard and fast rule is that Unix
29 distributions should not touch
30 <filename class='directory'>/usr/local</filename>, except perhaps to create
31 the basic directories within it.</para>
[d5f2a3f]32
[4afc2603]33 <para>With Linux distributions like Red Hat, Debian, etc., a possible rule is
34 that <filename class='directory'>/usr</filename> is managed by the
35 distribution's package system and
36 <filename class='directory'>/usr/local</filename> is not. This way the
[d5f2a3f]37 package manager's database knows about every file within
[4afc2603]38 <filename class='directory'>/usr</filename>.</para>
[d5f2a3f]39
[24ca7aa]40 <para>LFS users build their own system and so deciding where
41 the system ends and local files begin is not straightforward. So the choice
[4afc2603]42 should be made in order to make things easier to administer. There are
43 several reasons for dividing files between
44 <filename class='directory'>/usr</filename> and
45 <filename class='directory'>/usr/local</filename>.</para>
[d5f2a3f]46
47 <itemizedlist>
48 <listitem>
[4afc2603]49 <para>On a network of several machines all running LFS, or mixed LFS and
50 other Linux distributions,
51 <filename class='directory'>/usr/local</filename> could be used to hold
52 packages that are common between all the computers in the network. It can
53 be NFS mounted or mirrored from a single server. Here local indicates
54 local to the site.</para>
[d5f2a3f]55 </listitem>
56 <listitem>
[24ca7aa]57 <para>On a network of several computers all running an identical
[4afc2603]58 LFS system, <filename class='directory'>/usr/local</filename> could hold
59 packages that are different between the machines. In this case local
60 refers to the individual computers.</para>
[d5f2a3f]61 </listitem>
62 <listitem>
[4afc2603]63 <para>Even on a single computer,
64 <filename class='directory'>/usr/local</filename> can be useful if you
65 have several distributions installed simultaneously, and want
[d5f2a3f]66 a place to put packages that will be the same on all of them.</para>
67 </listitem>
68 <listitem>
[24ca7aa]69 <para>Or you might regularly rebuild your LFS, but
[4afc2603]70 want a place to put files that you don't want to rebuild each time. This
71 way you can wipe the LFS file system and start from a clean
[d5f2a3f]72 partition every time without losing everything.</para>
73 </listitem>
74 </itemizedlist>
75
[4afc2603]76 <para>Some people ask why not use your own directory tree, e.g.,
77 <filename class='directory'>/usr/site</filename>, rather than
78 <filename class='directory'>/usr/local</filename>?</para>
[d5f2a3f]79
[24ca7aa]80 <para>There is nothing stopping you, many sites do make their own trees,
[d5f2a3f]81 however it makes installing new software more difficult. Automatic installers
[4afc2603]82 often look for dependencies in
83 <filename class='directory'>/usr</filename> and
84 <filename class='directory'>/usr/local</filename>, and if the file it is
85 looking for is in <filename class='directory'>/usr/site</filename> instead,
86 the installer will probably fail unless you specifically tell it where to
87 look.</para>
[d5f2a3f]88
89 <para><emphasis>What is the BLFS position on this?</emphasis></para>
90
91 <para>All of the BLFS instructions install programs in
[4afc2603]92 <filename class='directory'>/usr</filename> with optional instructions to
93 install into <filename class='directory'>/opt</filename> for some specific
94 packages.</para>
[f45b1953]95
96</sect1>
Note: See TracBrowser for help on using the repository browser.