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

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

## 安装

```sh
sudo av install brew:gdal
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gdal
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gdal
```

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

### Linux

- apk (92%):

```sh
sudo apk add gdal
```

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

- dnf (92%):

```sh
sudo dnf install gdal
```

  证据: Fedora Rawhide package metadata: gdal 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#gdal
```

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

- pacman (92%):

```sh
sudo pacman -S gdal
```

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

- zypper (92%):

```sh
sudo zypper install gdal
```

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

- Debian apt (92%):

```sh
sudo apt install gdal-bin
```

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

### Windows

- winget (92%):

```sh
winget install --id GISInternals.GDAL -e
```

  证据: Windows Package Manager source index: GISInternals.GDAL from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:gdal
- **软件包管理器:** Homebrew
- **版本:** 3.13.2
- **来源摘要:** Geospatial Data Abstraction Library
- **主页:** <https://gdal.org/en/stable/>
- **仓库:** <https://github.com/OSGeo/gdal>
- **最后更新:** 2026-08-03T05:15:38Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gdal (别名)
- gdal-config (别名)
- gdal2tiles (别名)
- gdal2tiles.py (别名)
- gdal2xyz (别名)
- gdal2xyz.py (别名)
- gdal_calc (别名)
- gdal_calc.py (别名)
- gdal_contour (别名)
- gdal_create (别名)
- gdal_edit (别名)
- gdal_edit.py (别名)
- gdal_fillnodata (别名)
- gdal_fillnodata.py (别名)
- gdal_footprint (别名)
- gdal_grid (别名)
- gdal_merge (别名)
- gdal_merge.py (别名)
- gdal_pansharpen (别名)
- gdal_pansharpen.py (别名)
- gdal_polygonize (别名)
- gdal_polygonize.py (别名)
- gdal_proximity (别名)
- gdal_proximity.py (别名)
- gdal_rasterize (别名)
- gdal_retile (别名)
- gdal_retile.py (别名)
- gdal_sieve (别名)
- gdal_sieve.py (别名)
- gdal_translate (别名)
- gdal_viewshed (别名)
- gdaladdo (别名)
- gdalattachpct (别名)
- gdalattachpct.py (别名)
- gdalbuildvrt (别名)
- gdalcompare (别名)
- gdalcompare.py (别名)
- gdaldem (别名)
- gdalenhance (别名)
- gdalinfo (别名)
- gdallocationinfo (别名)
- gdalmanage (别名)
- gdalmdiminfo (别名)
- gdalmdimtranslate (别名)
- gdalmove (别名)
- gdalmove.py (别名)
- gdalsrsinfo (别名)
- gdaltindex (别名)
- gdaltransform (别名)
- gdalwarp (别名)
- gnmanalyse (别名)
- gnmmanage (别名)
- nearblack (别名)
- ogr2ogr (别名)
- ogr_layer_algebra (别名)
- ogr_layer_algebra.py (别名)
- ogrinfo (别名)
- ogrlineref (别名)
- ogrmerge (别名)
- ogrmerge.py (别名)
- ogrtindex (别名)
- pct2rgb (别名)
- pct2rgb.py (别名)
- rgb2pct (别名)
- rgb2pct.py (别名)
- sozip (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

GDAL, the Geospatial Data Abstraction Library, is a long-running open source library and command-line toolkit for reading, writing, translating, and processing raster and vector geospatial data formats.

### 项目历史

The GDAL FAQ says Frank Warmerdam started work on the GDAL/OGR library in late 1998. The project later became an Open Source Geospatial Foundation project and presents common raster and vector data models to applications while also shipping many command-line utilities.

OGR began as a separate vector I/O library inspired by OpenGIS Simple Features. The GDAL documentation states that GDAL and OGR were integrated together with the GDAL 2.0 release.

GDAL development has moved through several infrastructure eras. RFC 71 records the 2018 decision to move the source tree and new issue tracking from OSGeo-hosted Subversion and Trac to GitHub while preserving full source history.

### 采用历史

GDAL became a foundation package in open source GIS and geospatial data processing because it hides many raster and vector file-format differences behind shared APIs and utilities.

The upstream list of software using GDAL includes desktop GIS, web mapping servers, scientific tools, spatial databases, Python libraries, and remote-sensing applications such as QGIS, GRASS GIS, MapServer, PostGIS raster components, Rasterio, Fiona, GeoDjango, and NASA-related tooling.

### 使用方式

Package users commonly install GDAL for command-line tools such as gdalinfo, gdal_translate, gdalwarp, ogrinfo, and ogr2ogr, as well as for the C/C++ library and language bindings used by higher-level geospatial software.

Starting with GDAL 3.11, the project documents a new single gdal command with subcommands as a provisional alternative interface alongside the traditional utilities.

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

GDAL matters to package managers because it is both an end-user CLI suite and a low-level dependency for a large geospatial stack. Packaging it correctly often means coordinating native libraries, format drivers, PROJ integration, Python bindings, and downstream ABI expectations.

RFC 78 shows the packaging pressure around Python utilities: GDAL 3.3 implemented a gdal-utils package path so users could upgrade Python utility modules without necessarily upgrading the compiled bindings.

### 时间线

- 1998: Frank Warmerdam starts work on the GDAL/OGR library.
- GDAL 2.0: GDAL and OGR are integrated into one project.
- 2018: RFC 71 proposes and adopts migration of source development to GitHub.
- 2021: RFC 78 records the adopted gdal-utils package plan for GDAL 3.3.
- 2025: GDAL documents command-line interface modernization for the new gdal front-end.
- 2026: GDAL documentation references the 3.13.1 release.

### Related projects

- OGR is the vector-data component that was historically separate and is now part of GDAL.
- Related geospatial projects using or surrounding GDAL include PROJ, QGIS, GRASS GIS, MapServer, PostGIS, Rasterio, Fiona, and DuckDB Spatial.

### 来源

- <https://gdal.org/en/stable/about.html>
- <https://gdal.org/en/stable/development/rfc/rfc46_gdal_ogr_unification.html>
- <https://gdal.org/en/stable/development/rfc/rfc71_github_migration.html>
- <https://gdal.org/en/stable/development/rfc/rfc78_gdal_utils_package.html>
- <https://gdal.org/en/stable/faq.html>
- <https://gdal.org/en/stable/programs/index.html>
- <https://gdal.org/en/stable/software_using_gdal.html>


## 安全说明

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


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

- Debian apt - gdal-bin - 3.10.3+dfsg-1: normalized package name match | Debian stable package indexes: gdal-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Geospatial Data Abstraction Library - Utility programs | http://www.gdal.org/
- Debian apt - gdal-data - 3.10.3+dfsg-1: normalized package name match | Debian stable package indexes: gdal-data from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Geospatial Data Abstraction Library - Data files | http://www.gdal.org/
- Debian apt - gdal-plugins - 3.10.3+dfsg-1: normalized package name match | Debian stable package indexes: gdal-plugins from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Geospatial Data Abstraction Library - Plugins | http://www.gdal.org/
- Debian apt - libgdal-dev - 3.10.3+dfsg-1: normalized package name match | Debian stable package indexes: libgdal-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Geospatial Data Abstraction Library - Development files | http://www.gdal.org/
- Debian apt - libgdal36 - 3.10.3+dfsg-1: normalized package name match | Debian stable package indexes: libgdal36 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Geospatial Data Abstraction Library | http://www.gdal.org/
- Debian apt - python3-gdal - 3.10.3+dfsg-1: normalized package name match | Debian stable package indexes: python3-gdal from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Python 3 bindings to the Geospatial Data Abstraction Library | http://www.gdal.org/
- Nix - gdal: normalized package name match | nixpkgs package indexes: pkgs/by-name/gd/gdal/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gdal-bin - 3.8.4+dfsg-3ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: gdal-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Geospatial Data Abstraction Library - Utility programs | http://www.gdal.org/
- Ubuntu apt - gdal-data - 3.8.4+dfsg-3ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: gdal-data from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Geospatial Data Abstraction Library - Data files | http://www.gdal.org/
- Ubuntu apt - gdal-plugins - 3.8.4+dfsg-3ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: gdal-plugins from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Geospatial Data Abstraction Library - Plugins | http://www.gdal.org/
- Ubuntu apt - libgdal-dev - 3.8.4+dfsg-3ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: libgdal-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Geospatial Data Abstraction Library - Development files | http://www.gdal.org/
- Ubuntu apt - libgdal34t64 - 3.8.4+dfsg-3ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: libgdal34t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Geospatial Data Abstraction Library | http://www.gdal.org/
- Ubuntu apt - python3-gdal - 3.8.4+dfsg-3ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-gdal from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Python 3 bindings to the Geospatial Data Abstraction Library | http://www.gdal.org/
- apk - gdal - 3.13.2-r0: normalized package name match | Alpine Linux edge package indexes: gdal from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A translator library for raster and vector geospatial data formats | https://gdal.org/
- apk - gdal-bash-completion - 3.13.2-r0: normalized package name match | Alpine Linux edge package indexes: gdal-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for gdal | https://gdal.org/
- apk - gdal-dev - 3.13.2-r0: normalized package name match | Alpine Linux edge package indexes: gdal-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A translator library for raster and vector geospatial data formats (development files) | https://gdal.org/


## Combined YAML source

View the package source record on GitHub. [combined/gdal.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gdal.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
