# 使用 Homebrew, apt, Nix, pacman, dnf, winget 安装 gmt

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

## 安装

```sh
sudo av install brew:gmt
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gmt
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install gmt
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#gmt
```

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

- pacman (92%):

```sh
sudo pacman -S gmt
```

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

- dnf (92%):

```sh
sudo dnf install GMT
```

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

### Windows

- winget (92%):

```sh
winget install --id GenericMappingTools.gmt -e
```

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

## 软件包事实

- **软件包键:** brew:gmt
- **软件包管理器:** Homebrew
- **版本:** 6.7.0
- **来源摘要:** Tools for manipulating and plotting geographic and Cartesian data
- **主页:** <https://www.generic-mapping-tools.org/>
- **仓库:** <https://github.com/GenericMappingTools/gmt>
- **最后更新:** 2026-07-30T11:41:11Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- fz_funcs (别名)
- fz_funcs.sh (别名)
- fzmodeler (别名)
- fzprofiler (别名)
- gmt (别名)
- gmt-config (别名)
- gmt_shell_functions.sh (别名)
- gmt_update (别名)
- gmtswitch (别名)
- isogmt (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

GMT, the Generic Mapping Tools, is an open-source collection of command-line tools for manipulating geographic and Cartesian datasets and producing publication-quality maps, plots, illustrations, and animations. It is a long-running geoscience package with a strong scripting culture.

### 项目历史

GMT was initiated in late 1987 at Lamont-Doherty Earth Observatory, Columbia University, by graduate students Paul Wessel and Walter H. F. Smith. Version 1 was introduced to Lamont scientists in July 1988, then spread by word of mouth and tape to institutions in the United States, the United Kingdom, Japan, and France.

Version 2.0 was released with a 1991 EOS article and spread worldwide. Version 3.0 followed in 1993 and was described in a 1995 EOS article; a major GMT 4 upgrade arrived in October 2004.

GMT 5 was released in 2013 with broad backward compatibility for GMT 4 syntax. GMT 6 arrived in 2019 with modern mode, a major workflow change intended to make plotting scripts easier to write while retaining the classic command-line model.

The project also professionalized its research-software identity through citation records. The official citation page lists papers for GMT 2, GMT 3, GMT 5, GMT 6, GMT/MATLAB, animation support, and the project's origin story, along with Zenodo DOIs for releases.

### 采用历史

The official site describes GMT as widely used across Earth, ocean, and planetary sciences and beyond, with GMT-made illustrations appearing in scientific journals, meeting posters, Wikipedia pages, and other publications.

The README broadens that audience to medical research, engineering, physics, mathematics, social and biological sciences, geography, fisheries institutes, oil companies, government agencies, and hobbyists. The official About page describes tens of thousands of users worldwide.

Packaging helped that adoption because GMT is naturally scriptable. Scientists could install a stable command suite through Unix package managers, keep plotting recipes in shell scripts or Makefiles, and reproduce figures without a graphical GIS workflow.

### 使用方式

Practitioners use GMT modules for filtering, trend fitting, gridding, projecting, map projection transformations, contour maps, illuminated surfaces, 3D perspective views, and animations. The README describes about 100 core command-line tools plus around 50 specialized supplement tools.

A typical GMT workflow combines data tables or grids with commands that transform, grid, style, and render figures. The package also brings supporting data such as GSHHG coastlines, rivers, political boundaries, and optional Digital Chart of the World polygons.

Modern mode in GMT 6 lets users write more concise figure scripts, while classic mode remains important for long-lived shell pipelines and publications with reproducible plotting commands.

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

GMT is a canonical scientific CLI package: many small commands, strict text/data interfaces, stable documentation, optional datasets, and decades of scripts in the wild. Package managers keep that ecosystem available without each lab maintaining a custom build.

It also sits at the intersection of Unix plotting, cartography, and research reproducibility. A GMT package is not just an application install; it is often part of a paper's build chain.

### 时间线

- 1987: GMT initiated at Lamont-Doherty Earth Observatory.
- 1988: Version 1 introduced to Lamont scientists.
- 1991: Version 2.0 released with an EOS article.
- 1993: Version 3.0 released.
- 2004: GMT 4.0 major upgrade released.
- 2013: GMT 5 series released.
- 2019: GMT 6 released with modern mode.
- 2025: GMT 6.6.0 release published.

### Related projects

- GSHHG and DCW provide common support datasets used by GMT.
- netCDF, GDAL, PCRE, FFTW, LAPACK, BLAS, GLib, Zlib, Ghostscript, FFmpeg, and GraphicsMagick are named by the README as important dependencies or external tools.
- PyGMT, GMT/MATLAB, GMT.jl, and related interfaces make GMT available from Python, MATLAB/Octave, Julia, and other environments.

### 来源

- <https://api.github.com/repos/GenericMappingTools/gmt>
- <https://docs.generic-mapping-tools.org/6.6/>
- <https://docs.generic-mapping-tools.org/6.6/changes.html>
- <https://github.com/GenericMappingTools/gmt>
- <https://www.generic-mapping-tools.org/>
- <https://www.generic-mapping-tools.org/about/>
- <https://www.generic-mapping-tools.org/cite/>


## 安全说明

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



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ./gmt.conf, $GMT_USERDIR/gmt.conf, ~/.gmt/gmt.conf
## 其他软件包管理器记录

- Debian apt - gmt - 6.5.0+dfsg-4: normalized package name match | Debian stable package indexes: gmt from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Generic Mapping Tools | http://gmt.soest.hawaii.edu/
- Debian apt - gmt-common - 6.5.0+dfsg-4: normalized package name match | Debian stable package indexes: gmt-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Generic Mapping Tools - Architecture-independent files | http://gmt.soest.hawaii.edu/
- Debian apt - libgmt-dev - 6.5.0+dfsg-4: normalized package name match | Debian stable package indexes: libgmt-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Generic Mapping Tools Library - Development files | http://gmt.soest.hawaii.edu/
- Debian apt - libgmt6t64 - 6.5.0+dfsg-4: normalized package name match | Debian stable package indexes: libgmt6t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Generic Mapping Tools Library | http://gmt.soest.hawaii.edu/
- Nix - gmt: normalized package name match | nixpkgs package indexes: pkgs/by-name/gm/gmt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gmt - 6.5.0+dfsg-3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: gmt from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Generic Mapping Tools | http://gmt.soest.hawaii.edu/
- Ubuntu apt - gmt-common - 6.5.0+dfsg-3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: gmt-common from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Generic Mapping Tools - Architecture-independent files | http://gmt.soest.hawaii.edu/
- Ubuntu apt - libgmt-dev - 6.5.0+dfsg-3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libgmt-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Generic Mapping Tools Library - Development files | http://gmt.soest.hawaii.edu/
- Ubuntu apt - libgmt6t64 - 6.5.0+dfsg-3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libgmt6t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Generic Mapping Tools Library | http://gmt.soest.hawaii.edu/
- dnf - GMT - 6.6.0-9.fc45: normalized package name match | Fedora Rawhide package metadata: GMT from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Generic Mapping Tools | https://www.generic-mapping-tools.org/
- dnf - GMT-common - 6.6.0-9.fc45: normalized package name match | Fedora Rawhide package metadata: GMT-common from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Common files for GMT | https://www.generic-mapping-tools.org/
- dnf - GMT-devel - 6.6.0-9.fc45: normalized package name match | Fedora Rawhide package metadata: GMT-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for GMT | https://www.generic-mapping-tools.org/
- dnf - GMT-doc - 6.6.0-9.fc45: normalized package name match | Fedora Rawhide package metadata: GMT-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Documentation for GMT | https://www.generic-mapping-tools.org/
- pacman - gmt - 6.6.0-4: normalized package name match | Arch Linux sync databases: gmt from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Generic Mapping Tools for manipulating and plotting geographic and cartesian data | https://www.generic-mapping-tools.org
- winget - GenericMappingTools.gmt: normalized package name match | Windows Package Manager source index: GenericMappingTools.gmt from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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


## 来源

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