Adding and Updating Software in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

Identifying Participants in a Mediation

Use the pkg mediator command to display the preferred versions of all mediated links in the image.

In the following output, MEDIATOR is the name of the set of links that share the same preferred link path. VER. SRC. and IMPL. SRC. show whether the preferred version was selected by the system, was selected according to an assigned priority (vendor or site) or was set by an administrator (local). VERSION is the version of the selected mediation participant, which should be similar to the version of the software that the link represents. The VERSION is set by the package developer. IMPLEMENTATION is a string that can be set by the package developer in addition to or instead of the version string.

$ pkg mediator
MEDIATOR    VER. SRC. VERSION IMPL. SRC. IMPLEMENTATION
gcc-runtime system    4.7     system
java        system    1.7     system
php         system    5.2     system
python      vendor    2.6     vendor
ruby        system    1.9     system

The -a option shows all mediation participants. Use this option to show your choices if you want to select a different preferred version. The following example shows all participants in the java mediation. The system keywords indicate that the preferred version in this mediation is not specified with a priority setting in the package and was not set by an administrator: The packaging system selected the version with the higher VERSION value as the preferred version.

$ pkg mediator -a java
MEDIATOR    VER. SRC. VERSION IMPL. SRC. IMPLEMENTATION
java        system    1.7     system
java        system    1.6     system

The following output confirms that two different versions of the Java Runtime Environment are installed in this image and version 1.7.0_51 is the currently selected preferred version:

$ pkg list -s '*jre*'
NAME (PUBLISHER)        SUMMARY
runtime/java/jre-6      Java(TM) Platform Standard Edition Runtime Environment (1.6.0_71-b12)
runtime/java/jre-7      Java Platform Standard Edition Runtime Environment (1.7.0_51-b13)
$ java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) Server VM (build 24.51-b03, mixed mode)

Both the jre-6 and jre-7 packages define a symbolic link whose path is /usr/bin/java. In the jre-6 package, the target of the link is jdk1.6.0. In the jre-7 package, the target of the link is jdk1.7.0. The pkg mediator and java -version commands above show that version 1.7 is currently the preferred version, the target of the /usr/bin/java link.