# 使用 Homebrew, apk, MacPorts, Nix, pacman, zypper 安装 gpg-tui

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

## 安装

```sh
sudo av install brew:gpg-tui
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gpg-tui
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gpg-tui
```

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

### Linux

- apk (92%):

```sh
sudo apk add gpg-tui
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#gpg-tui
```

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

- pacman (92%):

```sh
sudo pacman -S gpg-tui
```

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

- zypper (92%):

```sh
sudo zypper install gpg-tui
```

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

## 软件包事实

- **软件包键:** brew:gpg-tui
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/gpg-tui>
- **版本:** 0.11.2
- **来源摘要:** Manage your GnuPG keys with ease!
- **主页:** <https://blog.orhun.dev/introducing-gpg-tui/>
- **仓库:** <https://github.com/orhun/gpg-tui>
- **上游文档:** <https://blog.orhun.dev/introducing-gpg-tui/>
- **许可证:** MIT
- **源码归档:** <https://github.com/orhun/gpg-tui/archive/refs/tags/v0.11.2.tar.gz>
- **最后更新:** 2026-06-15T10:20:17-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- gpg-tui (cli)
- gpg-tui (别名)

## 依赖

- gnupg
- gpgme
- libgpg-error
- libxcb

## 构建依赖

- pkgconf
- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.11.2
- 管理器更新时间: 2026-06-15
- 本地数据: OK
- 上游仓库: https://github.com/orhun/gpg-tui
- 检测到的最新版本: v0.11.2 (当前)
## 项目历史与用法

gpg-tui is a Rust terminal user interface for GnuPG key management. It wraps common key operations in an interactive TUI while falling back to the `gpg` command for operations that are better left to GnuPG's own menus or command surface.

### 项目历史

The project was introduced publicly by Orhun Parmaksiz in May 2021 as a terminal interface for managing GnuPG keys. Its changelog records 0.1.0 on 2021-05-28, followed immediately by packaging and documentation work.

The README defines a deliberately bounded scope: ease listing, exporting, signing, editing, importing, sending, generating, deleting, and refreshing keys, without trying to cover every GnuPG feature.

### 采用历史

gpg-tui spread through Rust and Unix package channels rather than through GnuPG itself. The README documents installation through Cargo, Arch, Alpine, Gentoo overlays, Homebrew, Docker, FreeBSD, and NetBSD.

Its packaging story was part of the project from the first week: the changelog records Arch instructions on 2021-05-29 and Homebrew, FreeBSD, and NetBSD instructions on 2021-06-02.

### 使用方式

The TUI is used by pointing it at a GnuPG home directory or running it against the user's normal keyring. The README example includes launching against `/etc/pacman.d/gnupg`, which shows the tool's usefulness for inspecting package-manager keyrings as well as personal keys.

The project depends on GnuPG, GPGME, libgpg-error, and Rust. It uses GPGME where that API fits and executes `gpg` for cases such as refresh operations or menu-driven behavior.

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

For package-oriented users, gpg-tui sits in a useful gap between raw `gpg --list-keys` output and full graphical frontends. It makes trust, signing, import, export, and key inspection easier inside SSH sessions, recovery shells, and minimal desktops.

It also shows the Rust TUI wave entering security tooling: a modern terminal UI layered on top of conservative cryptographic plumbing instead of replacing the underlying OpenPGP implementation.

### 时间线

- 2021-05-28: 0.1.0 initial release recorded in the changelog.
- 2021-05-29: Arch Linux installation instructions added.
- 2021-06-02: Homebrew, FreeBSD, and NetBSD installation instructions added.
- 2022-05-27: 0.9.0 added custom key bindings.
- 2024-03-17: 0.11.0 added a log view pane.
- 2026-04-23: 0.11.2 updated dependencies and minimum supported Rust version.

### Related projects

- Related tools include GnuPG itself, GPGME, pinentry, GPA, Kleopatra, and other terminal UI tools used to manage cryptographic workflows.

### 来源

- <https://blog.orhun.dev/introducing-gpg-tui/>
- <https://github.com/orhun/gpg-tui>
- <https://github.com/orhun/gpg-tui/blob/master/CHANGELOG.md>


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

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

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

- Nix - gpg-tui: normalized package name match | nixpkgs package indexes: pkgs/by-name/gp/gpg-tui/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - gpg-tui - 0.11.2-r0: normalized package name match | Alpine Linux edge package indexes: gpg-tui from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Terminal user interface for GnuPG | https://github.com/orhun/gpg-tui
- apk - gpg-tui-bash-completion - 0.11.2-r0: normalized package name match | Alpine Linux edge package indexes: gpg-tui-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for gpg-tui | https://github.com/orhun/gpg-tui
- apk - gpg-tui-doc - 0.11.2-r0: normalized package name match | Alpine Linux edge package indexes: gpg-tui-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Terminal user interface for GnuPG (documentation) | https://github.com/orhun/gpg-tui
- apk - gpg-tui-fish-completion - 0.11.2-r0: normalized package name match | Alpine Linux edge package indexes: gpg-tui-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for gpg-tui | https://github.com/orhun/gpg-tui
- apk - gpg-tui-zsh-completion - 0.11.2-r0: normalized package name match | Alpine Linux edge package indexes: gpg-tui-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for gpg-tui | https://github.com/orhun/gpg-tui
- pacman - gpg-tui - 0.11.2-1: normalized package name match | Arch Linux sync databases: gpg-tui from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A terminal user interface for GnuPG | https://github.com/orhun/gpg-tui
- zypper - gpg-tui - 0.11.2-1.3: normalized package name match | openSUSE Tumbleweed package metadata: gpg-tui from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Terminal User Interface for GnuPG | https://github.com/orhun/gpg-tui
- MacPorts - gpg-tui: normalized package name match | MacPorts ports tree: security/gpg-tui/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter 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.
- [gnupg](https://pkg.so/zh-hans/brew/gnupg/) - Runtime dependency declared by Homebrew.
- [libgpg-error](https://pkg.so/zh-hans/brew/libgpg-error/) - Runtime dependency declared by Homebrew.
- [gpgme](https://pkg.so/zh-hans/brew/gpgme/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [gpa](https://pkg.so/zh-hans/brew/gpa/) - Shares pkgdb curated category or tags: cli, gnupg, key-management, openpgp, security.
- [hopenpgp-tools](https://pkg.so/zh-hans/brew/hopenpgp-tools/) - Shares pkgdb curated category or tags: cli, key-management, openpgp, security.
- [gnupg@1.4](https://pkg.so/zh-hans/brew/gnupg-1-4/) - Shares pkgdb curated category or tags: cli, key-management, openpgp, security.
- [flawz](https://pkg.so/zh-hans/brew/flawz/) - Shares pkgdb curated category or tags: cli, rust, security, tui.
- [sequoia-chameleon-gnupg](https://pkg.so/zh-hans/brew/sequoia-chameleon-gnupg/) - Shares pkgdb curated category or tags: cli, gnupg, openpgp, security.
- [paperkey](https://pkg.so/zh-hans/brew/paperkey/) - Shares pkgdb curated category or tags: cli, gnupg, openpgp, security.
- [envio](https://pkg.so/zh-hans/brew/envio/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, error, gpgme, libgpg, libgpg-error.
- [pinentry-mac](https://pkg.so/zh-hans/brew/pinentry-mac/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, error, gnupg, gpg, libgpg.

## Combined YAML source

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


## 来源

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