Adding and Updating Software in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

Renamed and Obsolete Packages

In the following example, the “r” in the O column indicates that the package has been renamed, and the “o” in the O column indicates that the package is obsolete.

$ pkg list -n developer/dtrace/toolkit database/mysql-50 web/amp
NAME (PUBLISHER)                  VERSION                  IFO
database/mysql-50                 5.0.91-0.171             --o
developer/dtrace/toolkit          0.99-0.173.0.0.0.1.0     --r
web/amp                           0.5.11-0.174.0.0.0.0.0   --r

None of these packages is installable. If you try to install an obsolete package, the installation fails with the message that no updates are necessary for this image. If you try to install a renamed package, the system attempts to install the package to which the renamed package has been renamed.

Use the pkg info command to determine the new name of a renamed package. Use the -r option to query the configured package repositories because the package is not installed. See the “Renamed to” line, as shown in the following example:

$ pkg info -r web/amp
          Name: web/amp
       Summary:
         State: Not installed (Renamed)
    Renamed to: group/feature/amp@0.5.11-0.174.0.0.0.0.0
                consolidation/ips/ips-incorporation
     Publisher: solaris
       Version: 0.5.11
 Build Release: 5.11
        Branch: 0.174.0.0.0.0.0
Packaging Date: September 21, 2011 07:15:02 PM
          Size: 5.45 kB
          FMRI: pkg://solaris/web/amp@0.5.11,5.11-0.174.0.0.0.0.0:20110921T191502Z

If you try to install the web/amp package, the group/feature/amp package will be installed instead if it is not already installed and if it can be installed in this image.

In the following example, the “Renamed to” package is already installed, so the packaging system reports that no updates are necessary.

$ pkg info -r developer/dtrace/toolkit
          Name: developer/dtrace/toolkit
       Summary:
         State: Not installed (Renamed)
    Renamed to: pkg:/system/dtrace/dtrace-toolkit@0.99,5.11-0.173.0.0.0.0.0
                consolidation/osnet/osnet-incorporation
     Publisher: solaris
       Version: 0.99
 Build Release: 5.11
        Branch: 0.173.0.0.0.1.0
Packaging Date: August 26, 2011 02:55:51 PM
          Size: 5.45 kB
          FMRI: pkg://solaris/developer/dtrace/toolkit@0.99,5.11-0.173.0.0.0.1.0:20110826T145551Z
$ pkg list dtrace-toolkit
NAME (PUBLISHER)                  VERSION                  IFO
system/dtrace/dtrace-toolkit      0.99-0.175.2.0.0.34.0    i--
$ pkg install developer/dtrace/toolkit
No updates necessary for this image.