# 使用 Homebrew, Nix 安装 checkpwn

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

## 安装

```sh
sudo av install brew:checkpwn
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install checkpwn
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#checkpwn
```

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

## 软件包事实

- **软件包键:** brew:checkpwn
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/checkpwn>
- **版本:** 0.6.0
- **来源摘要:** Check Have I Been Pwned and see if it's time for you to change passwords
- **主页:** <https://github.com/brycx/checkpwn>
- **仓库:** <https://github.com/brycx/checkpwn>
- **许可证:** MIT
- **源码归档:** <https://static.crates.io/crates/checkpwn/checkpwn-0.6.0.crate>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- checkpwn (cli)
- checkpwn (别名)

## 构建依赖

- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.6.0
- 本地数据: OK
- 上游仓库: https://github.com/brycx/checkpwn
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

checkpwn is a Rust CLI for querying Have I Been Pwned account, paste, and password-breach data. It is small, but source-backed enough to document as a package-manager convenience wrapper around a security API.

### 项目历史

The brycx/checkpwn repository was created in May 2018. The README describes checkpwn as a tool to check Have I Been Pwned and determine whether passwords need changing.

The Cargo metadata identifies it as a command-line utility with password, security, and HIBP keywords. The project continued to receive releases through 0.6.0 in March 2026, when it moved to Rust Edition 2024 and updated dependencies.

### 采用历史

The README documents installation through Cargo and Homebrew, while the batch metadata also lists Nix. This is typical adoption for a focused Rust CLI: cargo install first, then package-manager formulas for repeatable workstation setup.

Adoption appears niche rather than ecosystem-defining, with modest GitHub star counts, but the tool solves a clear packageable task: local HIBP checks without writing API glue.

### 使用方式

Users register a Have I Been Pwned API key with checkpwn register, which writes checkpwn.yml in the user's configuration directory, then use checkpwn acc for accounts or lists and checkpwn pass for passwords.

For account checks, the README says checkpwn queries both the HIBP paste and account databases. Password checking is separated from account checking, matching the common operational distinction between exposed accounts and compromised password material.

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

checkpwn is package-nerd interesting as a compact Rust security CLI with Cargo, Homebrew, and Nix distribution. It shows the pattern of wrapping a popular web security service in a local command that stores minimal configuration and can be scripted.

Its config-path behavior also matters to packagers because API keys are user state, not package state.

### 时间线

- 2018: brycx/checkpwn repository created.
- 2020: 0.5.1 release published.
- 2022: 0.5.4 release published.
- 2026: 0.6.0 released with Rust Edition 2024.

### Related projects

- Have I Been Pwned is the upstream breach-data service that checkpwn queries.
- checkpwn_lib is the Rust library dependency used by the CLI according to Cargo metadata.

### 来源

- <https://github.com/brycx/checkpwn>
- <https://github.com/brycx/checkpwn/releases>
- <https://github.com/brycx/checkpwn/blob/master/Cargo.toml>


## 安全说明

narrow executable package without higher-risk signals.

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


## 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

- Linux: $XDG_CONFIG_HOME/checkpwn/checkpwn.yml, ~/.config/checkpwn/checkpwn.yml
- macOS: ~/Library/Application Support/checkpwn/checkpwn.yml
- Windows: %APPDATA%\checkpwn\checkpwn.yml

## Credential files

- Linux: $XDG_CONFIG_HOME/checkpwn/checkpwn.yml, ~/.config/checkpwn/checkpwn.yml
- macOS: ~/Library/Application Support/checkpwn/checkpwn.yml
- Windows: %APPDATA%\checkpwn\checkpwn.yml
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** checkpwn
- **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

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

- Nix - checkpwn: normalized package name match | nixpkgs package indexes: pkgs/by-name/ch/checkpwn/package.nix from https://api.github.com/repos/NixOS/nixpkgs/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.
- [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.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [name-that-hash](https://pkg.so/zh-hans/brew/name-that-hash/) - Shares pkgdb curated category or tags: cli, passwords, security.
- [passwdqc](https://pkg.so/zh-hans/brew/passwdqc/) - Shares pkgdb curated category or tags: cli, passwords, security.
- [pwgen](https://pkg.so/zh-hans/brew/pwgen/) - Shares pkgdb curated category or tags: cli, passwords, security.
- [crunch](https://pkg.so/zh-hans/brew/crunch/) - Shares pkgdb curated category or tags: cli, passwords, security.
- [cracklib](https://pkg.so/zh-hans/brew/cracklib/) - Shares pkgdb curated category or tags: cli, passwords, security.
- [diceware](https://pkg.so/zh-hans/brew/diceware/) - Shares pkgdb curated category or tags: cli, passwords, security.
- [search-that-hash](https://pkg.so/zh-hans/brew/search-that-hash/) - Shares pkgdb curated category or tags: cli, passwords, security.
- [rustscan](https://pkg.so/zh-hans/brew/rustscan/) - Shares pkgdb curated category or tags: cli, rust, security.
- [pwned](https://pkg.so/zh-hans/brew/pwned/) - Security-sensitive metadata or terminology overlaps. Shared terms: been, breach, cli, have, pwned.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- 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
