Debian Packages

Prebuilt Debian 9 “Stretch” packages are available from You can add this as a repository to your Debian Stretch installation and just do the normal routine installing software.


# Install tools
sudo apt-get install curl ca-certificates apt-transport-https

# Use official PostgreSQL repo,
echo "deb stretch-pgdg main" | sudo tee -a /etc/apt/sources.list.d/pgdg.list
curl | sudo apt-key add -

# Use credativ repo,
echo "deb stretch-stable main" | sudo tee -a /etc/apt/sources.list.d/elephant-shed.list
curl | sudo apt-key add -

# Install elephant-shed
sudo apt-get update
sudo apt-get install elephant-shed

# Choose desired PostgreSQL versions to install
sudo apt-get install postgresql-10

# Every user in the group "elephant-shed" is allowed to login at the portal
# Add all needed users to this group
sudo adduser <USERNAME> elephant-shed

Note: The packages only contain components and basic configurations. Tuning, user management and firewalling needs to done manually.