# 使用 Homebrew, MacPorts, Nix 安装 pinentry-mac

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

## 安装

```sh
sudo av install brew:pinentry-mac
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install pinentry-mac
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install pinentry-mac
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#pinentry_mac
```

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

## 软件包事实

- **软件包键:** brew:pinentry-mac
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/pinentry-mac>
- **版本:** 1.3.1.1
- **来源摘要:** Pinentry for GPG on Mac
- **主页:** <https://github.com/GPGTools/pinentry>
- **仓库:** <https://github.com/GPGTools/pinentry>
- **许可证:** GPL-2.0-or-later AND GPL-3.0-or-later
- **源码归档:** <https://github.com/GPGTools/pinentry/archive/refs/tags/v1.3.1.1.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- pinentry-mac (cli)
- pinentry-mac (别名)

## 依赖

- libassuan
- libgpg-error

## 构建依赖

- autoconf
- automake
- gettext
- libtool

## 安装行为

- post-install 钩子: 未定义
- 注意事项: You can now set this as your pinentry program like ~/.gnupg/gpg-agent.conf pinentry-program $HOMEBREW_PREFIX/bin/pinentry-mac
- Bottle: 可用 于 arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.3.1.1
- 本地数据: OK
- 上游仓库: https://github.com/GPGTools/pinentry
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.

## 安全说明

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:** pinentry-mac
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Requirements:** macos, xcode
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Nix - pinentry_mac: normalized package name match | nixpkgs package indexes: pinentry_mac from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- MacPorts - pinentry-mac: normalized package name match | MacPorts ports tree: aqua/pinentry-mac/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [libgpg-error](https://pkg.so/zh-hans/brew/libgpg-error/) - Runtime dependency declared by Homebrew.
- [libassuan](https://pkg.so/zh-hans/brew/libassuan/) - Runtime dependency declared by Homebrew.
- [gettext](https://pkg.so/zh-hans/brew/gettext/) - Build dependency declared by Homebrew.
- [libtool](https://pkg.so/zh-hans/brew/libtool/) - Build dependency declared by Homebrew.
- [autoconf](https://pkg.so/zh-hans/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://pkg.so/zh-hans/brew/automake/) - Build dependency declared by Homebrew.
- [tkey-ssh-agent](https://pkg.so/zh-hans/brew/tkey-ssh-agent/) - Popular package that depends on this formula.
- [pinentry](https://pkg.so/zh-hans/brew/pinentry/) - Shares pkgdb curated category or tags: authentication, cli, gnupg, passphrase, security.
- [krb5](https://pkg.so/zh-hans/brew/krb5/) - Shares pkgdb curated category or tags: authentication, cli, security.
- [cyrus-sasl](https://pkg.so/zh-hans/brew/cyrus-sasl/) - Shares pkgdb curated category or tags: authentication, cli, security.
- [libfido2](https://pkg.so/zh-hans/brew/libfido2/) - Shares pkgdb curated category or tags: authentication, cli, security.
- [linux-pam](https://pkg.so/zh-hans/brew/linux-pam/) - Shares pkgdb curated category or tags: authentication, cli, security.
- [saml2aws](https://pkg.so/zh-hans/brew/saml2aws/) - Shares pkgdb curated category or tags: authentication, cli, security.
- [oath-toolkit](https://pkg.so/zh-hans/brew/oath-toolkit/) - Shares pkgdb curated category or tags: authentication, cli, security.
- [libjwt](https://pkg.so/zh-hans/brew/libjwt/) - Shares pkgdb curated category or tags: authentication, cli, security.
- [envio](https://pkg.so/zh-hans/brew/envio/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, error, libgpg, libgpg-error, security.
- [blackbox](https://pkg.so/zh-hans/brew/blackbox/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, gnupg, gpg, security.

## Combined YAML source

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


## 来源

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