Robert Milkowski wrote:
Shawn Walker wrote:
Emanuele Pucciarelli wrote:
Hi Mark,
mirror for a network of machines without internet connectivity. Is it
possible to create a mirror including all metadata, removing the need
for any contact with pkg.opensolaris.org when installing/upgrading
packages?
I have carried out some limited testing with
http://pastebin.com/f22f2754d , which is a simple script that
downloads the latest version of each package and republishes it on a
local repository, thus effectively building a local mirror with all
metadata. It seems to me that it's working fine. I'm willing to polish
the rough edges (or rewrite it) with you or anyone who is interested
in that.
This will break in the near future, and we politely ask folks to not
use scripts such as these.
Can you elaborate more on why?
It will break because catalogs are changing in the near future.
We also politely ask people not to use tools other than the ones we
offer because the package servers aren't provisioned for the brute-force
mirroring approach that most scripts employ.
We're aware that it's inconvenient for users on development releases to
not have convenient access to a mirror, but in the meantime, only
pkgrecv should be used, and as sparingly as possible.
That's why repository ISOs are the preferred form of distribution;
they're far easier and cheaper to provision (think CDN distribution, etc).
Also note that all of the package operations (excluding search) should
be proxy-cacheable in the near future, and when that happens, users can
simply set up squid for caching package server responses, which would be
far more efficient and preferable to the scripting solutions.
Cheers,
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss