# Install abnfgen with Homebrew, apk

Quickly generate random documents that match an ABFN grammar. Version 0.21 via Homebrew; verified 2026-05-26.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install abnfgen
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add abnfgen
```

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

## Package facts

- **Package key:** brew:abnfgen
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/abnfgen>
- **Version:** 0.21
- **Source summary:** Quickly generate random documents that match an ABFN grammar
- **Homepage:** <https://www.quut.com/abnfgen/>
- **Upstream docs:** <https://www.quut.com/abnfgen>
- **License:** LicenseRef-Homebrew-cannot-represent
- **Source archive:** <https://www.quut.com/abnfgen/abnfgen-0.21.tar.gz>
- **Last updated:** 2026-05-26T23:37:46-04:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- abnfgen (cli)
- abnfgen (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.21
- Package-manager updated: 2026-05-26
- Local data: ok
- Upstream repository: https://www.quut.com/abnfgen/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

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

## Other Package-Manager Records

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


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [allure](https://www.automicvault.com/pkg/brew/allure/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [artillery](https://www.automicvault.com/pkg/brew/artillery/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [buildpulse-test-reporter](https://www.automicvault.com/pkg/brew/buildpulse-test-reporter/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [busted](https://www.automicvault.com/pkg/brew/busted/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [bzt](https://www.automicvault.com/pkg/brew/bzt/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [cargo-fuzz](https://www.automicvault.com/pkg/brew/cargo-fuzz/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [cargo-hack](https://www.automicvault.com/pkg/brew/cargo-hack/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [cargo-insta](https://www.automicvault.com/pkg/brew/cargo-insta/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [csmith](https://www.automicvault.com/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/pkg/brew/gotests/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, developer, developer-tools, generate, generation.
- [cargo-nextest](https://www.automicvault.com/pkg/brew/cargo-nextest/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, developer, developer-tools, generation, test.

## Combined YAML source

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


## Sources

- 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
