Solaris 11 Patch History

The pkg operations install, update, list, search, etc are well known.

However, another excellent feature is the pkg history sub-command. Using <code;history you can take a look back and see what happened on your image.

root@sol11# pkg history | grep " update " | grep Succeeded
2012-02-06T15:48:44      update                   pkg                Succeeded
2012-05-25T16:41:11      update                   pkg                Succeeded
2012-09-20T06:12:54      update                   pkg                Succeeded
2013-01-16T10:50:14      update                   pkg                Succeeded
2013-03-21T13:17:50      update                   pkg                Succeeded
2013-09-18T13:36:44      update                   pkg                Succeeded
2013-12-23T11:06:20      update                   pkg                Succeeded
2014-05-02T14:27:15      update                   pkg                Succeeded
2014-10-28T11:25:41      update                   pkg                Succeeded
2015-01-15T09:54:24      update                   pkg                Succeeded
2015-05-18T09:32:13      update                   pkg                Succeeded

More information about a specific update can be obtained by using pkg history command with both the -t (time) and -l (long) options. This will provide you with information like, who did the update, which command was used, what packages were updated, and more.

For example, if we take the last entry from the above output:

root@sol11# pkg history -t 2015-05-18T09:32:13 -l
         Operation: update
           Outcome: Succeeded
            Reason: None
            Client: pkg
           Version: cd0e33569551
              User: root (0)
         Boot Env.: 11.2.7
    Boot Env. UUID: a3228a2e-f4c2-4a16-8de9-f0e567afb567
     New Boot Env.: 11.2.9
New Boot Env. UUID: 2ed77461-cf94-4ec2-b0de-c2e3289f0dd1
          Snapshot: (None)
        Start Time: 2015-05-18T09:32:13
          End Time: 2015-05-18T09:42:49
        Total Time: 0:10:36
           Command: /usr/bin/pkg update --accept --require-new-be --be-name 11.2.9 entire@0.5.11-
     Release Notes: No
       Start State:
Solver: [ Variables: 1025 Clauses: 9037 Iterations: 1 State: Succeeded]
Timings: [phase 1:  0.724, phase 2:  1.910, phase 3:  0.000, phase 4:  0.000, phase 5:  0.002, phase 6:  0.000, phase 7:  0.085, phase 8:  0.766, phase 9:  0.311, phase 10:  0.003, phase 11:  0.495, phase 12:  0.023, phase 13:  0.034, phase 14:  0.001, phase 15:  0.256, phase 16:  0.100]
Maintained incorporations: None

Package version changes:
pkg://solaris/driver/storage/mpt@0.5.11,5.11- -> pkg://solaris/driver/storage/mpt@0.5.11,5.11-
pkg://solaris/install/archive@0.5.11,5.11- -> pkg://solaris/install/archive@0.5.11,5.11-
[output truncated]
pkg://solaris/system/management/rad/client/rad-c@0.5.11,5.11- -> pkg://solaris/system/management/rad/client/rad-c@0.5.11,5.11-
None -> pkg://solaris/library/python-2/libxsl-27@1.1.28,5.11-
pkg://solaris/driver/network/wlan/wpi@0.5.11,5.11- -> pkg://solaris/driver/network/wlan/wpi@0.5.11,5.11-