This doc is based on Debian Wheezy
- Enable pinning to install packages from unstable
adding/creating file /etc/apt/preferences
Package: *
Pin: release a=stable
Pin-Priority: 700
Package: *
Pin: release a=testing
Pin-Priority: 650
Package: *
Pin: release a=unstable
Pin-Priority: 600
apt-get -t unstable install postgresql postgresql-contribapt-get -t unstable install pgadmin3apt-get install postgresql-9.3-pgq3apt-get install postgresql-server-dev-9.3apt-get -t unstable postgresql-9.3-postgisapt-get -t unstable install postgresql-9.3-postgis-scripts
svn co https://colab.mpi-bremen.de/postbis/svn/trunk postbis
cd postbis
make
make install
First create a vanilla database
createdb -E UTF8 -O renzo -T template0 -h 127.0.0.1 -U renzo megdb_2
create extension postgis;
create extension topology;
create extension rtpostgis;
createuser -L megdb_admin
createuser -S -R -D megxuser
Download newest megdb dev from https://dev-dav.megx.net/megdb/
This dump is based on an old version of PostGIS, therefore we need to apply the following update procedure on the dump file:
perl /usr/share/postgresql/9.3/contrib/postgis-2.1/postgis_restore.pl -v test-min-dev.dump | psql -h 127.0.0.1 megdb 2> error.log
see also 'Hard Upgrade' option in http://postgis.net/docs/postgis_installation.html
TODO
- check error log and enhance source DB