# 使用 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
- **版本:** 0.11.2
- **来源摘要:** Manage your GnuPG keys with ease!
- **主页:** <https://blog.orhun.dev/introducing-gpg-tui/>
- **仓库:** <https://github.com/orhun/gpg-tui>
- **最后更新:** 2026-06-15T10:20:17-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gpg-tui (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.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

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

- 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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
