Share /var/cache/pkg/ between machines

Dewayne Geraghty dewayne.geraghty at heuristicsystems.com.au
Tue Feb 26 05:11:30 UTC 2013


> -----Original Message-----
> From: owner-freebsd-ports at freebsd.org 
> [mailto:owner-freebsd-ports at freebsd.org] On Behalf Of 
> Aristedes Maniatis
> Sent: Tuesday, 26 February 2013 1:58 PM
> To: freebsd-ports at freebsd.org
> Subject: Share /var/cache/pkg/ between machines
> 
> 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
> ish
> http://www.ish.com.au
> Level 1, 30 Wilson Street Newtown 2042 Australia
> phone +61 2 9550 5001   fax +61 2 9550 4001
> GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 
> 102A _______________________________________________
> freebsd-ports at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to 
> "freebsd-ports-unsubscribe at freebsd.org"
Ari,

We've been doing 1. for a few years, including remote servers. The pkg_ suite suits our needs and will be retained until retired.
To reduce package sizes, we remove content that isn't required, such as: doc, include files, examples, content of share etc. But
this requires effort to get right and may not suit your needs.  

Portmaster maintains the ports collection.

Regards, Dewayne.



More information about the freebsd-ports mailing list