pkg.soopen package index

brew / rank 1043

Install postgis with Homebrew, apk, apt, dnf, MacPorts, pacman, zypper

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

Additional install commands

macOS

Homebrewverified · 100%
brew install postgis

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install postgis

MacPorts ports tree · databases/postgis/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add postgis

Alpine Linux edge package indexes · postgis · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install postgis

Debian stable package indexes · postgis · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install postgis

Fedora Rawhide package metadata · postgis · source: dl.fedoraproject.org

Arch Linux pacmanverified · 92%
sudo pacman -S postgis

Arch Linux sync databases · postgis · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install postgresql14-postgis

openSUSE Tumbleweed package metadata · postgresql14-postgis · source: download.opensuse.org

overview

Package summary

Adds support for geographic objects to PostgreSQL

Commands and aliases

  • create_upgrade.pl
  • pgsql2shp
  • pgtopo_export
  • pgtopo_import
  • postgis
  • postgis_restore
  • profile_intersects.pl
  • raster2pgsql
  • shp2pgsql
  • test_estimation.pl
  • test_geography_estimation.pl
  • test_geography_joinestimation.pl
  • test_joinestimation.pl

history

Project history and usage

PostGIS is the spatial extension for PostgreSQL, adding geographic data types, spatial indexes, analysis functions, and import/export utilities to the relational database.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2001: First public PostGIS pre-release.
  • 2005: PostGIS 1.0.0 released.
  • Later development: Geography, raster, topology, and broader spatial-processing facilities join the core geometry functionality.

Related projects

  • PostgreSQL supplies the database and extension framework in which PostGIS runs.
  • GEOS provides many geometric operations, PROJ handles coordinate transformations, and GDAL participates in raster support and data conversion.
  • GDAL and OGR provide documented workflows for moving raster and vector datasets between PostGIS and other geospatial formats.

security posture

No protected-tool coverage found yet

No matching local secret-handling manifest was found for postgis. Package metadata is still published here so future coverage has a stable package URL.

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 5 platform targets.
  • Installs with 12 runtime dependencies.
  • Build metadata lists 3 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
create_upgrade.plcliglobal executable
pgsql2shpcliglobal executable
pgtopo_exportcliglobal executable
pgtopo_importcliglobal executable
postgiscliglobal executable
postgis_restorecliglobal executable
profile_intersects.plcliglobal executable
raster2pgsqlcliglobal executable
shp2pgsqlcliglobal executable
test_estimation.plcliglobal executable
test_geography_estimation.plcliglobal executable
test_geography_joinestimation.plcliglobal executable
test_joinestimation.plcliglobal executable

freshness

Version and 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.

page generated2026-11-04
manager version3.7.0
manager updated2026-10-30
local dataok
upstreamnot checked
latest detectednot detected

https://postgis.net/

  • infoRelease/tag comparison is only available for GitHub repositories.https://postgis.net/none confidence

install metadata

Package metadata

