# 使用 Homebrew, apk, apt, dnf, MacPorts, pacman, zypper 安装 postgis

查看 postgis 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install postgis
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install postgis
```

  证据: 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
```

  证据: 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
```

  证据: 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
```

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

- pacman (92%):

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

  证据: 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
```

  证据: openSUSE Tumbleweed package metadata: postgresql14-postgis from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:postgis
- **软件包管理器:** Homebrew
- **版本:** 3.6.4
- **来源摘要:** Adds support for geographic objects to PostgreSQL
- **主页:** <https://postgis.net/>
- **最后更新:** 2026-08-02T12:51:37+01:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- 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 (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 3.6.4

## 安全说明

没有找到 postgis 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 其他软件包管理器记录

- 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-3.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Open-source vector similarity search for Postgres | https://www.postgis.net
- pacman - postgis - 3.6.4-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/


## Combined YAML source

View the package source record on GitHub. [combined/postgis.yml](https://github.com/mxcl/pkgdb/blob/main/combined/postgis.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
