Installing Postgresql 9.5 on Debian 8 (Jessie)

Create the following file

/etc/apt/sources.list.d/pgdg.list

add the following line to it

deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | \
  sudo apt-key add -
sudo apt-get update

and then to install it simply run the following

apt-get install postgresql-9.5

Leave a Reply

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