Package keybrew:postgis
Version3.7.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/postgis
Homepagehttps://postgis.net/
Upstream docshttps://postgis.net/
LicenseGPL-2.0-or-later
Source archivehttps://download.osgeo.org/postgis/source/postgis-3.7.0.tar.gz
Last updated2026-10-30T07:11:00Z
Pulseupdated
Dependenciesgdal, geos, gettext, gmp, icu4c@79, json-c, libpq, libxml2, pcre2, proj, protobuf-c, sfcgal
Build dependenciespkgconf, postgresql@17, postgresql@18
Uses from macOSperl
Bottleavailable (on arm64_golden_gate, arm64_linux, arm64_sequoia, arm64_tahoe, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namepostgis
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

postgis 3.5.2+dfsg-1

Geographic objects support for PostgreSQL

https://postgis.net/

sudo apt install postgis
  • Section: misc
  • Architecture: amd64
  • 6 dependencies
  • 2 optional deps
  • normalized package name match
  • Matched by: Postgis
Debian stable package indexes · deb.debian.org · Debian stable package indexes: postgis from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

postgis-doc 3.5.2+dfsg-1

Geographic objects support for PostgreSQL -- documentation

https://postgis.net/

sudo apt install postgis-doc
  • Section: doc
  • Architecture: all
  • Source Package: postgis
  • 1 optional deps
  • normalized package name match
  • Matched by: Postgis
Debian stable package indexes · deb.debian.org · Debian stable package indexes: postgis-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

postgresql-17-postgis-3 3.5.2+dfsg-1

Geographic objects support for PostgreSQL 17

https://postgis.net/

sudo apt install postgresql-17-postgis-3
  • Section: misc
  • Architecture: amd64
  • Source Package: postgis
  • 13 dependencies
  • 1 provides
  • 1 optional deps
  • normalized package name match
  • Matched by: Postgis
Debian stable package indexes · deb.debian.org · Debian stable package indexes: postgresql-17-postgis-3 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

postgresql-17-postgis-3-scripts 3.5.2+dfsg-1

Geographic objects support for PostgreSQL 17 -- SQL scripts

https://postgis.net/

sudo apt install postgresql-17-postgis-3-scripts
  • Section: misc
  • Architecture: all
  • Source Package: postgis
  • 1 provides
  • 1 optional deps
  • normalized package name match
  • Matched by: Postgis
Debian stable package indexes · deb.debian.org · Debian stable package indexes: postgresql-17-postgis-3-scripts from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

postgresql-postgis 3.5.2+dfsg-1

Geographic objects support for PostgreSQL -- Metapackage

https://postgis.net/

sudo apt install postgresql-postgis
  • Section: metapackages
  • Architecture: amd64
  • Source Package: postgis
  • 2 dependencies
  • normalized package name match
  • Matched by: Postgis
Debian stable package indexes · deb.debian.org · Debian stable package indexes: postgresql-postgis from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

postgresql-postgis-scripts 3.5.2+dfsg-1

Geographic objects support for PostgreSQL -- SQL scripts metapackage

https://postgis.net/

sudo apt install postgresql-postgis-scripts
  • Section: misc
  • Architecture: all
  • Source Package: postgis
  • 1 dependencies
  • normalized package name match
  • Matched by: Postgis
Debian stable package indexes · deb.debian.org · Debian stable package indexes: postgresql-postgis-scripts from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

postgis 3.4.2+dfsg-1ubuntu3

Geographic objects support for PostgreSQL

https://postgis.net/

sudo apt install postgis
  • Section: universe/misc
  • Architecture: amd64
  • 6 dependencies
  • 2 optional deps
  • normalized package name match
  • Matched by: Postgis
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: postgis from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

postgis-doc 3.4.2+dfsg-1ubuntu3

Geographic objects support for PostgreSQL -- documentation

https://postgis.net/

sudo apt install postgis-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: postgis
  • 1 optional deps
  • normalized package name match
  • Matched by: Postgis
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: postgis-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

postgresql-16-postgis-3 3.4.2+dfsg-1ubuntu3

Geographic objects support for PostgreSQL 16

https://postgis.net/

sudo apt install postgresql-16-postgis-3
  • Section: universe/misc
  • Architecture: amd64
  • Source Package: postgis
  • 13 dependencies
  • 1 provides
  • 1 optional deps
  • normalized package name match
  • Matched by: Postgis
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: postgresql-16-postgis-3 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

postgresql-16-postgis-3-scripts 3.4.2+dfsg-1ubuntu3

Geographic objects support for PostgreSQL 16 -- SQL scripts

https://postgis.net/

sudo apt install postgresql-16-postgis-3-scripts
  • Section: universe/misc
  • Architecture: all
  • Source Package: postgis
  • 1 provides
  • 1 optional deps
  • normalized package name match
  • Matched by: Postgis
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: postgresql-16-postgis-3-scripts from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

postgresql-postgis 3.4.2+dfsg-1ubuntu3

Geographic objects support for PostgreSQL -- Metapackage

https://postgis.net/

sudo apt install postgresql-postgis
  • Section: universe/metapackages
  • Architecture: amd64
  • Source Package: postgis
  • 2 dependencies
  • normalized package name match
  • Matched by: Postgis
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: postgresql-postgis from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

postgresql-postgis-scripts 3.4.2+dfsg-1ubuntu3

Geographic objects support for PostgreSQL -- SQL scripts metapackage

https://postgis.net/

sudo apt install postgresql-postgis-scripts
  • Section: universe/misc
  • Architecture: all
  • Source Package: postgis
  • 1 dependencies
  • normalized package name match
  • Matched by: Postgis
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: postgresql-postgis-scripts from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

postgis 3.6.3-r1

spatial database extender for PostgreSQL object-relational database

https://postgis.net/

sudo apk add postgis
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: postgis
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Postgis
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: postgis from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

postgis-doc 3.6.3-r1

spatial database extender for PostgreSQL object-relational database (documentation)

https://postgis.net/

sudo apk add postgis-doc
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: postgis
  • normalized package name match
  • Matched by: Postgis
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: postgis-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

postgis 3.6.4-3.fc45

Open-source vector similarity search for Postgres

https://www.postgis.net

sudo dnf install postgis
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: postgresql18-postgis
  • 15 dependencies
  • 4 provides
  • normalized package name match
  • Matched by: Postgis
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: postgis from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/652278618dec9c023176a80c435a32a2c8154869fb0eb662c267a54df28d77d9-primary.xml.zst
pacman95%

postgis 3.6.4-1

A spatial database extender for PostgreSQL

https://postgis.net/

sudo pacman -S postgis
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • 14 dependencies
  • normalized package name match
  • Matched by: Postgis
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: postgis from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation