Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anyone know what apt packages one should install for a postgres(8.4)/postgis(1.5) django (1.4) client on ubuntu 12.04?

All recipes seem to assume that I want to install the full postgres/postgis database server on the machine, but I have a external database server so I only want the packages that can connect to that.

For a full server I use:

apt-get install binutils gdal-bin libproj-dev postgresql-8.4-postgis postgresql-server-dev-8.4 python-psycopg2 python-setuptools
share|improve this question
For django, dont forget virtualenv :) – Ragi Yaser Burhum Nov 20 '12 at 15:37
up vote 2 down vote accepted

I've not tried it but try changing your apt-get to

apt-get install binutils gdal-bin libproj-dev postgresql-9.1-postgis postgresql-server-dev-9.1 python-psycopg2 python-setuptools

should do the trick. As its just the client its backwards compatible with older versions of postgresql.

postgresql-8.4-postgis is only available on lucid (10.04) the future releases (11.04) onwards use postgresql-9.1-postgis


apt-get install binutils gdal-bin libproj-dev postgis python-psycopg2 python-setuptools does the trick

share|improve this answer
Tried it, but postgresql-9.1-postgis also has postgresql-9.1 as an dependency. Is it possible to do this without that? – RickyA Nov 20 '12 at 13:46
Thinking about it can't you just use python3-postgresql you shouldn't need any of the postgis stuff apart from on the server. – Mark Davidson Nov 20 '12 at 13:50
Had a look if you just want the userland binaries, common files and documentation for postgis then you need to install postgis not postgresql-9.1-postgis – Mark Davidson Nov 20 '12 at 13:59
Found it: apt-get install binutils gdal-bin libproj-dev postgis python-psycopg2 python-setuptools – RickyA Nov 20 '12 at 14:31
Cool have updated my answer to reflect that. – Mark Davidson Nov 20 '12 at 14:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.