Installing unattended Postgres
Last updated
Was this helpful?
Last updated
Was this helpful?
Installing Postgres needs to compile the sources from scratch if you do not prefer a pre-compiled installer such as or . I generally prefer to use enterprise-db installer which I believe is one of the most complete installer for Postgres Database.
Simply go to the enterprise-db and select the environment and the version for your compiled Postgres installer.
After the download completes, copy the downloaded file to your remote OS, or on the server you want to do the installation. Unzip the files and start the installer with the following parameters.
This unattended mode does not need an X Window manager for the installing procedure and silently installs Postgres database. As you can also be aware of the --extract-only
option is set to true. I usually prefer to install the binaries and then create the databases with the createdb
option after running the initdb
for initializing the data directory as follows.
initdb -D <data directory>
createdb -O <role name> <database name>