Bootstap pkg from dvd

Rick Miller vmiller at hostileadmin.com
Wed Sep 24 09:29:21 UTC 2014


On Tue, Sep 23, 2014 at 5:47 PM, Jason C. Wells <jasoncwells at gmail.com>
wrote:

> How can I bootstrap pkg from the package file that exists on my dvd? I
> don't have network access.
>
> I assumed I could simply execute:
>
> # pkg bootstrap -f /cdrom/.../pkg-1.2.7.txz
>
> But the bootstrapper tries to get the file off the network.



It does, indeed, try to get it off the network.  /etc/pkg/FreeBSD.conf is
the culprit here.

Edit the repo config to use a local repo via file:///blah/ though you may
experience challenges getting it to work properly due to the ISO's
read-only nature.

Not sure what your use case is, but for me, this was one of several
challenges I encountered that steered me to using a disk image (customized
mfsBSD) to perform automated, non-interactive network installs.

HTH

--
Rick


More information about the freebsd-questions mailing list