Share this page: Follow me to be notified of new articles:

Step by step PostgreSQL 10 installation instructions for Debian/Ubuntu servers


PostgreSQL 10 was released on 05/10/2017.
Install PostgreSQL 10
Install PostgreSQL 10 step by step

Add the PostgreSQL repository to your sources

echo "deb $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list

Import the repository signing key

wget --quiet -O - | \
apt-key add -

Install PostgreSQL 10

apt-get update
apt-get -y install postgresql-10

Connection to PostgreSQL

su postgres
postgres@debian:/root$ psql
postgres=# SELECT version();
 PostgreSQL 10.0 on x86_64-pc-linux-gnu, compiled by gcc (Debian 4.9.2-10) 4.9.2, 64-bit
(1 row)
Last update of this page: October 5, 2017
Please do not copy any of the content of this website without asking me first.