# 使用 Homebrew, apk 安装 abnfgen

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

## 安装

```sh
sudo av install brew:abnfgen
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install abnfgen
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add abnfgen
```

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

## 软件包事实

- **软件包键:** brew:abnfgen
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/abnfgen>
- **版本:** 0.21
- **来源摘要:** Quickly generate random documents that match an ABFN grammar
- **主页:** <https://www.quut.com/abnfgen/>
- **上游文档:** <https://www.quut.com/abnfgen>
- **许可证:** LicenseRef-Homebrew-cannot-represent
- **源码归档:** <https://www.quut.com/abnfgen/abnfgen-0.21.tar.gz>
- **最后更新:** 2026-05-26T23:37:46-04:00
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- abnfgen (cli)
- abnfgen (别名)

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.21
- 管理器更新时间: 2026-05-26
- 本地数据: OK
- 上游仓库: https://www.quut.com/abnfgen/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

abnfgen is a small Unix-style command-line generator that reads ABNF grammars and produces random documents matching those grammars for parser and protocol testing.

### 项目历史

The official page presents abnfgen as an alpha tool, copyrighted but free for any use, with version 0.21 offered as the current tarball release. Its bundled manual page is dated 4 March 2002, reflecting the tool's long-standing role in ABNF test-case generation.

### 采用历史

The official distribution is a source tarball that requires a C compiler and a Unix-like environment. The input package facts show that Homebrew and Alpine package it, which fits its niche as a compact test-data generator used from shell scripts and packaging systems.

### 使用方式

abnfgen takes one or more grammar files and generates text from the selected start symbol. Its options include coverage-oriented generation, deterministic random seeds, output file counts, recursion depth limits, tentative definitions, and strict modes for rejecting extensions beyond the referenced ABNF syntax.

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

Package maintainers care about abnfgen because it is a focused C utility with no documented runtime service or credentials, and it solves a practical standards-testing problem: generating concrete examples from ABNF grammars commonly used in RFCs and protocol specifications.

### 时间线

- 2002: Official manual page date for abnfgen(1).
- 2026: Official page lists abnfgen 0.21 as the current version.

### Related projects

- The official page and manual connect abnfgen to ABNF as used in RFC 4234-era Internet standards grammar descriptions and mention RFC 7405 string-literal handling.

### 来源

- Official quut.com abnfgen(1) manual: options, grammar behavior, and 4 March 2002 manpage date.
- Official quut.com project page: purpose, use cases, alpha status, current tarball, Unix-like build requirement.
- input source_facts.package-manager: Homebrew and Alpine package names.


## 安全说明

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

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

- apk - abnfgen - 0.21-r0: normalized package name match | Alpine Linux edge package indexes: abnfgen from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | ABNF-grammar test case generator | https://www.quut.com/abnfgen/
- apk - abnfgen-doc - 0.21-r0: normalized package name match | Alpine Linux edge package indexes: abnfgen-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | ABNF-grammar test case generator (documentation) | https://www.quut.com/abnfgen/


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [allure](https://www.automicvault.com/zh-hans/pkg/brew/allure/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [artillery](https://www.automicvault.com/zh-hans/pkg/brew/artillery/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [buildpulse-test-reporter](https://www.automicvault.com/zh-hans/pkg/brew/buildpulse-test-reporter/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [busted](https://www.automicvault.com/zh-hans/pkg/brew/busted/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [bzt](https://www.automicvault.com/zh-hans/pkg/brew/bzt/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [cargo-fuzz](https://www.automicvault.com/zh-hans/pkg/brew/cargo-fuzz/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [cargo-hack](https://www.automicvault.com/zh-hans/pkg/brew/cargo-hack/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [cargo-insta](https://www.automicvault.com/zh-hans/pkg/brew/cargo-insta/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [msw-auto-mock](https://www.automicvault.com/zh-hans/pkg/npm/msw-auto-mock/) - Local package facts share a topical domain. Shared terms: cli, data, developer, developer-tools, generate.
- [csmith](https://www.automicvault.com/zh-hans/pkg/brew/csmith/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, developer, developer-tools, generation, random.
- [gotests](https://www.automicvault.com/zh-hans/pkg/brew/gotests/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, developer, developer-tools, generate, generation.

## Combined YAML source

View the package source record on GitHub. [combined/abnfgen.yml](https://github.com/automic-vault/db/blob/main/combined/abnfgen.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
