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 stretch-pgdg main' > /etc/apt/sources.list.d/pgdg.list
wget --quiet -O - | \
  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 *

This site uses Akismet to reduce spam. Learn how your comment data is processed.