Dports from local disk (via NFS or otherwise)

Justin Sherrill justin at shiningsilence.com
Fri Jan 2 19:10:19 PST 2015


I am catching up to this way late, but the best way is probably: set
up a local server that mirrors some remote packagesite - like
mirror-master.  Point all other local machines at that one.

That way, you're only using bandwidth on your Internet link once, and
the rest of the updating happens on an as-needed basis on your
internal LAN which is probably higher-bandwidth/lower-usage-cost.

Without having tried it, the file:/// solution would probably work,
but if you're managing more than a few machines, having a local mirror
to point at is probably the best solution.

On Sat, Dec 27, 2014 at 8:51 AM, PeerCorps Trust Fund
<ipc at peercorpstrust.org> wrote:
> Hi All,
>
> What is the most recommended way to change the default DragonflyBSD package repository to a local disk that has all of the packages downloaded?
>
> From the HowToDPorts page my guess is that the following would work:
>
> ########################################
>
> vi /usr/local/etc/pkg.conf
>
> Change this:
> # Default Dports package server (California)
> PACKAGESITE: http://mirror-master.dragonflybsd.org/dports/${ABI}/LATEST
>
> To something like this:
> # Default Dports package server (disk)
> PACKAGESITE: file://<local/path/name/here>
>
> pkg update
>
> ########################################
>
> Is there a better or more recommended way to do this?



More information about the Users mailing list