The steps necessary to update your system differ depending on which repository you are using and on which version of the OS you are running. The following procedure helps you identify your starting point. The examples show ouput from various Oracle Solaris 11 release versions.
If you are using an internal repository, then use a URL that identifies the local repository. In this example, the Oracle Solaris support repository is the configured package source.
$ pkg publisher PUBLISHER TYPE STATUS URI solaris origin online https://pkg.oracle.com/solaris/support/
For a system without a support contract and using the Oracle Solaris release repository, the output would look like:
$ pkg publisher PUBLISHER TYPE STATUS URI solaris origin online http://pkg.oracle.com/solaris/release/
Use the uname command to display basic information about the system.
In this example, Oracle Solaris 11.1 is the installed OS.
$ uname -a SunOS solaris 5.11 11.1 sun4v sparc SUNW,T5240
In this example, Oracle Solaris 11.1 has SRU 18.4 installed:
175.1 indicates Oracle Solaris 11.1
18.0.4 indicates SRU 18.4.
$ pkg list entire NAME (PUBLISHER) VERSION IFO entire 0.5.11-0.175.1.18.0.4.0 i--
For the full FMRI, use the –v option:
$ pkg list -v entire FMRI IFO pkg://solaris/entire@0.5.11,5.11-0.175.1.18.0.4.0:20140401T195803Z i--
For more information about how to display package and license info, see Chapter 2, Getting Information About Software Packages in Adding and Updating Software in Oracle Solaris 11.3.
If your system has Oracle Solaris 11.1 installed without any SRUs, the package information looks like the following:
$ pkg list entire NAME (PUBLISHER) VERSION IFO entire 0.5.11-0.175.1.0.0.24.2 i--Example 2 Package Information Displayed for Oracle Solaris 11 11/11 With an SRU
If your system has Oracle Solaris 11 11/11 installed with an SRU, the package information looks like the following. In this example, Oracle Solaris 11 11/11 SRU 10.5 is installed.
$ pkg list entire NAME (PUBLISHER) VERSION IFO entire 0.5.11-0.175.0.10.0.5.0 i--Example 3 Package Information Displayed for Oracle Solaris 11 11/11 Without SRUs
If your system has Oracle Solaris 11 11/11 installed without any SRUs, the package information looks like the following:
$ pkg list entire NAME (PUBLISHER) VERSION IFO entire 0.5.11-0.175.0.0.0.2.0 i--