On 01/ 4/11 03:50 PM, Robert Milkowski wrote: > Hi, > > In older Solaris releases when a sysadmin downloads a patch there is a README > file associated with it which lists bug fixes addressed by this and all > previous > releases of the patch. I think that similar information should be provided in > IPS packages. Right now it is more of a black-box approach - there is a new > kernel package (or any other) but I can't really easily tell of what value (if > any) the new version is to me. > For example: > > # pkg publisher > PUBLISHER TYPE STATUS URI > solaris (preferred) origin online https://pkg.oracle.com/solaris/support/ > # pkg list -avf 'pkg://solaris/system/kernel' > FMRI STATE UFOXI > pkg://solaris/system/[email protected],5.11-0.151.0.1.1:20101211T005037Z installed > ----- > pkg://solaris/system/[email protected],5.11-0.151.0.1:20101105T002924Z known u---- > # > So I image-update'ed a server and I can see that new system/kernel package has > been applied. However how can I: > > - easily compare between these two packages on what files have changed? > I think that something like 'pkg diff fmri_1 fmri_2'which would list > what > is different between two packages (files > changed, new files, deleted files, etc.) would be very helpful.
It's not quite that easy yet, but: pkg contents -rm system/[email protected],5.11-0.151.0.1:20101105T002924Z > /tmp/old pkg contents -rm system/[email protected],5.11-0.151.0.1.1 > /tmp/new pkgdiff /tmp/old /tmp/new | less Unfortunately, due to the way the support repo packages are versioned, to compare SRU1 vs. 2010.11 original requires using the timestamp, since just "0.151.0.1" will match the newest package containing that version, which would be SRU1's 0.151.0.1.1, so you'll need to find the right timestamp for each package you want to compare against, since they weren't all built at the exact same time. It does seem like it would be a useful RFE to pkgdiff to take a fmri argument to get the contents itself. > - old Solaris patches provided a list of bug/rfe fixes included in each > release. Right now I applied a new > system/kernel package and I have really no idea what it introduced. I > think that a new pkg subcommand which > would provide all included bug fixes + short description addressed in a > given package would be great + an ability > to see only bug fixed introduced between specific versions, something > like: > > # pkg info --release-notes > pkg://solaris/system/[email protected],5.11-0.151.0.1.1:20101211T005037Z > > * 0.5.11,5.11-0.151.0.1.1:20101211T005037Z > 123457 New VM2.0 subsystem introduced > > * 0.5.11,5.11-0.151.0.1:20101105T002924Z > 123456 ZFS encryption > 123455 ZIL Synchronicity It's not integrated to the pkg command, but there is a README available for the support downloads at: https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=REFERENCE&id=1275533.1 There is some metadata published in the packages in the support repo as well, for instance: % pkg contents -r -t set -a name=com.oracle.service.bugid -o pkg.fmri,value system/kernel PKG.FMRI VALUE pkg://solaris/system/[email protected],5.11-0.151.0.1.1:20101211T005037Z 6834183 so you can narrow down a bit which bug ids are likely to be fixed in various packages from the list in the README. -- -Alan Coopersmith- [email protected] Oracle Solaris Platform Engineering: X Window System _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
