The latest source code and companion user doc releases are:
Can’t find your version listed here? it’s probably been EOL’d
Refer to our Version compatibility and EOL Policy for details.
Versions that have reached end of life can still be downloaded from PostGIS source tar balls.
Source code repository:
For platform specific compilation instructions refer to Compile and Install for various Operating Systems.
To build from source, you will need a complete installation of PostgreSQL, either built and installed from source itself, or including the development headers and utilities. For Linux users, that means installing the
postgresql-dev packages as well as the base packages.
tar xvzf postgis-2.5.2.tar.gz cd postgis-2.5.2 ./configure make make install