Sun Studio 12 Update 1 Installation Guide

Appendix A Command-Line Options for the Installer,Uninstaller,and install_patches Utility

Command-Line Options for the GUI Installer

The following command-line options are valid when you are starting the GUI installer.

--current-zone-only

Install only in the current zone. When you run the installer in the global zone, this option makes the installed product available only in that zone. 

--help

Display information on the options. 

--javahome directory

Use the JDK in directory when running the installer. This option is needed when the installer cannot locate a JDK in a standard location on your system, and you need to point it to one. 

--locale locale

Override the default locale for the installer with the specified locale. Valid locales are en (English), ja (Japanese), and zh (Simplified Chinese). This option is valid only for the multi-language installer.

--output output_file

Write all installer output to the specified file. 

--record state_file.xml

Record an installer session in the GUI installer so that you can use repeat the installation on another system with the non-GUI installer. This option is especially useful when you want to install a subset of the product components on multiple systems. 

--tempdir

By default, the installer extracts temporary data into the /tmp directory. If there is not sufficient space in the /tmp directory on your system, you can specify another directory for the installer to use.

--use-alternate-root directory

Install in the specified root directory instead of the default root directory /. Specify the full path of the directory to use as the alternate root. This option is valid only on systems running the Solaris OS.

--verbose

Write verbose output to the console. 

Command-Line Options for the Non-GUI Installer

The following command-line options are valid when you are starting the non-GUI installer.

--create-symlinks

Create symbolic links in the /usr/bin and /usr/share/man directories to the Sun Studio 12 Update 1 software and man pages. This option is valid only for the multi-language installer.

--current-zone-only

Install only in the current zone. When you run the installer in the global zone, this option makes the installed product visible only in that zone. 

-‐extract-installation-data directory

Extract installation data, do not perform installation. 

--help

Display information on the options. 

--install-all-locales

Install Sun Studio software for all locales. This option is valid only for the multi-language installer. 

--installation-location directory

Install Sun Studio software in the specified directory instead of in the default installation directory /opt. This option is valid only for the multi-language installer.

--javahome directory

Use the JDK in directory when running the installer. This option is needed when the installer cannot locate a JDK in a standard location on your system, and you need to point it to one. 

--non-interactive-accept-license

Accept the license agreement and start the installer in non-GUI mode. 

--print-license

Print the license agreement.  

--silent-logs-dir directory

Write the installer log file to the specified directory. 

-‐state state_file .xml

Play back the state file recorded by the GUI installer to silently repeat an installation session. This option lets you install a subset of the product components in non-GUI mode. 

--tempdir

By default, the installer extracts temporary data into the /tmp directory. If there is not sufficient space in the /tmp directory on your system, you can specify another directory for the installer to use.

--use-alternative-root directory

Install in the specified root directory instead of the default root directory /. Specify the full path of the directory to use as the alternate root. This option is valid only on systems running the Solaris OS and only for the multi-language installer.

--verbose

Write verbose output to the console. 

Command-Line Options for the Uninstaller

The following option is valid when starting the uninstaller.

--locale locale

Override the default locale for the uninstaller with the specified locale. Valid locales are en (English), ja (Japanese), and zh (Simplified Chinese). This option is valid only for the multi-language GUI uninstaller.

-‐non-interactive

Run the uninstaller in non-GUI mode and uninstall installed components of the software. 

--output output_file

Write all uninstaller output to the specified file. This option is valid only for the GUI uninstaller. 

--use-alternative-root directory

Uninstall from the specified root directory instead of the default root directory /.

Command-Line Options for the install_patches.sh Utility

The following options are valid when starting the install_patches.sh utility.

-G

Add patches to packages in the current zone only. When you run the utility in the global zone, this option makes the patches available in that zone only. 

-p

Install Sun Studio product patches if available. If you specify this option and no product patches are available, the utility displays a message telling you so. This option is valid only for the multi-language installer. 

-l locale

Override the default locale for the utility with the specified locale. This option is valid only for the multi-language installer. Valid locales are en (English), ja (Japanese), and zh (Simplified Chinese).

-R directory

Install patches in the specified root directory instead of the default root directory /. Specify the full path of the directory to use as the alternate root.

-h

Display information on the options.