Ed McKnight wrote:
OK, odd corner case: I'd like to see if a particular file in a particular package contains a particular change before I install that package. Any hints or is this impossible?

There's no built-in command to do this, but here's an example:

1) look at the manifest for the package and get the hash of the file you're interested in:

http://pkg.opensolaris.org/release/manifest/0/BRCMbnx%400.5.11%2C5.11-0.101%3A20081104T040010Z

...
file 0b34411d9153d6b0e9d40b000966286648e9c3a6 chash=1718b038127ae7268b259f527f3187c9e9993f05 elfarch=i386 elfbits=64 elfhash=a0e01f2e1fbd4b2d42624891c76beb5e8a0d6a7f group=sys mode=0755 opensolaris.zone=global owner=root path=kernel/drv/amd64/bnx pkg.csize=241107 pkg.size=566352 reboot_needed=true
...

2) retrieve the file by hash name:

wget http://pkg.opensolaris.org/release/file/0/0b34411d9153d6b0e9d40b000966286648e9c3a6

3) view the contents using the hash name:

gzcat 0b34411d9153d6b0e9d40b000966286648e9c3a6 | less

Cheers,
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to