# 使用 Homebrew, apk 安装 gauth

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

## 安装

```sh
sudo av install brew:gauth
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gauth
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add gauth
```

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

## 软件包事实

- **软件包键:** brew:gauth
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/gauth>
- **版本:** 1.5.0
- **来源摘要:** Google Authenticator in your terminal
- **主页:** <https://github.com/pcarrier/gauth>
- **仓库:** <https://github.com/pcarrier/gauth>
- **许可证:** ISC
- **源码归档:** <https://github.com/pcarrier/gauth/archive/refs/tags/v1.5.0.tar.gz>
- **最后更新:** 2026-07-25T20:55:21-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- gauth (cli)
- gauth (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.5.0
- 管理器更新时间: 2026-07-25
- 本地数据: OK
- 上游仓库: https://github.com/pcarrier/gauth
- 检测到的最新版本: v1.5.0 (当前)
## 项目历史与用法

gauth is a small command-line authenticator for time-based one-time passwords. Its README frames the project as a terminal replacement for Google Authenticator.

### 项目历史

The official GitHub repository was created in 2013 and is maintained as a Go command-line tool. The README documents installation through Homebrew or `go install`, a plain text account file, optional OpenSSL-based encryption, and compatibility reports for common services.

### 采用历史

Official adoption evidence is modest and mostly visible through packaging and repository activity. The tool is packaged by Homebrew and Alpine, and the README invites users to report additional service compatibility results.

### 使用方式

Users store one secret per line in `~/.config/gauth.csv` using `name:secret` entries or otpauth URLs, restrict file permissions, and run `gauth` to display previous, current, and next codes. The CLI also supports printing a single key, bare output for scripting, adding and removing keys, and retrieving an account secret.

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

gauth matters to package-manager users as a deliberately small security CLI: one binary plus a user-managed local secrets file. It represents the Unix preference for inspectable text configuration and shell-friendly output in a domain often dominated by mobile apps.

### 时间线

- 2013: The official GitHub repository was created.
- 2010s: The README documented use with Homebrew, Go installation, and multiple online services.
- 2020s: The project remains available as a packaged Go TOTP CLI.

### Related projects

- The README points users who need to interpret QR codes toward gauthQR. The project is conceptually related to Google Authenticator-compatible TOTP tools and the otpauth URI format.

### 来源

- <https://github.com/pcarrier/gauth>
- <https://github.com/pcarrier/gauth#readme>


## 安全说明

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

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

- apk - gauth - 1.5.0-r15: normalized package name match | Alpine Linux edge package indexes: gauth from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Replacement for Google Authenticator | https://github.com/pcarrier/gauth


## 相关链接

- [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.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [google-authenticator-libpam](https://pkg.so/zh-hans/brew/google-authenticator-libpam/) - Shares pkgdb curated category or tags: cli, security, totp, two-factor-authentication.
- [cotp](https://pkg.so/zh-hans/brew/cotp/) - Shares pkgdb curated category or tags: cli, security, totp, two-factor-authentication.
- [rsc_2fa](https://pkg.so/zh-hans/brew/rsc-2fa/) - Shares pkgdb curated category or tags: cli, security, totp, two-factor-authentication.
- [oath-toolkit](https://pkg.so/zh-hans/brew/oath-toolkit/) - Shares pkgdb curated category or tags: cli, security, totp.
- [totp-cli](https://pkg.so/zh-hans/brew/totp-cli/) - Shares pkgdb curated category or tags: cli, security, totp.
- [prs](https://pkg.so/zh-hans/brew/prs/) - Shares pkgdb curated category or tags: cli, security, totp.
- [duo_unix](https://pkg.so/zh-hans/brew/duo-unix/) - Shares pkgdb curated category or tags: cli, security, two-factor-authentication.
- [steamguard-cli](https://pkg.so/zh-hans/brew/steamguard-cli/) - Shares pkgdb curated category or tags: cli, security, totp.

## Combined YAML source

View the package source record on GitHub. [combined/gauth.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gauth.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
