Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Oct 2013 02:57:50 -0400
From:      "illoai@gmail.com" <illoai@gmail.com>
To:        David Newman <dnewman@networktest.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: (de)centralized ports management with portsnap
Message-ID:  <CAHHBGkokNqpG%2BuzjkcQtsWRFRF27w9mqtB1uckByZ4BsYFaGoA@mail.gmail.com>
In-Reply-To: <526AE110.9030105@networktest.com>
References:  <526AC748.6010805@networktest.com> <CAHHBGkqRQBcs1RKKaysMgfd8TiuiVgch6PkwB8uF6FRKo%2BUZyA@mail.gmail.com> <526AE110.9030105@networktest.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 25 October 2013 17:22, David Newman <dnewman@networktest.com> wrote:
> On 10/25/13 2:18 PM, illoai@gmail.com wrote:
>> On 25 October 2013 15:32, David Newman <dnewman@networktest.com> wrote:
>>> I'm setting up a group of FreeBSD servers that use 'portsnap fetch' and
>>> then 'portsnap update' to refresh their ports trees.
>>>
>>> Can I set up a local master to avoid pulling updates multiple times? If
>>> portsnap isn't the right tool for this, what is?
>>>
>>> Apologies if this has been asked before; this seems like a standard
>>> problem, but I didn't see an answer in a web search, the portsnap
>>> manpage, or in the Michael W. Lucas FreeBSD book.
>>
>> It's probably simplest to simply pull with one machine & then use
>> rsync or some such to push the updates out to the client machines
>> which would then run "portsnap update" as needed.
>
> Thanks. What directories would get rsync'd over for the updates? Is it
> really as simple as just copying over /usr/ports to each machine?
>

Distfiles become unwieldy after a while, but, yes, copying /usr/ports
would work fine, as would copying /var/db/portsnap.  I'm not sure
which would have a lower headache factor.  Using rsync to copy
the whole ports tree will involve a lot of checking.  Copying the
portsnap directory, while much lighter/simpler, will involve running
'portsnap update' on each of the machines, though.

-- 
--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHHBGkokNqpG%2BuzjkcQtsWRFRF27w9mqtB1uckByZ4BsYFaGoA>