Table of Contents Previous Next


5 Invoking the Installer from the Command Line : 5.2 Performing an Unattended Installation

To specify that the installer should run without user interaction, include the –-mode unattended command line option. In unattended mode, the installer uses one of the following sources for configuration parameters:
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. 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.
To start the installer in unattended mode, specify the ––mode unattended option on the command line.
postgres-version-windows.exe --mode unattended --superpassword database_superuser_password --servicepassword system_password
Include the --servicepassword option to specify an operating system password for the user installing PostgreSQL. Omitting the option may lead to authentication problems on some Windows systems, and enforced password policies may not accept the default password (postgres).
./ppasmeta-9.5.x.x-linux.run --mode unattended --superpassword database_superuser_password
The --superpassword option specifies a password for the database superuser. If you omit the option, the database superuser password defaults to postgres. The default password can be easily guessed by a potential intruder; be sure to provide a stronger password with the --superpassword option.
When you invoke the installer, include the --optionfile parameter, and the complete path to the configuration parameter file:
# ./postgres-version-platform.run ‑‑optionfile /$HOME/config_param

5 Invoking the Installer from the Command Line : 5.2 Performing an Unattended Installation

Table of Contents Previous Next