# 安装 gnupg

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

## 安装

```sh
sudo av install brew:gnupg
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gnupg
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add gnupg
```

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

- Debian apt (92%):

```sh
sudo apt install gnupg
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#gnupg
```

  证据: nixpkgs package indexes: gnupg from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S gnupg
```

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

- zypper (92%):

```sh
sudo zypper install dirmngr
```

  证据: openSUSE Tumbleweed package metadata: dirmngr from https://download.opensuse.org/tumbleweed/repo/oss/repodata/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install gnupg
```

  证据: Chocolatey community package catalog: gnupg from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','gitversion.portable'

- Scoop (92%):

```sh
scoop install main/gnupg
```

  证据: Scoop official bucket manifest trees: bucket/gnupg.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id GnuPG.GnuPG -e
```

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

## 软件包事实

- **软件包键:** brew:gnupg
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/gnupg>
- **版本:** 2.5.20
- **来源摘要:** GNU Privacy Guard (OpenPGP)
- **主页:** <https://gnupg.org/>
- **上游文档:** <https://gnupg.org/>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://gnupg.org/ftp/gcrypt/gnupg/gnupg-2.5.20.tar.bz2>
- **更新:** 2026-05-14T00:06:43Z
- **生成来源:** 2026-05-26T17:25:59+00:00

## 可执行文件

- addgnupghome (cli)
- applygnupgdefaults (cli)
- dirmngr (cli)
- dirmngr-client (cli)
- gpg (cli)
- gpg-agent (cli)
- gpg-authcode-sign.sh (cli)
- gpg-card (cli)
- gpg-connect-agent (cli)
- gpg-mail-tube (cli)
- gpg-wks-client (cli)
- gpg-wks-server (cli)
- gpgconf (cli)
- gpgparsemail (cli)
- gpgscm (cli)
- gpgsm (cli)
- gpgsplit (cli)
- gpgtar (cli)
- gpgv (cli)
- kbxutil (cli)
- watchgnupg (cli)
- addgnupghome (别名)
- applygnupgdefaults (别名)
- dirmngr (别名)
- dirmngr-client (别名)
- gpg (别名)
- gpg-agent (别名)
- gpg-authcode-sign.sh (别名)
- gpg-card (别名)
- gpg-connect-agent (别名)
- gpg-mail-tube (别名)
- gpg-wks-client (别名)
- gpg-wks-server (别名)
- gpgconf (别名)
- gpgparsemail (别名)
- gpgscm (别名)
- gpgsm (别名)
- gpgsplit (别名)
- gpgtar (别名)
- gpgv (别名)
- kbxutil (别名)
- watchgnupg (别名)

## 依赖

- gettext
- gnutls
- libassuan
- libgcrypt
- libgpg-error
- libksba
- libusb
- npth
- pinentry
- readline

## 构建依赖

- pkgconf

## macOS 提供的库

- bzip2
- openldap
- sqlite

## 安装行为

- post-install 钩子: 已定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 新鲜度

- 页面生成时间: 2026-05-26
- 管理器版本: 2.5.20
- 管理器更新时间: 2026-05-14
- 本地数据: ok
- 上游仓库: https://gnupg.org/
- info: Release/tag comparison is only available for GitHub repositories.

## 安全说明

no executable entrypoint in the package index.

- **Geiger 风险:** green / low
- no executable entrypoint in the package index

## 相关链接

- [readline](https://www.automicvault.com/pkg/brew/readline/) - Runtime dependency declared by Homebrew.
- [gettext](https://www.automicvault.com/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [gnutls](https://www.automicvault.com/pkg/brew/gnutls/) - Runtime dependency declared by Homebrew.
- [libgpg-error](https://www.automicvault.com/pkg/brew/libgpg-error/) - Runtime dependency declared by Homebrew.
- [libgcrypt](https://www.automicvault.com/pkg/brew/libgcrypt/) - Runtime dependency declared by Homebrew.
- [libusb](https://www.automicvault.com/pkg/brew/libusb/) - Runtime dependency declared by Homebrew.
- [pinentry](https://www.automicvault.com/pkg/brew/pinentry/) - Runtime dependency declared by Homebrew.
- [libksba](https://www.automicvault.com/pkg/brew/libksba/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [gpgme](https://www.automicvault.com/pkg/brew/gpgme/) - Popular package that depends on this formula.
- [pass](https://www.automicvault.com/pkg/brew/pass/) - Popular package that depends on this formula.
- [git-secret](https://www.automicvault.com/pkg/brew/git-secret/) - Popular package that depends on this formula.
- [gopass](https://www.automicvault.com/pkg/brew/gopass/) - Popular package that depends on this formula.
- [duplicity](https://www.automicvault.com/pkg/brew/duplicity/) - Popular package that depends on this formula.
- [gpg-tui](https://www.automicvault.com/pkg/brew/gpg-tui/) - Popular package that depends on this formula.
- [qca](https://www.automicvault.com/pkg/brew/qca/) - Popular package that depends on this formula.
- [woob](https://www.automicvault.com/pkg/brew/woob/) - Popular package that depends on this formula.
- [gnupg@1.4](https://www.automicvault.com/pkg/brew/gnupg-1-4/) - Package name indicates the same formula family.
- [npth](https://www.automicvault.com/pkg/brew/npth/) - Shares the same upstream homepage.
- [ntbtls](https://www.automicvault.com/pkg/brew/ntbtls/) - Shares the same upstream homepage.

## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
