| @@ -1,46 +1,46 @@ | | | @@ -1,46 +1,46 @@ |
1 | <!-- $NetBSD: files.xml,v 1.6 2007/08/15 06:33:45 rillig Exp $ --> | | 1 | <!-- $NetBSD: files.xml,v 1.7 2017/01/07 17:45:37 jperkin Exp $ --> |
2 | | | 2 | |
3 | <chapter id="files"> | | 3 | <chapter id="files"> |
4 | <title>Directory layout of the installed files</title> | | 4 | <title>Directory layout of the installed files</title> |
5 | | | 5 | |
6 | <para>The files that are installed by pkgsrc are organized in a way that | | 6 | <para>The files that are installed by pkgsrc are organized in a way that |
7 | is similar to what you find in the <filename>/usr</filename> directory | | 7 | is similar to what you find in the <filename>/usr</filename> directory |
8 | of the base system. But some details are different. This is because | | 8 | of the base system. But some details are different. This is because |
9 | pkgsrc initially came from FreeBSD and had adopted its file system | | 9 | pkgsrc initially came from FreeBSD and had adopted its file system |
10 | hierarchy. Later it was largely influenced by NetBSD. But no matter | | 10 | hierarchy. Later it was largely influenced by NetBSD. But no matter |
11 | which operating system you are using pkgsrc with, you can expect the | | 11 | which operating system you are using pkgsrc with, you can expect the |
12 | same layout for pkgsrc.</para> | | 12 | same layout for pkgsrc.</para> |
13 | | | 13 | |
14 | <para>There are mainly four root directories for pkgsrc, which are all | | 14 | <para>There are mainly four root directories for pkgsrc, which are all |
15 | configurable in the <filename>bootstrap/bootstrap</filename> script. | | 15 | configurable in the <filename>bootstrap/bootstrap</filename> script. |
16 | When pkgsrc has been installed as root, the default locations | | 16 | When pkgsrc has been installed as root, the default locations |
17 | are:</para> | | 17 | are:</para> |
18 | | | 18 | |
19 | <programlisting> | | 19 | <programlisting> |
20 | LOCALBASE= /usr/pkg | | 20 | LOCALBASE= /usr/pkg |
21 | PKG_SYSCONFBASE= /usr/pkg/etc | | 21 | PKG_SYSCONFBASE= /usr/pkg/etc |
22 | VARBASE= /var | | 22 | VARBASE= /var |
23 | PKG_DBDIR= /var/db/pkg | | 23 | PKG_DBDIR= /usr/pkg/pkgdb |
24 | </programlisting> | | 24 | </programlisting> |
25 | | | 25 | |
26 | <para>In unprivileged mode (when pkgsrc has been installed as any other | | 26 | <para>In unprivileged mode (when pkgsrc has been installed as any other |
27 | user), the default locations are:</para> | | 27 | user), the default locations are:</para> |
28 | | | 28 | |
29 | <programlisting> | | 29 | <programlisting> |
30 | LOCALBASE= ${HOME}/pkg | | 30 | LOCALBASE= ${HOME}/pkg |
31 | PKG_SYSCONFBASE= ${HOME}/pkg/etc | | 31 | PKG_SYSCONFBASE= ${HOME}/pkg/etc |
32 | VARBASE= ${HOME}/pkg/var | | 32 | VARBASE= ${HOME}/pkg/var |
33 | PKG_DBDIR= ${HOME}/pkg/var/db/pkg | | 33 | PKG_DBDIR= ${HOME}/pkg/pkgdb |
34 | </programlisting> | | 34 | </programlisting> |
35 | | | 35 | |
36 | <para>What these four directories are for, and what they look like is | | 36 | <para>What these four directories are for, and what they look like is |
37 | explained below.</para> | | 37 | explained below.</para> |
38 | | | 38 | |
39 | <itemizedlist> | | 39 | <itemizedlist> |
40 | | | 40 | |
41 | <listitem><para><varname>LOCALBASE</varname> corresponds to the | | 41 | <listitem><para><varname>LOCALBASE</varname> corresponds to the |
42 | <filename>/usr</filename> directory in the base system. It is the | | 42 | <filename>/usr</filename> directory in the base system. It is the |
43 | <quote>main</quote> directory where the files are installed and contains | | 43 | <quote>main</quote> directory where the files are installed and contains |
44 | the well-known subdirectories like <filename>bin</filename>, | | 44 | the well-known subdirectories like <filename>bin</filename>, |
45 | <filename>include</filename>, <filename>lib</filename>, | | 45 | <filename>include</filename>, <filename>lib</filename>, |
46 | <filename>share</filename> and | | 46 | <filename>share</filename> and |