[nycbug-talk] pkg_add and precompiled repositories

mlists at bizintegrators.com mlists
Fri Aug 13 19:41:34 EDT 2004


On Fri, Aug 13, 2004 at 03:40:38PM -0400, George Georgalis wrote:
> I was looking at my 2Gb mirror of OpenBSD/packages/i386/ and the pkg_add
> man and wondering about a better way.
> 
> Apparently you can specify a URL with the pkg_add command or use the
> environmental PKG_PATH to specify local directories (delimited by
> double colon) to search for the package, but is there no convention to
> specify a URL as a repository???

export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/3.5/packages/i386/
pkg_add ${PKG_PATH}package-x.y.z.tgz

Should do dependencies as well.

Works with http also.

> 
> I'd assume not put (and maintain) 2GB per host for the luxury of
> convenient package installs; NFS is an (undesired) option, but wouldn't
> it be much simpler to maintain one local repository and set a URL in
> PKG_PATH to ftp that box?
> 

You could keep in local depository only packages that you need,
instead of all 2GB.

Instead of NFS, you could use HTTP.





More information about the talk mailing list