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

Adds support for geographic objects to PostgreSQL. Version 3.6.4 via Homebrew; verified 2026-06-25.

## Install

```sh
sudo av install brew:postgis
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install postgis
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install postgis
```

  Evidence: MacPorts ports tree: databases/postgis/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add postgis
```

  Evidence: Alpine Linux edge package indexes: postgis from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install postgis
```

  Evidence: Debian stable package indexes: postgis from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install postgis
```

  Evidence: Fedora Rawhide package metadata: postgis from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- pacman (92%):

```sh
sudo pacman -S postgis
```

  Evidence: Arch Linux sync databases: postgis from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install postgresql14-postgis
```

  Evidence: openSUSE Tumbleweed package metadata: postgresql14-postgis from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:postgis
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/postgis>
- **Version:** 3.6.4
- **Source summary:** Adds support for geographic objects to PostgreSQL
- **Homepage:** <https://postgis.net/>
- **Repository:** <https://gitea.osgeo.org/postgis>
- **Upstream docs:** <https://postgis.net/docs/index.html>
- **License:** GPL-2.0-or-later
- **Source archive:** <https://download.osgeo.org/postgis/source/postgis-3.6.4.tar.gz>
- **Last updated:** 2026-06-25T13:38:02+02:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- create_upgrade.pl (cli)
- pgsql2shp (cli)
- pgtopo_export (cli)
- pgtopo_import (cli)
- postgis (cli)
- postgis_restore (cli)
- profile_intersects.pl (cli)
- raster2pgsql (cli)
- shp2pgsql (cli)
- test_estimation.pl (cli)
- test_geography_estimation.pl (cli)
- test_geography_joinestimation.pl (cli)
- test_joinestimation.pl (cli)
- create_upgrade.pl (alias)
- pgsql2shp (alias)
- pgtopo_export (alias)
- pgtopo_import (alias)
- postgis (alias)
- postgis_restore (alias)
- profile_intersects.pl (alias)
- raster2pgsql (alias)
- shp2pgsql (alias)
- test_estimation.pl (alias)
- test_geography_estimation.pl (alias)
- test_geography_joinestimation.pl (alias)
- test_joinestimation.pl (alias)

## Dependencies

- gdal
- geos
- gettext
- icu4c@78
- json-c
- libpq
- libxml2
- pcre2
- proj
- protobuf-c
- sfcgal

## Build dependencies

- pkgconf
- postgresql@17
- postgresql@18

## Uses from macOS

- perl

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 3.6.4
- Package-manager updated: 2026-06-25
- Local data: ok
- Upstream repository: https://postgis.net/
- info: Release/tag comparison is only available for GitHub repositories.

## Security Notes

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


## Source Database Details

- **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:** head, stable

## Other Package-Manager Records

