- Timestamp:
- 11/08/2023 09:30:59 AM (11 months ago)
- Branches:
- 12.1, 12.1-rc1, 12.2, 12.2-rc1, multilib, trunk, xry111/arm64, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/update-glibc
- Children:
- a161ad9, f6bf77de
- Parents:
- 93311f4
- git-author:
- Xi Ruoyao <xry111@…> (11/08/2023 09:27:10 AM)
- git-committer:
- Xi Ruoyao <xry111@…> (11/08/2023 09:30:59 AM)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/pkgmgt.xml
r93311f4 rd11686c 197 197 special program to manage the packages. Each package is installed in a 198 198 separate directory. For example, package foo-1.1 is installed in 199 <filename class='directory'>/ usr/pkg/foo-1.1</filename>200 and a symlink is made from <filename>/ usr/pkg/foo</filename> to201 <filename class='directory'>/ usr/pkg/foo-1.1</filename>. When199 <filename class='directory'>/opt/foo-1.1</filename> 200 and a symlink is made from <filename>/opt/foo</filename> to 201 <filename class='directory'>/opt/foo-1.1</filename>. When 202 202 a new version foo-1.2 comes along, it is installed in 203 <filename class='directory'>/ usr/pkg/foo-1.2</filename> and the previous203 <filename class='directory'>/opt/foo-1.2</filename> and the previous 204 204 symlink is replaced by a symlink to the new version.</para> 205 205 206 206 <para>Environment variables such as <envar>PATH</envar>, 207 <envar>LD_LIBRARY_PATH</envar>, <envar>MANPATH</envar>, 208 <envar>INFOPATH</envar> and <envar>CPPFLAGS</envar> need to be expanded to 209 include <filename>/usr/pkg/foo</filename>. If you install more than a few packages, 210 this scheme becomes unmanageable.</para> 211 207 <envar>MANPATH</envar>, <envar>INFOPATH</envar>, 208 <envar>PKG_CONFIG_PATH</envar>, <envar>CPPFLAGS</envar>, 209 <envar>LDFLAGS</envar>, and the configuration file 210 <filename>/etc/ld.so.conf</filename> may need to be expanded to 211 include the corresponding subdirectories in 212 <filename class='directory'>/opt/foo-x.y</filename>.</para> 213 214 <para> 215 This scheme is used by the BLFS book to install some very large 216 packages to make it easier to upgrade them. If you install more 217 than a few packages, this scheme becomes unmanageable. And some 218 packages (for example Linux API headers and Glibc) may not work well 219 with this scheme. 220 <emphasis role='bold'>Never use this scheme system-wide.</emphasis> 221 </para> 212 222 </sect3> 213 223
Note:
See TracChangeset
for help on using the changeset viewer.