This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Documentation / Mathematica / Getting Started / Network SysAdmin Guide / Installation on Unix / Installing Mathematica on Unix /

3.3.3 Installation Options

The following options are available using the MathInstaller command.

-auto. Causes the installation to proceed automatically without prompting the user for any information. Default values are used for any options that are not specified explicitly on the command line.

-createddir=value. Specifies if any directories required for the installation should be created if they do not exist. The allowed values are y or n, with y as the default value. This option only works with an automatic installation (that is, when one of the options -auto or -silent is also specified).

-execdir=dir. Specifies the path to be used for the executable scripts. The default is /usr/local/bin. This option only works with an automatic installation.

-method=value. Specifies the type of installation to be performed. The allowed values are Full and Minimal with Full as the default value. This option only works with an automatic installation.

-overwrite=value. Specifies if the installer should overwrite any files that already exist in the target directory. The allowed values are y or n, with y as the default value. This option only works with an automatic installation.

-platforms=value. Specifies the system ID of the Unix platform (e.g., Linux, Solaris, and so forth) for which you want to do the installation. The default value is the system you are installing on, if that information is available to the installer. This option only works with an automatic installation.

-silent. Forces an automatic installation (equivalent to using the -auto option) and suppresses any output from being displayed on the screen. The output is instead written to a file named InstallerLog-number. If the installation is unsuccessful, the log file is saved in the /tmp directory. Otherwise, the file is moved to the target directory and renamed InstallerLog.

-targetdir=dir. Specifies the directory where the installed files will be copied. This corresponds to the value of the global variable $InstallationDirectory. The default value is /usr/local/Wolfram/Mathematica/5.0. This option only works with an automatic installation.

-verbose. Prints out detailed information about the files and directories being installed.

-help. Prints out information on the installer options.

By using these options, you can customize various features of the installation process. For example, if you are installing Mathematica on multiple machines in a lab, it can be time-consuming to respond to all the installer prompts, on each individual machine. You can simplify the installation process by running a command like the following:

./MathInstaller -auto -targetdir=/home/mathematica

This allows you to complete the installation automatically in one step, while still being able to customize various details such as the directory to install to. If you are doing many installations, you might find it convenient to include the MathInstaller command with all the relevant options specified, in a shell script. Running the shell script is then an easy way to do an identical customized installation on multiple machines.