Hi there,
On 08/30/12 10:37 AM, David Sechrest wrote:
On a particular S11 GA system I have a package archive file, ac-archive.p5p,
that seems to contain a corrupt package that has multiple duplicated entires for
many of it's files. Here is an example of one of them:
# pkg list entire
NAME (PUBLISHER) VERSION IFO
entire 0.5.11-0.175.0.0.0.2.0 i--
# pkg contents -m -g ac-archive.p5p [email protected] | grep ib_showvnics.pl
file 0466fed613a9f2cdacfd6680ce05948eabc5b0a8
chash=e375e9eb697def956b2caea2eb3be64f34dcabdf group=sys mode=0755 owner=root
path=opt/sun/n1gc/bin/ib_showvnics.pl pkg.csize=1789 pkg.size=6578
file 0466fed613a9f2cdacfd6680ce05948eabc5b0a8
chash=e375e9eb697def956b2caea2eb3be64f34dcabdf group=sys mode=0755 owner=root
path=opt/sun/n1gc/bin/ib_showvnics.pl pkg.csize=1789 pkg.size=6578
file 0466fed613a9f2cdacfd6680ce05948eabc5b0a8
chash=e375e9eb697def956b2caea2eb3be64f34dcabdf group=sys mode=0755 owner=root
path=opt/sun/n1gc/bin/ib_showvnics.pl pkg.csize=1789 pkg.size=6578
# pkg contents -m -g ac-archive.p5p [email protected] | wc -l
555
So I got in touch with Dave off-list to see if I could get a copy of the
archive, and login to the machines he was seeing this on.
The reason he was seeing apparent duplicates, is that the publisher
configuration on the two machines is different. On the machine that
appears to have 'duplicate' entries, one of the remote publishers also
provides that package at that version.
The machine that didn't display the duplicates didn't have publishers
configured that contained that package.
That is,
timf@working[399] pkg list -af [email protected]
pkg list: no packages matching '[email protected]' known
timf@working[400]
vs.
root@broken # pkg list -af [email protected]
NAME (PUBLISHER) VERSION
IFO
<foo>/core-mgmt (mypublisher) 12.1.1.2083-0.1 ---
'pkg contents -g' also implies the '-r' option, so pkg is returning you
the contents of every instance of [email protected] it can find from
all remote publishers.
So disabling the publisher temporarily, we get the output we expect:
root@broken # pkg contents -m -g ac-archive.p5p [email protected] |
wc -l
555
root@broken # pkg set-publisher --disable mypublisher
root@broken # pkg contents -m -g ac-archive.p5p [email protected] |
wc -l
450
root@broken # pkg set-publisher --enable mypublisher
root@broken #
cheers,
tim
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss