macOS
brew install postgislocal Homebrew formula metadata
sudo port install postgisMacPorts ports tree · databases/postgis/Portfile · source: api.github.com
brew / rank 1043
Adds support for geographic objects to PostgreSQL. Version 3.7.0 via Homebrew; verified 2026-10-30. Also installable with debian: sudo apt install postgis.
install
brew install postgislocal Homebrew formula metadata
sudo port install postgisMacPorts ports tree · databases/postgis/Portfile · source: api.github.com
sudo apk add postgisAlpine Linux edge package indexes · postgis · source: dl-cdn.alpinelinux.org
sudo apt install postgisDebian stable package indexes · postgis · source: deb.debian.org
sudo dnf install postgisFedora Rawhide package metadata · postgis · source: dl.fedoraproject.org
sudo pacman -S postgisArch Linux sync databases · postgis · source: geo.mirror.pkgbuild.com
sudo zypper install postgresql14-postgisopenSUSE Tumbleweed package metadata · postgresql14-postgis · source: download.opensuse.org
overview
Adds support for geographic objects to PostgreSQL
history
PostGIS is the spatial extension for PostgreSQL, adding geographic data types, spatial indexes, analysis functions, and import/export utilities to the relational database.
Refractions Research created PostGIS as a spatial database technology research project. The first public pre-release appeared on May 31, 2001, initially with primitive documentation and without data loading.
PostGIS reached 1.0 in April 2005 after a long release-candidate period. That release introduced a smaller, faster on-disk representation and tighter PostgreSQL integration, marking its transition from an experimental extension into durable database infrastructure.
The project subsequently expanded beyond vector geometry to include geography, raster, topology, address standardization, and a broad spatial SQL reference while remaining governed by the PostGIS development community under OSGeo.
PostGIS grew from a Refractions Research spatial-database project into a central component of the open-source GIS stack. It is packaged across major Unix-like systems and is commonly used behind desktop GIS, mapping servers, application APIs, and geospatial ETL pipelines.
Database administrators enable PostGIS in a PostgreSQL database as an extension. Application and GIS users then store points, lines, polygons, geography values, and rasters; create spatial indexes; and run spatial predicates, measurements, transformations, and joins in SQL.
The package also supplies utilities such as `shp2pgsql`, `pgsql2shp`, `raster2pgsql`, and `postgis_restore` for data loading, extraction, and migration. PostGIS settings are PostgreSQL GUCs rather than a separately documented PostGIS configuration file.
PostGIS is a defining example of PostgreSQL's extension model: a package installation adds substantial domain-specific data types, indexes, SQL functions, upgrade machinery, and command-line loaders to an existing database platform.
Its packaging connects PostgreSQL with a native geospatial dependency stack that includes GEOS, PROJ, and GDAL. Compatibility between those components, database-extension upgrade paths, and dump/restore tooling makes PostGIS particularly significant to distribution maintainers and database operators.
security posture
No matching local secret-handling manifest was found for postgis. Package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
create_upgrade.pl | cli | global executable | |
pgsql2shp | cli | global executable | |
pgtopo_export | cli | global executable | |
pgtopo_import | cli | global executable | |
postgis | cli | global executable | |
postgis_restore | cli | global executable | |
profile_intersects.pl | cli | global executable | |
raster2pgsql | cli | global executable | |
shp2pgsql | cli | global executable | |
test_estimation.pl | cli | global executable | |
test_geography_estimation.pl | cli | global executable | |
test_geography_joinestimation.pl | cli | global executable | |
test_joinestimation.pl | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:postgis |
|---|---|
| Version | 3.7.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/postgis |
| Homepage | https://postgis.net/ |
| Upstream docs | https://postgis.net/ |
| License | GPL-2.0-or-later |
| Source archive | https://download.osgeo.org/postgis/source/postgis-3.7.0.tar.gz |
| Last updated | 2026-10-30T07:11:00Z |
| Pulse | updated |
| Dependencies | gdal, geos, gettext, gmp, icu4c@79, json-c, libpq, libxml2, pcre2, proj, protobuf-c, sfcgal |
| Build dependencies | pkgconf, postgresql@17, postgresql@18 |
| Uses from macOS | perl |
| Bottle | available (on arm64_golden_gate, arm64_linux, arm64_sequoia, arm64_tahoe, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | postgis |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
postgis 3.5.2+dfsg-1
Geographic objects support for PostgreSQL
sudo apt install postgispostgis-doc 3.5.2+dfsg-1
Geographic objects support for PostgreSQL -- documentation
sudo apt install postgis-docpostgresql-17-postgis-3 3.5.2+dfsg-1
Geographic objects support for PostgreSQL 17
sudo apt install postgresql-17-postgis-3postgresql-17-postgis-3-scripts 3.5.2+dfsg-1
Geographic objects support for PostgreSQL 17 -- SQL scripts
sudo apt install postgresql-17-postgis-3-scriptspostgresql-postgis 3.5.2+dfsg-1
Geographic objects support for PostgreSQL -- Metapackage
sudo apt install postgresql-postgispostgresql-postgis-scripts 3.5.2+dfsg-1
Geographic objects support for PostgreSQL -- SQL scripts metapackage
sudo apt install postgresql-postgis-scriptspostgis 3.4.2+dfsg-1ubuntu3
Geographic objects support for PostgreSQL
sudo apt install postgispostgis-doc 3.4.2+dfsg-1ubuntu3
Geographic objects support for PostgreSQL -- documentation
sudo apt install postgis-docpostgresql-16-postgis-3 3.4.2+dfsg-1ubuntu3
Geographic objects support for PostgreSQL 16
sudo apt install postgresql-16-postgis-3postgresql-16-postgis-3-scripts 3.4.2+dfsg-1ubuntu3
Geographic objects support for PostgreSQL 16 -- SQL scripts
sudo apt install postgresql-16-postgis-3-scriptspostgresql-postgis 3.4.2+dfsg-1ubuntu3
Geographic objects support for PostgreSQL -- Metapackage
sudo apt install postgresql-postgispostgresql-postgis-scripts 3.4.2+dfsg-1ubuntu3
Geographic objects support for PostgreSQL -- SQL scripts metapackage
sudo apt install postgresql-postgis-scriptspostgis 3.6.3-r1
spatial database extender for PostgreSQL object-relational database
sudo apk add postgispostgis-doc 3.6.3-r1
spatial database extender for PostgreSQL object-relational database (documentation)
sudo apk add postgis-docpostgis 3.6.4-3.fc45
Open-source vector similarity search for Postgres
sudo dnf install postgispostgis 3.6.4-1
A spatial database extender for PostgreSQL
sudo pacman -S postgissource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.