Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Feb 2013 20:02:50 -0800 (PST)
From:      Jeffrey Bouquet <jeffreybouquet@yahoo.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: Share /var/cache/pkg/ between machines
Message-ID:  <1361851370.62400.YahooMailClassic@web164006.mail.gq1.yahoo.com>
In-Reply-To: <512C249B.4090401@ish.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
Just to add a 'something else', unsure how fully it may suffice...
[details at the bottom]

--- On Mon, 2/25/13, Aristedes Maniatis <ari@ish.com.au> wrote:

From: Aristedes Maniatis <ari@ish.com.au>
Subject: Share /var/cache/pkg/ between machines
To: freebsd-ports@freebsd.org
Date: Monday, February 25, 2013, 6:57 PM

I'd like to share packages between a couple of nearly identical machines in=
 a server farm. I think I have the following options:

1. Set up apache httpd on one primary machine to serve the packages to the =
others by pointing website root to to /var/cache/pkg/ and setting PACKAGESI=
TE in the other servers. This looks like it might work except that repo.txz=
 is missing from=A0 /var/cache/pkg/

2. rsync=A0 /var/cache/pkg/ from the primary machine to the others. Set PAC=
KAGESITE on all machines to point to some central repository where all thes=
e packages originally were built (we run poudriere in another location).

3. Something else


How do other people cache/proxy built packages under pkgng? I don't want to=
 <<have to pull the same 80Mb JDK package onto 10 machines across the inter=
net.


Thanks

<<Ari



>>-- -------------------------->
>>Aristedes Maniatis

portmaster?=A0 [Cannot directly answer the post question, but...]

If you put /portmatster-download/ on /da0 (a thumbdrive)
mount -t unionfs /dev/da0 /usr/ports/packages...
then the thumbdrive packages will appear to be already downloaded to=20
portmaster, for migrating between machines.
[I set up an ftp server for similar functionality, but find this method qui=
cker and
reconfigurable. YMMV of course depending upon the number/physical=20
placment of your servers]

Sorry to not answer about /pkg/, not fully implemented on most machines, he=
re.
[portmaster -d -B -P -i -g category/port category/port... or scripted equiv=
alent in
pkg or shell syntax.]
I've seen it handily upgrade thirty p5 ports at a stretch using a pipe... j=
ust because
a thumbdrive was in place, where otherwise it would mean duplicate builds e=
tc.


J. Bouquet




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1361851370.62400.YahooMailClassic>