Verifying Solaris 11 version

Normally we would issue the uname -r to determine the version of Solaris installed on a system, and review the /etc/release file for the release.

To determine the release level:

$ uname -r
$ cat /etc/release
Oracle Solaris 11.1 SPARC

However, the above is a little granular and doesn't show the actually system version installed.

Starting with Solaris 11, best practices suggest that we use the output from pkg info to obtain more detailed information about the Solaris 11 os version such as the update level, SRU and build:

$ pkg info core-os
      Name: system/core-os
   Summary: Core Solaris
Description: Operating system core utilities, daemons, and configuration
  Category: System/Core
     State: Installed
 Publisher: solaris
   Version: 0.5.11
Build Release: 5.11
Packaging Date: Tue Jun 24 18:49:27 2014
      Size: 31.41 MB
      FMRI: pkg://solaris/system/core-os@0.5.11,5.11-

Or simply,

$ pkg list entire
entire (solaris) 0.5.11- i--

Or an even easier solution:

$ pkg info entire | grep Summary
   Summary: entire incorporation including Support Repository Update (Oracle Solaris