- Debian apt - postgis - 3.5.2+dfsg-1: normalized package name match | Debian stable package indexes: postgis from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Geographic objects support for PostgreSQL | https://postgis.net/
- Debian apt - postgis-doc - 3.5.2+dfsg-1: normalized package name match | Debian stable package indexes: postgis-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Geographic objects support for PostgreSQL -- documentation | https://postgis.net/
- Debian apt - postgresql-17-postgis-3 - 3.5.2+dfsg-1: normalized package name match | Debian stable package indexes: postgresql-17-postgis-3 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Geographic objects support for PostgreSQL 17 | https://postgis.net/
- Debian apt - postgresql-17-postgis-3-scripts - 3.5.2+dfsg-1: normalized package name match | Debian stable package indexes: postgresql-17-postgis-3-scripts from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Geographic objects support for PostgreSQL 17 -- SQL scripts | https://postgis.net/
- Debian apt - postgresql-postgis - 3.5.2+dfsg-1: normalized package name match | Debian stable package indexes: postgresql-postgis from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Geographic objects support for PostgreSQL -- Metapackage | https://postgis.net/
- Debian apt - postgresql-postgis-scripts - 3.5.2+dfsg-1: normalized package name match | Debian stable package indexes: postgresql-postgis-scripts from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Geographic objects support for PostgreSQL -- SQL scripts metapackage | https://postgis.net/
- Ubuntu apt - postgis - 3.4.2+dfsg-1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: postgis from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Geographic objects support for PostgreSQL | https://postgis.net/
- Ubuntu apt - postgis-doc - 3.4.2+dfsg-1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: postgis-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Geographic objects support for PostgreSQL -- documentation | https://postgis.net/
- Ubuntu apt - postgresql-16-postgis-3 - 3.4.2+dfsg-1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: postgresql-16-postgis-3 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Geographic objects support for PostgreSQL 16 | https://postgis.net/
- Ubuntu apt - postgresql-16-postgis-3-scripts - 3.4.2+dfsg-1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: postgresql-16-postgis-3-scripts from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Geographic objects support for PostgreSQL 16 -- SQL scripts | https://postgis.net/
- Ubuntu apt - postgresql-postgis - 3.4.2+dfsg-1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: postgresql-postgis from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Geographic objects support for PostgreSQL -- Metapackage | https://postgis.net/
- Ubuntu apt - postgresql-postgis-scripts - 3.4.2+dfsg-1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: postgresql-postgis-scripts from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Geographic objects support for PostgreSQL -- SQL scripts metapackage | https://postgis.net/
- apk - postgis - 3.6.3-r0: normalized package name match | Alpine Linux edge package indexes: postgis from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | spatial database extender for PostgreSQL object-relational database | https://postgis.net/
- apk - postgis-doc - 3.6.3-r0: normalized package name match | Alpine Linux edge package indexes: postgis-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | spatial database extender for PostgreSQL object-relational database (documentation) | https://postgis.net/
- dnf - postgis - 3.6.4-1.fc45: normalized package name match | Fedora Rawhide package metadata: postgis from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Open-source vector similarity search for Postgres | https://www.postgis.net
- pacman - postgis - 3.6.3-1: normalized package name match | Arch Linux sync databases: postgis from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A spatial database extender for PostgreSQL | https://postgis.net/


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Database and data packages](https://www.automicvault.com/pkg/database-data-tools/) - Matched database, SQL, migration, or data-store metadata.
- [gdal](https://www.automicvault.com/pkg/brew/gdal/) - Runtime dependency declared by Homebrew.
- [geos](https://www.automicvault.com/pkg/brew/geos/) - Runtime dependency declared by Homebrew.
- [gettext](https://www.automicvault.com/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [libpq](https://www.automicvault.com/pkg/brew/libpq/) - Runtime dependency declared by Homebrew.
- [libxml2](https://www.automicvault.com/pkg/brew/libxml2/) - Runtime dependency declared by Homebrew.
- [pcre2](https://www.automicvault.com/pkg/brew/pcre2/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [postgresql@17](https://www.automicvault.com/pkg/brew/postgresql-17/) - Build dependency declared by Homebrew.
- [postgresql@18](https://www.automicvault.com/pkg/brew/postgresql-18/) - Build dependency declared by Homebrew.
- [osm2pgrouting](https://www.automicvault.com/pkg/brew/osm2pgrouting/) - Popular package that depends on this formula.
- [dexter](https://www.automicvault.com/pkg/brew/dexter/) - Shares av.db curated category or tags: cli, data, database, postgresql.
- [doltgres](https://www.automicvault.com/pkg/brew/doltgres/) - Shares av.db curated category or tags: cli, data, database, postgresql.
- [geoserver](https://www.automicvault.com/pkg/brew/geoserver/) - Shares av.db curated category or tags: cli, data, geospatial, gis.
- [h3](https://www.automicvault.com/pkg/brew/h3/) - Shares av.db curated category or tags: cli, data, geospatial, gis.
- [imposm3](https://www.automicvault.com/pkg/brew/imposm3/) - Shares av.db curated category or tags: cli, data, geospatial, postgresql.
- [kitchen-sync](https://www.automicvault.com/pkg/brew/kitchen-sync/) - Shares av.db curated category or tags: cli, data, database, postgresql.
- [lazysql](https://www.automicvault.com/pkg/brew/lazysql/) - Shares av.db curated category or tags: cli, data, database, postgresql.
- [mapserver](https://www.automicvault.com/pkg/brew/mapserver/) - Local package facts share a topical domain. Shared terms: cli, data, gdal, geos, geospatial.
- [mapnik](https://www.automicvault.com/pkg/brew/mapnik/) - Local package facts share a topical domain. Shared terms: cli, data, gdal, geospatial, gis.

## Combined YAML source

View the package source record on GitHub. [combined/postgis.yml](https://github.com/automic-vault/db/blob/main/combined/postgis.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
