Created
May 28, 2020 14:28
-
-
Save defaye/fb56b694f6c02b339546a254f4921640 to your computer and use it in GitHub Desktop.
Install PostGIS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update && sudo apt install -y postgis postgresql-10-postgis-2.4 | |
sudo -u postgres createuser postgis_test | |
sudo -u postgres createdb postgis_db -O postgis_test | |
sudo -u postgres psql -d postgis_db -c 'CREATE EXTENSION postgis' | |
sudo -u postgres psql -d postgis_db -c 'SELECT PostGIS_version()' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To run this command in one line: