[csw-maintainers] mirroring a subset of pkgs
Daniel Pocock
daniel at opencsw.org
Sat Dec 17 05:07:32 CET 2011
On 16/12/11 18:25, Dagobert Michelsen wrote:
> Hi Peter,
>
> Am 16.12.2011 um 10:41 schrieb Peter Bonivart:
>
>> On Fri, Dec 16, 2011 at 8:11 AM, Daniel Pocock <daniel at opencsw.org> wrote:
>>
>>> pkgutil has the ability to run in download-only mode and collect
>>> packages for installation later/on other machines
>>>
>>> However, it then becomes necessary to manually pkgadd each pkg.gz on the
>>> target machine - potentially a painful process
>>>
>> But it does output all the commands necessary to pkgadd the packages
>> in the correct order. You shouldn't have to do more than copy'n'paste
>> that.
>>
> The resulting thing to be transfered could include a generated install
> script and an admin file together with the packages bundles up as tar
> or self-installing .sh or something to make things easier.
>
>
>
I ran pkgutil for coreutils in download only mode to test this
The output (see below) appears to have the package list in the right
order, but it doesn't give the commands to run
Even so, the approach I have provided for building a mirror is still
quite valid for a subset of the catalog, because after I have built my
`mini-mirror', I may not want to install every downloaded package on
every target machine - I may still want pkgutil to just pick some of the
packages and their dependencies when I am on each target host.
E.g. on some hosts, I want gangliaweb (which depends on rrdtool and
gangliaagent and it's dependencies), but on other hosts I just want
gangliaagent (and not rrdtool, apache, etc)
daniel at lt2:~/csw/pkgutil-trunk$ ./pkgutil -d -y -t
http://mirror.opencsw.org/opencsw/unstable -T i386:5.10 -P /tmp/pkgs
coreutils
You're not root and didn't set -W, using home dir.
=> Fetching new catalog and descriptions
(http://mirror.opencsw.org/opencsw/unstable/i386/5.10) if available ...
--2011-12-17 12:00:55--
http://mirror.opencsw.org/opencsw/unstable/i386/5.10/catalog
Resolving mirror.opencsw.org... 131.188.40.82, 2001:638:a00:28::52
Connecting to mirror.opencsw.org|131.188.40.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 677820 (662K) [text/plain]
Saving to:
`/home/daniel/.pkgutil/catalog.mirror.opencsw.org_opencsw_unstable_i386_5.10.tmp'
100%[======================================>] 677,820 238K/s in
2.8s
2011-12-17 12:00:59 (238 KB/s) -
`/home/daniel/.pkgutil/catalog.mirror.opencsw.org_opencsw_unstable_i386_5.10.tmp'
saved [677820/677820]
--2011-12-17 12:00:59--
http://mirror.opencsw.org/opencsw/unstable/i386/5.10/descriptions
Resolving mirror.opencsw.org... 131.188.40.82, 2001:638:a00:28::52
Connecting to mirror.opencsw.org|131.188.40.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 198440 (194K) [text/plain]
Saving to:
`/home/daniel/.pkgutil/descriptions.mirror.opencsw.org_opencsw_unstable_i386_5.10.tmp'
100%[======================================>] 198,440 93.8K/s in
2.1s
2011-12-17 12:01:02 (93.8 KB/s) -
`/home/daniel/.pkgutil/descriptions.mirror.opencsw.org_opencsw_unstable_i386_5.10.tmp'
saved [198440/198440]
==> 3442 packages loaded from
/home/daniel/.pkgutil/catalog.mirror.opencsw.org_opencsw_unstable_i386_5.10
=> Fetching new catalog and descriptions
(http://mirror.opencsw.org/opencsw/testing/i386/5.10) if available ...
--2011-12-17 12:01:02--
http://mirror.opencsw.org/opencsw/testing/i386/5.10/catalog
Resolving mirror.opencsw.org... 131.188.40.82, 2001:638:a00:28::52
Connecting to mirror.opencsw.org|131.188.40.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 627107 (612K) [text/plain]
Saving to:
`/home/daniel/.pkgutil/catalog.mirror.opencsw.org_opencsw_testing_i386_5.10.tmp'
100%[======================================>] 627,107 221K/s in
2.8s
2011-12-17 12:01:06 (221 KB/s) -
`/home/daniel/.pkgutil/catalog.mirror.opencsw.org_opencsw_testing_i386_5.10.tmp'
saved [627107/627107]
--2011-12-17 12:01:06--
http://mirror.opencsw.org/opencsw/testing/i386/5.10/descriptions
Resolving mirror.opencsw.org... 131.188.40.82, 2001:638:a00:28::52
Connecting to mirror.opencsw.org|131.188.40.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 180223 (176K) [text/plain]
Saving to:
`/home/daniel/.pkgutil/descriptions.mirror.opencsw.org_opencsw_testing_i386_5.10.tmp'
100%[======================================>] 180,223 102K/s in
1.7s
2011-12-17 12:01:08 (102 KB/s) -
`/home/daniel/.pkgutil/descriptions.mirror.opencsw.org_opencsw_testing_i386_5.10.tmp'
saved [180223/180223]
==> 3172 packages loaded from
/home/daniel/.pkgutil/catalog.mirror.opencsw.org_opencsw_testing_i386_5.10
Solving needed dependencies ...
Solving dependency order ...
Package list:
CSWcas-texinfo-1.42,REV=2010.11.26 (opencsw/unstable)
CSWcommon-1.5,REV=2010.12.11 (opencsw/unstable)
CSWcoreutils-8.13,REV=2011.09.10 (opencsw/unstable)
CSWggettext-data-0.18.1.1,p,REV=2011.03.15 (opencsw/unstable)
CSWiconv-1.14,REV=2011.08.08 (opencsw/unstable)
CSWlibcharset1-1.14,REV=2011.08.07 (opencsw/unstable)
CSWlibgcc-s1-4.6.2,REV=2011.12.05 (opencsw/unstable)
CSWlibgmp10-5.0.2,REV=2011.09.24 (opencsw/unstable)
CSWlibiconv2-1.14,REV=2011.08.07 (opencsw/unstable)
CSWlibintl8-0.18.1.1,p,REV=2011.03.15 (opencsw/unstable)
Total size: 10.1 MB
=> Fetching CSWcommon-1.5,REV=2010.12.11 (1/10) ...
--2011-12-17 12:01:08--
http://mirror.opencsw.org/opencsw/unstable/i386/5.10/common-1.5,REV=2010.12.11-SunOS5.8-i386-CSW.pkg
Resolving mirror.opencsw.org... 131.188.40.82, 2001:638:a00:28::52
Connecting to mirror.opencsw.org|131.188.40.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 22528 (22K) [application/octet-stream]
Saving to: `/tmp/pkgs/common-1.5,REV=2010.12.11-SunOS5.8-i386-CSW.pkg.tmp'
100%[======================================>] 22,528 32.1K/s in
0.7s
2011-12-17 12:01:10 (32.1 KB/s) -
`/tmp/pkgs/common-1.5,REV=2010.12.11-SunOS5.8-i386-CSW.pkg.tmp' saved
[22528/22528]
=> Fetching CSWlibiconv2-1.14,REV=2011.08.07 (2/10) ...
--2011-12-17 12:01:10--
http://mirror.opencsw.org/opencsw/unstable/i386/5.10/libiconv2-1.14,REV=2011.08.07-SunOS5.9-i386-CSW.pkg.gz
Resolving mirror.opencsw.org... 131.188.40.82, 2001:638:a00:28::52
Connecting to mirror.opencsw.org|131.188.40.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1350101 (1.3M) [application/x-gzip]
Saving to:
`/tmp/pkgs/libiconv2-1.14,REV=2011.08.07-SunOS5.9-i386-CSW.pkg.gz.tmp'
100%[======================================>] 1,350,101 379K/s in
3.5s
2011-12-17 12:01:14 (379 KB/s) -
`/tmp/pkgs/libiconv2-1.14,REV=2011.08.07-SunOS5.9-i386-CSW.pkg.gz.tmp'
saved [1350101/1350101]
=> Fetching CSWlibcharset1-1.14,REV=2011.08.07 (3/10) ...
--2011-12-17 12:01:14--
http://mirror.opencsw.org/opencsw/unstable/i386/5.10/libcharset1-1.14,REV=2011.08.07-SunOS5.9-i386-CSW.pkg.gz
Resolving mirror.opencsw.org... 131.188.40.82, 2001:638:a00:28::52
Connecting to mirror.opencsw.org|131.188.40.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 21914 (21K) [application/x-gzip]
Saving to:
`/tmp/pkgs/libcharset1-1.14,REV=2011.08.07-SunOS5.9-i386-CSW.pkg.gz.tmp'
100%[======================================>] 21,914 31.2K/s in
0.7s
2011-12-17 12:01:15 (31.2 KB/s) -
`/tmp/pkgs/libcharset1-1.14,REV=2011.08.07-SunOS5.9-i386-CSW.pkg.gz.tmp'
saved [21914/21914]
=> Fetching CSWlibgcc-s1-4.6.2,REV=2011.12.05 (4/10) ...
--2011-12-17 12:01:15--
http://mirror.opencsw.org/opencsw/unstable/i386/5.10/libgcc_s1-4.6.2,REV=2011.12.05-SunOS5.10-i386-CSW.pkg.gz
Resolving mirror.opencsw.org... 131.188.40.82, 2001:638:a00:28::52
Connecting to mirror.opencsw.org|131.188.40.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 316023 (309K) [application/x-gzip]
Saving to:
`/tmp/pkgs/libgcc_s1-4.6.2,REV=2011.12.05-SunOS5.10-i386-CSW.pkg.gz.tmp'
100%[======================================>] 316,023 148K/s in
2.1s
2011-12-17 12:01:18 (148 KB/s) -
`/tmp/pkgs/libgcc_s1-4.6.2,REV=2011.12.05-SunOS5.10-i386-CSW.pkg.gz.tmp'
saved [316023/316023]
=> Fetching CSWggettext-data-0.18.1.1,p,REV=2011.03.15 (5/10) ...
--2011-12-17 12:01:18--
http://mirror.opencsw.org/opencsw/unstable/i386/5.10/ggettext_data-0.18.1.1,p,REV=2011.03.15-SunOS5.9-all-CSW.pkg.gz
Resolving mirror.opencsw.org... 131.188.40.82, 2001:638:a00:28::52
Connecting to mirror.opencsw.org|131.188.40.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 820540 (801K) [application/x-gzip]
Saving to:
`/tmp/pkgs/ggettext_data-0.18.1.1,p,REV=2011.03.15-SunOS5.9-all-CSW.pkg.gz.tmp'
100%[======================================>] 820,540 259K/s in
3.1s
2011-12-17 12:01:22 (259 KB/s) -
`/tmp/pkgs/ggettext_data-0.18.1.1,p,REV=2011.03.15-SunOS5.9-all-CSW.pkg.gz.tmp'
saved [820540/820540]
=> Fetching CSWiconv-1.14,REV=2011.08.08 (6/10) ...
--2011-12-17 12:01:22--
http://mirror.opencsw.org/opencsw/unstable/i386/5.10/iconv_stub-1.14,REV=2011.08.08-SunOS5.9-all-CSW.pkg.gz
Resolving mirror.opencsw.org... 131.188.40.82, 2001:638:a00:28::52
Connecting to mirror.opencsw.org|131.188.40.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13221 (13K) [application/x-gzip]
Saving to:
`/tmp/pkgs/iconv_stub-1.14,REV=2011.08.08-SunOS5.9-all-CSW.pkg.gz.tmp'
100%[======================================>] 13,221 18.9K/s in
0.7s
2011-12-17 12:01:23 (18.9 KB/s) -
`/tmp/pkgs/iconv_stub-1.14,REV=2011.08.08-SunOS5.9-all-CSW.pkg.gz.tmp'
saved [13221/13221]
=> Fetching CSWlibgmp10-5.0.2,REV=2011.09.24 (7/10) ...
--2011-12-17 12:01:23--
http://mirror.opencsw.org/opencsw/unstable/i386/5.10/libgmp10-5.0.2,REV=2011.09.24-SunOS5.9-i386-CSW.pkg.gz
Resolving mirror.opencsw.org... 131.188.40.82, 2001:638:a00:28::52
Connecting to mirror.opencsw.org|131.188.40.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 480818 (470K) [application/x-gzip]
Saving to:
`/tmp/pkgs/libgmp10-5.0.2,REV=2011.09.24-SunOS5.9-i386-CSW.pkg.gz.tmp'
100%[======================================>] 480,818 171K/s in
2.7s
2011-12-17 12:01:27 (171 KB/s) -
`/tmp/pkgs/libgmp10-5.0.2,REV=2011.09.24-SunOS5.9-i386-CSW.pkg.gz.tmp'
saved [480818/480818]
=> Fetching CSWlibintl8-0.18.1.1,p,REV=2011.03.15 (8/10) ...
--2011-12-17 12:01:27--
http://mirror.opencsw.org/opencsw/unstable/i386/5.10/libintl8-0.18.1.1,p,REV=2011.03.15-SunOS5.9-i386-CSW.pkg.gz
Resolving mirror.opencsw.org... 131.188.40.82, 2001:638:a00:28::52
Connecting to mirror.opencsw.org|131.188.40.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 66222 (65K) [application/x-gzip]
Saving to:
`/tmp/pkgs/libintl8-0.18.1.1,p,REV=2011.03.15-SunOS5.9-i386-CSW.pkg.gz.tmp'
100%[======================================>] 66,222 47.3K/s in
1.4s
2011-12-17 12:01:29 (47.3 KB/s) -
`/tmp/pkgs/libintl8-0.18.1.1,p,REV=2011.03.15-SunOS5.9-i386-CSW.pkg.gz.tmp'
saved [66222/66222]
=> Fetching CSWcas-texinfo-1.42,REV=2010.11.26 (9/10) ...
--2011-12-17 12:01:29--
http://mirror.opencsw.org/opencsw/unstable/i386/5.10/cas_texinfo-1.42,REV=2010.11.26-SunOS5.9-all-CSW.pkg.gz
Resolving mirror.opencsw.org... 131.188.40.82, 2001:638:a00:28::52
Connecting to mirror.opencsw.org|131.188.40.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1562 (1.5K) [application/x-gzip]
Saving to:
`/tmp/pkgs/cas_texinfo-1.42,REV=2010.11.26-SunOS5.9-all-CSW.pkg.gz.tmp'
100%[======================================>] 1,562 --.-K/s in
0s
2011-12-17 12:01:29 (4.49 MB/s) -
`/tmp/pkgs/cas_texinfo-1.42,REV=2010.11.26-SunOS5.9-all-CSW.pkg.gz.tmp'
saved [1562/1562]
=> Fetching CSWcoreutils-8.13,REV=2011.09.10 (10/10) ...
--2011-12-17 12:01:29--
http://mirror.opencsw.org/opencsw/unstable/i386/5.10/coreutils-8.13,REV=2011.09.10-SunOS5.9-i386-CSW.pkg.gz
Resolving mirror.opencsw.org... 131.188.40.82, 2001:638:a00:28::52
Connecting to mirror.opencsw.org|131.188.40.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7546399 (7.2M) [application/x-gzip]
Saving to:
`/tmp/pkgs/coreutils-8.13,REV=2011.09.10-SunOS5.9-i386-CSW.pkg.gz.tmp'
100%[======================================>] 7,546,399 1.82M/s in
5.9s
2011-12-17 12:01:36 (1.22 MB/s) -
`/tmp/pkgs/coreutils-8.13,REV=2011.09.10-SunOS5.9-i386-CSW.pkg.gz.tmp'
saved [7546399/7546399]
Packages downloaded to /tmp/pkgs:
common-1.5,REV=2010.12.11-SunOS5.8-i386-CSW.pkg (OK)
libiconv2-1.14,REV=2011.08.07-SunOS5.9-i386-CSW.pkg.gz (OK)
libcharset1-1.14,REV=2011.08.07-SunOS5.9-i386-CSW.pkg.gz (OK)
libgcc_s1-4.6.2,REV=2011.12.05-SunOS5.10-i386-CSW.pkg.gz (OK)
ggettext_data-0.18.1.1,p,REV=2011.03.15-SunOS5.9-all-CSW.pkg.gz (OK)
iconv_stub-1.14,REV=2011.08.08-SunOS5.9-all-CSW.pkg.gz (OK)
libgmp10-5.0.2,REV=2011.09.24-SunOS5.9-i386-CSW.pkg.gz (OK)
libintl8-0.18.1.1,p,REV=2011.03.15-SunOS5.9-i386-CSW.pkg.gz (OK)
cas_texinfo-1.42,REV=2010.11.26-SunOS5.9-all-CSW.pkg.gz (OK)
coreutils-8.13,REV=2011.09.10-SunOS5.9-i386-CSW.pkg.gz (OK)
More information about the maintainers
mailing list