6.2 Performing an Unattended Installation

Table of Contents Previous Next


6 Invoking the Installer from the Command Line : 6.2 Performing an Unattended Installation

To specify that the installer should run without user interaction, include the --mode unattended command line option when invoking the installer. In unattended mode, the installer uses one of the following sources to determine option values:
You must have superuser privileges to install PostgreSQL using the --mode unattended option on a Linux or Mac system; on a Windows system, administrative privileges are required. To start the installer in unattended mode, use the command:
postgresql-version-platform.ext --mode unattended command_line_options
postgresql-version-platform.ext specifies the name of the PostgreSQL installer.
command_line_options specifies one or more of the options listed in Section 7.
If you are using the --mode unattended option to install PostgreSQL with another installer, the calling installer must be invoked with superuser or administrative privileges.
Please note: on Windows, it's a good practice to use the --servicepassword option to specify an operating system password for the user installing PostgreSQL. Omitting the option may lead to authentication problems, and enforced password policies on a Windows host may not accept the default password (postgres).

6 Invoking the Installer from the Command Line : 6.2 Performing an Unattended Installation

Table of Contents Previous Next