Thorsten Heit wrote:

> Would it help to rsync pkg.opensolaris.org/dev according to [1] from, say, 
> a machine at my home that has direct Internet access, and copy these files 
> to the machine?

You could do that, but it'll be a lot of time for what's just a handful of
files.  To pick one example:

1: Invalid content for action with path usr/share/doc/ant/license.html:
chash failure: expected: 6a94235ed9911fc6da326108478d2fa69e025a37
computed: 2ee5cfac856d5534a3c73462af3f6e6e38ac7f8f. (happened 8 times)

We don't index by compressed hash, so there are a few steps:

    $ pkg search /usr/share/doc/ant/license.html   PACKAGE
    INDEX  ACTION  VALUE
    path   file    usr/share/doc/ant/license.html  pkg:/[email protected]
    $ pkg contents -r [email protected] | grep 
path=usr/share/doc/ant/license.html
    file 8112a13a742d2db13f496901b9029e888b09895f 
chash=6a94235ed9911fc6da326108478d2fa69e025a37 group=bin mode=0444 owner=root 
path=usr/share/doc/ant/license.html pkg.csize=7358 pkg.size=26886

from which you can confirm that this is the right file -- the "chash" tags
match.  Now you can pkgrecv just this one package on a machine where the
network will allow you to do that:

    $ pkgrecv -s http://pkg.opensolaris.org/dev/ -d file:///tmp/repo -k 
[email protected]

and do that for all the other packages where you're having issues.  Then
rsync /tmp/repo (or tar it up and copy the tar file) over to your work
machine and run a mirror on that directory:

    terminal-1$ /usr/lib/pkg.depotd --mirror -d /tmp/repo -p 10000
    terminal-2# pkg set-publisher -m http://localhost:10000/ opensolaris.org
    terminal-2# pkg install SUNWant

which may end up with some failures if it tries to contact
pkg.opensolaris.org to retrieve those files, but should at least fall back
to your mirror.  You could also just rsync /tmp/repo/file/ into
/var/pkg/download, which is simpler, if a bit less supported.

Danek
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to