Skip to content

Instantly share code, notes, and snippets.

@behboud
Created October 25, 2013 08:26
Show Gist options
  • Save behboud/7151328 to your computer and use it in GitHub Desktop.
Save behboud/7151328 to your computer and use it in GitHub Desktop.
install local postgis
sudo apt-get install postgresql-9.3 postgresql-contrib-9.3 postgresql-server-dev-9.3 postgresql-9.3-postgis-2.1
sudo -H -u postgres /usr/lib/postgresql/9.3/bin/pg_upgrade \
-b /usr/lib/postgresql/9.1/bin \
-B /usr/lib/postgresql/9.3/bin \
-d /var/lib/postgresql/9.1/main \
-D /var/lib/postgresql/9.3/main \
-o ' -c config_file=/etc/postgresql/9.1/main/postgresql.conf' \
-O ' -c config_file=/etc/postgresql/9.3/main/postgresql.conf'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment