Page MenuHomeFreeBSD

D5654.diff
No OneTemporary

D5654.diff

Index: en_US.ISO8859-1/books/handbook/ports/chapter.xml
===================================================================
--- en_US.ISO8859-1/books/handbook/ports/chapter.xml
+++ en_US.ISO8859-1/books/handbook/ports/chapter.xml
@@ -708,6 +708,60 @@
<screen>&prompt.root; <userinput>pkg install -Rf <replaceable>graphics/freeglut</replaceable></userinput></screen>
</note>
</sect2>
+
+ <sect2 xml:id="pkgng-dvd">
+ <title>Installing Packages from Media</title>
+
+ <para>Packages can be installed from media like
+ <acronym>DVD</acronym> disks or images. This does not
+ require network access so may be useful in offline
+ environments. It should be noted though that only a subset
+ of packages is available this way and the packages may be
+ outdated.</para>
+
+ <para>To use media as local package repository, first, mount it
+ into <filename>/dist</filename> (note that this path is fixed
+ and other mount points will not work):</para>
+
+ <screen>&prompt.root; <userinput>mkdir /dist</userinput>
+&prompt.root; <userinput>mount -t cd9660 /dev/cd0 /dist</userinput></screen>
+
+ <para>To point <application>pkg</application> to local
+ repository, set <envar>REPOS_DIR</envar> environment variable
+ to <filename>/dist/packages/repos</filename>, which
+ contains needed repository configuration file.
+ <application>pkg</application> may be used normally as long
+ as <envar>REPOS_DIR</envar> is set.</para>
+
+ <screen>&prompt.root; <userinput>env REPOS_DIR=/dist/packages/repos pkg install perl5</userinput>
+The package management tool is not yet installed on your system.
+Do you want to fetch and install it now? [y/N]: <userinput>y</userinput>
+Bootstrapping pkg from file:///dist/packages/freebsd:10:x86:64, please wait...
+Installing pkg-1.3.8_3: 100%
+Message for pkg-1.3.8_3:
+ If you are upgrading from the old package format, first run:
+
+ # pkg2ng
+Updating FreeBSD_install_cdrom repository catalogue...
+FreeBSD_install_cdrom repository is up-to-date.
+All repositories are up-to-date.
+Updating database digests format: 100%
+The following 1 packages will be affected (of 0 checked):
+
+New packages to be INSTALLED:
+ perl5: 5.16.3_11
+
+The process will require 47 MB more space.
+13 MB to be downloaded.
+
+Proceed with this action? [y/N]: y
+Checking integrity... done (0 conflicting)
+[1/1] Installing perl5-5.16.3_11: 100%</screen>
+
+ <para><application>pkg</application> has bootstrapped itself
+ and installed the requested package from the media without
+ using the network.</para>
+ </sect2>
</sect1>
<sect1 xml:id="ports-using">

File Metadata

Mime Type
text/plain
Expires
Thu, Aug 13, 10:05 AM (9 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36623765
Default Alt Text
D5654.diff (2 KB)

Event Timeline