How to Install an IDR

  1. Make sure you do not have other IDRs installed that address this same problem.

    The following command lists the identifiers of all problems addressed by the IDR that you want to install:

    $ pkg contents -g idr1929.2.p5p -Ho value -t set -a name='*bug*' idr1929
    ['problemID1, 'problemID2']

    The following command lists all installed packages that address these same problems:

    $ pkg search -lo value,pkg.name problemID1 OR problemID2

    If any problem addressed by the IDR you want to install is also being addressed by an IDR that is currently installed, check whether the IDR you want to install will remove the installed IDR that addresses this same problem. Use the pkg list and pkg info commands or use the -nv options with the pkg install command to determine whether the older IDR will be removed by installing the new IDR. If both IDRs would be installed, contact your support representative.

  2. Add the package archive as a publisher origin.

    This step must be done so that non-global zones can access this repository. Even if this system does not have non-global zones, adding these packages to a configured publisher origin is best practice.

    $ pkg set-publisher -g idr1929.2.p5p solaris
    $ pkg publisher
    PUBLISHER   TYPE     STATUS P LOCATION
    solaris     origin   online F file:///var/share/repos/idr1929.2.p5p/
    solaris     origin   online F https://pkg.oracle.com/solaris/support/

    You might prefer to create a local repository for all your IDR packages. See Creating Package Repositories in Oracle Solaris 11.4. Make sure the pkg5srv user can access the repository content. Make sure non-global zones can access the repository content.

  3. Make sure this IDR can be installed on this system.

    The following pkg contents command shows that the IDR incorporates the media/internal package at version 5.11-0.175.2.9.0.3.2.1929.2.

    $ pkg contents -ro type,fmri -t depend idr1929
    TYPE        FMRI
    incorporate pkg:/system/install/media/internal@0.5.11,5.11-0.175.2.9.0.3.2.1929.2

    This IDR can be installed if the system has the media/internal package installed at version 5.11-0.175.2.9.0.3.2.

    The following command shows you what would be installed but does not actually perform the installation. Specify the -r option if this image has non-global zones. Notice that the installation operation displays release notes for the IDR. The release notes include the bug that is addressed by the IDR, the packages that are installed by the IDR package, and instructions for removing the IDR.

    $ pkg install -nvr idr1929
               Packages to install:         1
         Estimated space available:  31.42 GB
    Estimated space to be consumed: 122.34 MB
           Create boot environment:        No
    Create backup boot environment:        No
              Rebuild boot archive:        No
    
    Changed packages:
    solaris
      idr1929
        None -> 2,5.11:20150624T090120Z
    Release Notes:
      # Release Notes for IDR : idr1929
      # -------------------------------
    
      Release         : Solaris 11.2 SRU # 10.5.0
    
      Platform         : i386
    
      Bug(s) addressed     :
          16857802 : AI zlib download timeout should be longer
    
      Package(s) included     :
          pkg:/system/install/media/internal
    
      Removal instruction     :
      # /usr/bin/pkg uninstall -r idr1929
      If this IDR is installed on a system running Solaris 11.2 SRU9 or less, use
      this command to remove:
      # /usr/bin/pkg update --ignore-missing -r --reject 
    pkg:/system/install/media/internal@0.5.11,5.11-0.175.2.9.0.3.2:20150321T014312Z
    
      Generic Instructions     :
    
      1) If system is configured with 'Zones', ensure that
      IDR is available in a configured repository.
    
      Special Instructions for : idr1929
    
      None.
  4. Install the IDR.

    The output from the previous command shows that the idr1929 package would be installed. Note that if the system already has a version of idr1834 installed, then installation of idr1929 will be blocked. In that case, you should update idr1834 instead of installing idr1929. The result of updating idr1834 is that idr1929 is installed, as shown in Install a Superseding IDR.

    When you install an IDR, make sure a new BE or a backup BE will be created. If you have problems after you install the IDR, you can reboot to the old BE or the backup BE.

    The output of the previous command shows that no new BE and no backup BE will be created for this installation. The following command creates a backup BE before installing the IDR into the current BE:

    $ pkg install --backup-be-name pre-idr1929 idr1929