# 使用 Homebrew, apt, MacPorts, Nix 安装 crunch

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

## 安装

```sh
sudo av install brew:crunch
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install crunch
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install crunch
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install crunch
```

  证据: Debian stable package indexes: crunch from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#crunch
```

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

## 软件包事实

- **软件包键:** brew:crunch
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/crunch>
- **版本:** 3.6
- **来源摘要:** Wordlist generator
- **主页:** <https://sourceforge.net/projects/crunch-wordlist/>
- **上游文档:** <https://sourceforge.net/projects/crunch-wordlist/>
- **许可证:** GPL-2.0-only
- **源码归档:** <https://downloads.sourceforge.net/project/crunch-wordlist/crunch-wordlist/crunch-3.6.tgz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- crunch (cli)
- crunch (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.6
- 本地数据: OK
- 上游仓库: https://sourceforge.net/projects/crunch-wordlist/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Crunch is a small GPL wordlist generator used in password-auditing workflows. Its package-manager identity is tied less to a large upstream ecosystem than to its role as a compact command-line tool that can emit large, patterned candidate lists for other security tools.

### 项目历史

The upstream readme credits Crunch version 1.0 to mimayin and dates the initial release to 2004 based on copyright metadata. Later versions were maintained by bofh28, with the changelog showing the tool evolving through character-set files, output splitting, resume support, compression, pattern syntax, Unicode support, and archive-format support.

### 采用历史

Crunch remained a SourceForge-hosted utility rather than a larger platform project, but it became broadly packaged because its interface is simple and useful in security lab environments. The supplied package metadata lists it in Homebrew, Debian, Ubuntu, MacPorts, and Nix, which matches its role as a portable Unix-style CLI.

### 使用方式

Users commonly run Crunch to generate all combinations or permutations from a standard or custom character set, often piping the output into password-auditing tools or writing very large wordlist files. The upstream changelog explicitly calls out work on output chunking, files larger than 2 GB, resume behavior, compression, and pattern handling, all of which are package-nerd details that matter when a formula is used in long-running shell pipelines.

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

For packagers, Crunch is the classic kind of security formula: a C command-line program, a manpage/readme as the main documentation surface, and a stable executable name that matters more than a rich library API. Its SourceForge code and release files make provenance straightforward, while its use in potentially huge output pipelines makes predictable builds and path installation important.

### 时间线

- 2004: Version 1.0 initial release is recorded in the upstream changelog.
- 2008-2012: Later copyrights and changelog entries show continued maintenance by bofh28.
- 2014: SourceForge file metadata shows the readme updated alongside the 3.x release series.

### Related projects

- Crunch is commonly used alongside password-auditing and cracking tools that consume generated candidate lists, such as John the Ripper-style workflows mentioned in the upstream changelog.

### 来源

- <https://sourceforge.net/projects/crunch-wordlist/>
- <https://sourceforge.net/projects/crunch-wordlist/files/crunch-wordlist/readme.txt>
- <https://sourceforge.net/p/crunch-wordlist/code>


## 安全说明

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:** crunch
- **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

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

- Debian apt - crunch - 3.6-3: normalized package name match | Debian stable package indexes: crunch from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | tool for creating wordlist | http://sourceforge.net/projects/crunch-wordlist/
- Nix - crunch: normalized package name match | nixpkgs package indexes: pkgs/by-name/cr/crunch/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - crunch - 3.6-3: normalized package name match | Ubuntu 24.04 LTS package indexes: crunch from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | tool for creating wordlist | http://sourceforge.net/projects/crunch-wordlist/
- MacPorts - crunch: normalized package name match | MacPorts ports tree: security/crunch/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.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer 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.
- [pwgen](https://pkg.so/zh-hans/brew/pwgen/) - Shares pkgdb curated category or tags: cli, generator, passwords, security.
- [cracklib](https://pkg.so/zh-hans/brew/cracklib/) - Shares pkgdb curated category or tags: cli, passwords, security.
- [name-that-hash](https://pkg.so/zh-hans/brew/name-that-hash/) - 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.
- [checkpwn](https://pkg.so/zh-hans/brew/checkpwn/) - 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.
- [hydra](https://pkg.so/zh-hans/brew/hydra/) - Shares pkgdb curated category or tags: cli, password-auditing, security.
- [diceware](https://pkg.so/zh-hans/brew/diceware/) - Shares pkgdb curated category or tags: cli, passwords, security, wordlists.
- [dc3dd](https://pkg.so/zh-hans/brew/dc3dd/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, security.

## Combined YAML source

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