# 使用 Homebrew, apk, chocolatey, apt, Nix, pacman, dnf, scoop, winget, zypper 安装 gnupg@1.4

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gnupg@1.4
```

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

- dnf (92%):

```sh
sudo dnf install gnupg2
```

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

- zypper (92%):

```sh
sudo zypper install gpg2
```

  证据: openSUSE Tumbleweed package metadata: gpg2 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-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','gitextensions'

- 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@1.4
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/gnupg@1.4>
- **版本:** 1.4.23
- **来源摘要:** GNU Privacy Guard (OpenPGP)
- **主页:** <https://www.gnupg.org/>
- **上游文档:** <https://www.gnupg.org/>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://gnupg.org/ftp/gcrypt/gnupg/gnupg-1.4.23.tar.bz2>
- **最后更新:** 2026-06-13T23:34:56+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 安装行为

- post-install 钩子: 未定义
- 注意事项: This formula does not install either `gpg` or `gpgv` executables into the PATH. If you simply require `gpg` and `gpgv` executables without explicitly needing GnuPG 1.x we recommend: brew install gnupg If you really need to use these tools without the "1" suffix you can add a "gpgbin" directory to your PATH like: PATH="$HOMEBREW_PREFIX/opt/gnupg@1.4/libexec/gpgbin:$PATH" Note that doing so may interfere with GPG-using formulae installed via Homebrew.
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.4.23
- 管理器更新时间: 2026-06-13
- 本地数据: OK
- 上游仓库: https://www.gnupg.org/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

The gnupg@1.4 formula represents the legacy GnuPG 1.4 branch, packaged separately so users can install gpg1-style tools alongside newer GnuPG packages.

### 项目历史

GnuPG itself was introduced in 1997 as the GNU project's free OpenPGP implementation. The 1.4 branch was born in 2004 and belongs to the older single-binary lineage before the more modular GnuPG 2 architecture became the main branch for many users.

The GnuPG download page describes 1.4 as the old single-binary version, with no dependency on the newer GnuPG support libraries or pinentry. It also notes support for unsafe PGP-2 keys and the absence of many modern features.

### 采用历史

The versioned package role is compatibility. It exists for scripts, archives, tests and users that need the 1.4 behavior, the gpg1 command family, or legacy OpenPGP material without replacing the newer gnupg formula.

### 使用方式

Practitioners use gnupg@1.4 when they deliberately need gpg1, gpgv1 or related suffixed executables. Typical use is compatibility work, legacy signature verification, old-key handling or controlled testing against the 1.4 command-line behavior.

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

For package users, gnupg@1.4 is a clean example of a versioned formula preserving an old security toolchain without making it the default OpenPGP stack. The suffixing of executables makes side-by-side installation practical.

### 时间线

- 1997: GnuPG was introduced as Free Software.
- 2004: The 1.4 release branch was born.
- 2018: The GnuPG download table listed 1.4.23 as the 1.4 source release.
- 2020s: Package managers kept versioned or suffixed forms for compatibility workflows.

### Related projects

- gnupg@1.4 is part of the GnuPG/OpenPGP lineage and is related to gnupg, gpgv, PGP-2 compatibility workflows and software-release signature verification.

### 来源

- <https://formulae.brew.sh/formula/gnupg@1.4>
- <https://gnupg.org/download/index.html>
- <https://www.gnupg.org/>
- <https://www.gnupg.org/documentation/manuals/gnupg>


## 安全说明

没有找到 gnupg@1.4 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 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: ~/.gnupg/gpg.conf, ~/.gnupg/common.conf

## Credential files

- Unix: ~/.gnupg/secring.gpg
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gnupg@1.4
- **Aliases:** gpg1
- **Version Scheme:** 0
- **Revision:** 1
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Debian apt - gnupg - 2.4.7-21+deb13u1: versioned package alias match | Debian stable package indexes: gnupg from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU privacy guard - a free PGP replacement | https://www.gnupg.org/
- Nix - gnupg: versioned package alias match | nixpkgs package indexes: gnupg from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - gnupg - 2.4.4-2ubuntu17: versioned package alias match | Ubuntu 24.04 LTS package indexes: gnupg from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | GNU privacy guard - a free PGP replacement | https://www.gnupg.org/
- apk - gnupg - 2.4.9-r1: versioned package alias match | Alpine Linux edge package indexes: gnupg from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GNU Privacy Guard 2 - meta package for full GnuPG suite | https://www.gnupg.org/
- apk - gnupg-dirmngr - 2.4.9-r1: versioned package alias match | Alpine Linux edge package indexes: gnupg-dirmngr from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GNU Privacy Guard 2 - network certificate management service | https://www.gnupg.org/
- apk - gnupg-doc - 2.4.9-r1: versioned package alias match | Alpine Linux edge package indexes: gnupg-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GNU Privacy Guard 2 - meta package for full GnuPG suite (documentation) | https://www.gnupg.org/
- apk - gnupg-gpgconf - 2.4.9-r1: versioned package alias match | Alpine Linux edge package indexes: gnupg-gpgconf from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GNU Privacy Guard 2 - core configuration utilities | https://www.gnupg.org/
- apk - gnupg-keyboxd - 2.4.9-r1: versioned package alias match | Alpine Linux edge package indexes: gnupg-keyboxd from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GNU Privacy Guard 2 - keyboxd manager | https://www.gnupg.org/
- apk - gnupg-lang - 2.4.9-r1: versioned package alias match | Alpine Linux edge package indexes: gnupg-lang from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Languages for package gnupg | https://www.gnupg.org/
- apk - gnupg-scdaemon - 2.4.9-r1: versioned package alias match | Alpine Linux edge package indexes: gnupg-scdaemon from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GNU Privacy Guard 2 - smart card support daemon | https://www.gnupg.org/
- apk - gnupg-scdaemon-udev - 2.4.9-r1: versioned package alias match | Alpine Linux edge package indexes: gnupg-scdaemon-udev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GNU Privacy Guard 2 - meta package for full GnuPG suite (udev rules) | https://www.gnupg.org/
- apk - gnupg-utils - 2.4.9-r1: versioned package alias match | Alpine Linux edge package indexes: gnupg-utils from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GNU Privacy Guard 2 - utility programs | https://www.gnupg.org/
- apk - gnupg-wks-client - 2.4.9-r1: versioned package alias match | Alpine Linux edge package indexes: gnupg-wks-client from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GNU Privacy Guard 2 - Web Key Service client | https://www.gnupg.org/
- apk - gpg - 2.4.9-r1: versioned package alias match | Alpine Linux edge package indexes: gpg from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GNU Privacy Guard 2 - public key operations only | https://www.gnupg.org/
- apk - gpg-agent - 2.4.9-r1: versioned package alias match | Alpine Linux edge package indexes: gpg-agent from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GNU Privacy Guard 2 - cryptographic agent | https://www.gnupg.org/
- apk - gpg-wks-server - 2.4.9-r1: versioned package alias match | Alpine Linux edge package indexes: gpg-wks-server from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GNU Privacy Guard 2 - Web Key Service server | https://www.gnupg.org/


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://pkg.so/zh-hans/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [gnupg](https://pkg.so/zh-hans/brew/gnupg/) - Package name indicates the same formula family.
- [hopenpgp-tools](https://pkg.so/zh-hans/brew/hopenpgp-tools/) - Shares pkgdb curated category or tags: cli, cryptography, key-management, openpgp, security.
- [nettle](https://pkg.so/zh-hans/brew/nettle/) - Shares pkgdb curated category or tags: cli, cryptography, encryption, security.
- [gpgme](https://pkg.so/zh-hans/brew/gpgme/) - Shares pkgdb curated category or tags: cli, cryptography, openpgp, security.
- [sqlcipher](https://pkg.so/zh-hans/brew/sqlcipher/) - Shares pkgdb curated category or tags: cli, cryptography, encryption, security.
- [pgpdump](https://pkg.so/zh-hans/brew/pgpdump/) - Shares pkgdb curated category or tags: cli, cryptography, openpgp, security.
- [softhsm](https://pkg.so/zh-hans/brew/softhsm/) - Shares pkgdb curated category or tags: cli, cryptography, key-management, security.
- [gpg-tui](https://pkg.so/zh-hans/brew/gpg-tui/) - Shares pkgdb curated category or tags: cli, key-management, openpgp, security.
- [gpa](https://pkg.so/zh-hans/brew/gpa/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, gnupg, key, key-management, management.

## Combined YAML source

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


## 来源

- pkg.so package database
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
