Installing Postgresql 9.6 on Debian 9 (Stretch)

Debian 9 does not have Postgresql 9.6 in its default repository, but we can install it by adding the default Postgresql repository. Below are the commands needed to install Postgresql 9.6

echo 'deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main' > /etc/apt/sources.list.d/pgdg.list
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | \
  sudo apt-key add -
sudo apt-get update
apt install postgresql-9.6

Leave a Reply

Your email address will not be published. Required fields are marked *