Just to add a 'something else', unsure how fully it may suffice...
[details at the bottom]

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

From: Aristedes Maniatis <a...@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 PACKAGESITE 
in the other servers. This looks like it might work except that repo.txz is 
missing from  /var/cache/pkg/

2. rsync  /var/cache/pkg/ from the primary machine to the others. Set 
PACKAGESITE on all machines to point to some central repository where all these 
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 internet.


Thanks

<<Ari



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

portmaster?  [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 
portmaster, for migrating between machines.
[I set up an ftp server for similar functionality, but find this method quicker 
and
reconfigurable. YMMV of course depending upon the number/physical 
placment of your servers]

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


J. Bouquet

_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to