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

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

## 安装

```sh
sudo av install brew:geos
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install geos
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install geos
```

  证据: MacPorts ports tree: science/geos/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add geos
```

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

- dnf (92%):

```sh
sudo dnf install geos
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#geos
```

  证据: nixpkgs package indexes: pkgs/by-name/ge/geos/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S geos
```

  证据: Arch Linux sync databases: geos from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install geos
```

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

- Debian apt (92%):

```sh
sudo apt install geos-bin
```

  证据: Debian stable package indexes: geos-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## 软件包事实

- **软件包键:** brew:geos
- **软件包管理器:** Homebrew
- **版本:** 3.14.1
- **来源摘要:** Geometry Engine
- **主页:** <https://libgeos.org/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- geos-config (别名)
- geosop (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 3.14.1
## 项目历史与用法

GEOS, the Geometry Engine, Open Source, is a C and C++ computational-geometry library focused on algorithms used in GIS software. It implements the OGC Simple Features geometry model, spatial predicates and operations, spatial indexes, WKT and WKB I/O, and C and C++ APIs.

### 项目历史

GEOS began as a direct C++ port of the Java JTS Topology Suite and remains closely tied to JTS. The project documentation says most core algorithms are developed in JTS and ported to GEOS after completion, while the two projects share testing data to distinguish implementation differences from algorithmic behavior.

GEOS is governed by a Project Steering Committee and is an OSGeo project. The official GitHub repository is the project source tree and includes the C API, C++ implementation, examples, Doxygen documentation, tools, and packaging metadata.

### 采用历史

GEOS became a central dependency in the open-source geospatial stack. The official site names PostGIS, QGIS, GDAL, Shapely, and many others as core users, while the repository README also names the R `sf` package. That adoption made GEOS the shared geometry engine underneath SQL, desktop GIS, Python, R, and data-processing workflows.

### 使用方式

Practitioners use GEOS through stable C API bindings, C++ code, or higher-level wrappers to compute intersections, unions, buffers, predicates such as contains and intersects, geometry validity, simplification, convex hulls, distances, areas, lengths, and spatial-index queries. Package users also get `geos-config` for compiler and linker flags and `geosop` as a command-line operator for GEOS geometry operations.

### 为什么软件包爱好者会关心

For package managers, GEOS is infrastructure: ABI stability of the C API matters because many dependent packages dynamically link to it. A GEOS upgrade can affect PostGIS, GDAL, QGIS, Shapely, R `sf`, and language bindings, so distributions treat it as a foundational geospatial library rather than a leaf package.

### 时间线

- JTS origin: GEOS started as a direct C++ port of the JTS Topology Suite.
- OSGeo governance: GEOS became an OSGeo project run by a Project Steering Committee.
- 2025: The official citation entry described GEOS as an Open Source Geospatial Foundation computational geometry library.

### Related projects

- Related projects include JTS Topology Suite, PostGIS, QGIS, GDAL, Shapely, R `sf`, and language bindings that expose GEOS operations outside C and C++.

### 来源

- <https://github.com/libgeos/geos>
- <https://libgeos.org/>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

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

- Debian apt - geos-bin - 3.13.1-1: normalized package name match | Debian stable package indexes: geos-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Geometry engine for Geographic Information Systems - Utilities | https://trac.osgeo.org/geos/
- Debian apt - libgeos++-dev - 3.13.1-1: normalized package name match | Debian stable package indexes: libgeos++-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Geometry engine for GIS - C++ development files | https://trac.osgeo.org/geos/
- Debian apt - libgeos-c1t64 - 3.13.1-1: normalized package name match | Debian stable package indexes: libgeos-c1t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Geometry engine for Geographic Information Systems - C Library | https://trac.osgeo.org/geos/
- Debian apt - libgeos-dev - 3.13.1-1: normalized package name match | Debian stable package indexes: libgeos-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Geometry engine for GIS - Development files | https://trac.osgeo.org/geos/
- Debian apt - libgeos-doc - 3.13.1-1: normalized package name match | Debian stable package indexes: libgeos-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Documentation for the GEOS GIS geometry engine library | https://trac.osgeo.org/geos/
- Debian apt - libgeos3.13.1 - 3.13.1-1: normalized package name match | Debian stable package indexes: libgeos3.13.1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Geometry engine for Geographic Information Systems - C++ Library | https://trac.osgeo.org/geos/
- Nix - geos: normalized package name match | nixpkgs package indexes: pkgs/by-name/ge/geos/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - geos-bin - 3.12.1-3build1: normalized package name match | Ubuntu 24.04 LTS package indexes: geos-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Geometry engine for Geographic Information Systems - Utilities | https://trac.osgeo.org/geos/
- Ubuntu apt - libgeos++-dev - 3.12.1-3build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libgeos++-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Geometry engine for GIS - C++ development files | https://trac.osgeo.org/geos/
- Ubuntu apt - libgeos-c1t64 - 3.12.1-3build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libgeos-c1t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Geometry engine for Geographic Information Systems - C Library | https://trac.osgeo.org/geos/
- Ubuntu apt - libgeos-dev - 3.12.1-3build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libgeos-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Geometry engine for GIS - Development files | https://trac.osgeo.org/geos/
- Ubuntu apt - libgeos-doc - 3.12.1-3build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libgeos-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Documentation for the GEOS GIS geometry engine library | https://trac.osgeo.org/geos/
- Ubuntu apt - libgeos3.12.1t64 - 3.12.1-3build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libgeos3.12.1t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Geometry engine for Geographic Information Systems - C++ Library | https://trac.osgeo.org/geos/
- apk - geos - 3.14.1-r0: normalized package name match | Alpine Linux edge package indexes: geos from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | GEOS is a library providing OpenGIS and JTS spatial operations in C++. | https://libgeos.org/
- apk - geos-dev - 3.14.1-r0: normalized package name match | Alpine Linux edge package indexes: geos-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | GEOS is a library providing OpenGIS and JTS spatial operations in C++. (development files) | https://libgeos.org/
- dnf - geos - 3.14.1-4.fc45: normalized package name match | Fedora Rawhide package metadata: geos from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | GEOS is a C++ port of the Java Topology Suite | http://trac.osgeo.org/geos/


## Combined YAML source

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


## 来源

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