Transitioning From Oracle® Solaris 10 JumpStart to Oracle Solaris 11.2 Automated Installer

Exit Print View

Updated: July 2014
 
 

Converting Software Packages

JumpStart profiles use the cluster and package keywords to install software on the system. The cluster keyword is not supported by AI. Because in IPS the syntax to install an incorporation or group package is the same as the syntax to install any other package, if you simply change cluster to package in the JumpStart profile, the js2ai command creates the correct package installation specification in the AI manifest.


Tip  -  Verify the package names in the AI manifests. If a package specified for installation in an AI manifest is not available from any publisher origin specified in that AI manifest, then that client installation fails.

IPS package names are different from SVR4 package names. For example, the SVR4 package SUNWpampkcs11 is renamed to library/security/pam/module/pam-pkcs11 in IPS.

If an SVR4 package name exists in IPS, you can install the IPS package by using the SVR4 name. For example, if an AI manifest specifies installation of the SUNWpampkcs11 package, the library/security/pam/module/pam-pkcs11 package is automatically installed. In these cases, the package has been renamed.

If an SVR4 package name does not exist in IPS, you must change the package name or delete that specification from the AI manifest. For example, the SUNWCall and SUNWCuser packages have not been renamed in IPS. If the AI manifest specifies those packages, the installation fails.

Use the pkg list command on an Oracle Solaris 11 system to determine whether a particular package name can be used in your AI manifest. Be sure to use the –g option to list packages from an IPS package repository origin that is specified in the AI manifest.

The js2ai command uses the /usr/share/auto_install/manifest/default.xml AI manifest as a base to build a new AI manifest that includes specifications from the JumpStart profile file. This default AI manifest specifies installation of two packages that install the base operating system: entire and solaris-large-server. In addition to those two packages, you probably need to specify only the installation of additional tools and applications.

Example 2-1  Determining Whether a Package Name Can Be Used

In this example, the AI manifest specifies the http://pkg.oracle.com/solaris/release repository origin.

$ pkg list -af -g http://pkg.oracle.com/solaris/release SUNWCall SUNWCuser
pkg list: no packages matching 'SUNWCuser, SUNWCall' known

This message confirms that these two packages cannot be used in this AI manifest.

Example 2-2  Working With a Renamed Package

The pkg list command can also be used to identify packages that have been renamed.

$ pkg list -af -g http://pkg.oracle.com/solaris/release SUNWpampkcs11
NAME (PUBLISHER)                                        VERSION              IFO
SUNWpampkcs11                                           0.6.0-0.133          --r

The “r” in the last column indicates that this package is renamed. You can use this name in the AI manifest but you might want to use the pkg info command to determine the new name of the package.

See the “Renamed to” line in the following output. The SUNWpampkcs11 package has been renamed to library/security/pam/module/pam-pkcs11. You might want to specify library/security/pam/module/pam-pkcs11 in your AI manifest for greater compatibility with future Oracle Solaris updates.

$ pkg info -r SUNWpampkcs11
          Name: SUNWpampkcs11
       Summary: 
         State: Not installed (Renamed)
    Renamed to: library/security/pam/module/pam-pkcs11@0.6.0-0.133
                consolidation/sfw/sfw-incorporation
     Publisher: solaris
       Version: 0.6.0
 Build Release: 5.11
        Branch: 0.133
Packaging Date: Wed Oct 27 18:50:11 2010
          Size: 0.00 B
          FMRI: pkg://solaris/SUNWpampkcs11@0.6.0,5.11-0.133:20101027T185011Z
$ pkg info -r pam-pkcs11
          Name: library/security/pam/module/pam-pkcs11
       Summary: The OpenSC PKCS#11 PAM Login Tools
      Category: System/Security
         State: Not installed
     Publisher: solaris
       Version: 0.6.0
 Build Release: 5.11
        Branch: 0.175.2.0.0.27.0
Packaging Date: Mon Nov 11 17:47:35 2013
          Size: 1.74 MB
          FMRI: pkg://solaris/library/security/pam/module/pam-pkcs11@0...
        
Example 2-3  Working With an Obsolete Package

You might want to replace SUNWmysql with database/mysql-51 in your AI manifest.

$ pkg list -af -g http://pkg.oracle.com/solaris/release SUNWmysql
NAME (PUBLISHER)                                        VERSION              IFO
SUNWmysql                                               4.0.24-0.142         --o

The “o” in the last column indicates that this package is obsolete. This package name cannot be used in an AI manifest. Use the pkg list command with wildcards or the pkg search command to determine whether the package is available under a different name that can be used.

$ pkg list -af SUNWmysql*
NAME (PUBLISHER)                                        VERSION              IFO
SUNWmysql                                               4.0.24-0.142         --o
SUNWmysql-base                                          0.5.11-0.133         --r
SUNWmysql-python                                        0.5.11-0.162         --o
SUNWmysql-python26                                      0.5.11-0.133         --r
SUNWmysql5                                              5.0.86-0.171         --o
SUNWmysql5                                              5.0.86-0.133         --r
SUNWmysql51                                             5.1.37-0.133         --r
SUNWmysql51lib                                          5.1.37-0.133         --r
SUNWmysql51test                                         5.1.37-0.133         --r
SUNWmysql5jdbc                                          5.1.5-0.171          --o
SUNWmysql5jdbc                                          5.1.5-0.133          --r
SUNWmysql5test                                          5.0.86-0.171         --o
SUNWmysql5test                                          5.0.86-0.133         --r
SUNWmysqlt                                              4.0.24-0.142         --o
$ pkg info -r SUNWmysql51
          Name: SUNWmysql51
       Summary: 
         State: Not installed (Renamed)
    Renamed to: database/mysql-51@5.1.37-0.133
                consolidation/sfw/sfw-incorporation
     Publisher: solaris
       Version: 5.1.37
 Build Release: 5.11
        Branch: 0.133
Packaging Date: Wed Oct 27 18:49:18 2010
          Size: 0.00 B
          FMRI: pkg://solaris/SUNWmysql51@5.1.37,5.11-0.133:20101027T184918Z

You might want to replace SUNWmysql with database/mysql-51 in your AI manifest.