From b7b2ca1e88a9903518719901eae753da41b2f3af Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Thu, 3 Feb 2022 10:51:04 +0000 Subject: [PATCH] point to correct postgres repo --- docs/setup-dev-environment.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/setup-dev-environment.md b/docs/setup-dev-environment.md index 5ce7e930..f50f322a 100644 --- a/docs/setup-dev-environment.md +++ b/docs/setup-dev-environment.md @@ -22,6 +22,14 @@ Now install python and related tools. `sudo apt-get install -y python3 python3-pip python3-dev python3-venv` +Set the postgres repo for apt. + +`sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'` + +`sudo wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -` + +`sudo apt-get update` + Next install postgres and postgis to enable support for geographical objects. `sudo apt-get install -y postgresql postgresql-contrib libpq-dev postgis postgresql-12-postgis-3`