# byacc を Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop でインストール

byacc のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:byacc
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install byacc
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install byacc
```

  証拠: MacPorts ports tree: devel/byacc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add byacc
```

  証拠: Alpine Linux edge package indexes: byacc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install byacc
```

  証拠: Debian stable package indexes: byacc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install byacc
```

  証拠: Fedora Rawhide package metadata: byacc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#byacc
```

  証拠: nixpkgs package indexes: pkgs/by-name/by/byacc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S byacc
```

  証拠: Arch Linux sync databases: byacc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install byacc
```

  証拠: openSUSE Tumbleweed package metadata: byacc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/byacc
```

  証拠: Scoop official bucket manifest trees: bucket/byacc.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:byacc
- **パッケージマネージャ:** Homebrew
- **バージョン:** 20260126
- **ソース概要:** (Arguably) the best yacc variant
- **ホームページ:** <https://invisible-island.net/byacc/>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- byacc (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 20260126
## プロジェクトの歴史と使われ方

Berkeley Yacc, usually packaged as byacc, is a public-domain yacc-compatible LALR(1) parser generator. It is valued as a small, portable yacc implementation that avoids the heavier dependencies and dialect assumptions of some alternatives.

### プロジェクトの歴史

Thomas E. Dickey's official BYACC page says Robert Corbett wrote byacc around 1990 and notes Corbett was also the original author of bison. The page cites its compatibility with original yacc and records that Dickey later converted the original K&R C source to ANSI C and continued maintaining it.

The original README, preserved in the maintained source tree, states that Berkeley Yacc accepts input conforming to AT&T yacc documentation, is distributed in the public domain, and allows generated parsers to be distributed freely.

### 採用の歴史

BYACC became popular because it was fast, BSD/public-domain-friendly, and yacc-compatible. The official page quotes John Levine's later account that Corbett's implementation was faster than AT&T yacc and quickly became the most popular yacc variant.

The official related-links section points to Debian packages, FreeBSD and NetBSD sources or package collections, and notes that FreeBSD imported this maintained version into its vendor tree in 2012. The supplied package facts show broad packaging across Homebrew, Alpine, Debian, Fedora, MacPorts, Nix, Pacman, Scoop, Ubuntu, and zypper.

### 使われ方

byacc is used as a yacc replacement in build systems and compiler-toolchain work: it reads a grammar and emits C parser source. It is often chosen when projects want yacc compatibility, small generated output, permissive/public-domain licensing, and portability to non-GCC or older C environments.

### パッケージ好きにとっての重要性

byacc is package-nerd significant because it is one of the classic parser generators that still matters in modern ports trees. It is tiny but strategically important: swapping yacc implementations can change generated C, expose build assumptions, or avoid a dependency on GNU bison.

Its public-domain status and generated-parser licensing are part of why it persists in base systems, embedded build environments, and conservative packaging stacks.

### タイムライン

- 1990: Robert Corbett writes Berkeley Yacc around this period, according to the official history page.
- 1992: O'Reilly's Lex & Yacc notes byacc compatibility with original yacc, as summarized by the official page.
- 2000: Thomas E. Dickey begins ANSI C portability work while porting software to VMS.
- 2005: Dickey notes reviewing FreeBSD versus bison YYPARSE_PARAM compatibility.
- 2012: FreeBSD imports Dickey's maintained version into its vendor tree, according to the official related-links section.
- 2026: The official CHANGES file shows continuing maintenance.

### Related projects

- AT&T yacc is the compatibility baseline.
- GNU bison is the major alternative yacc-family parser generator.
- Perl-Byacc, BYACC/J, and BtYacc are related derivatives or extensions named by the official related-links section.
- flex and lex are commonly paired lexical-scanner tools in yacc-based workflows.

### ソース

- <https://github.com/ThomasDickey/byacc-snapshots>
- <https://invisible-island.net/byacc/CHANGES>
- <https://invisible-island.net/byacc/byacc.html>
- source_facts.package-manager


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## 他のパッケージマネージャ記録

- Debian apt - byacc - 1:2.0.20241231-1: normalized package name match | Debian stable package indexes: byacc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | public domain Berkeley LALR Yacc parser generator | https://invisible-island.net/byacc/
- Nix - byacc: normalized package name match | nixpkgs package indexes: pkgs/by-name/by/byacc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - byacc - 1:2.0.20221106-1: normalized package name match | Ubuntu 24.04 LTS package indexes: byacc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | public domain Berkeley LALR Yacc parser generator | https://invisible-island.net/byacc/
- apk - byacc - 20260126-r0: normalized package name match | Alpine Linux edge package indexes: byacc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The Berkeley Yacc general-purpose parser generator | https://invisible-island.net/byacc/byacc.html
- apk - byacc-doc - 20260126-r0: normalized package name match | Alpine Linux edge package indexes: byacc-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The Berkeley Yacc general-purpose parser generator (documentation) | https://invisible-island.net/byacc/byacc.html
- dnf - byacc - 2.0.20241231-4.fc45: normalized package name match | Fedora Rawhide package metadata: byacc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Berkeley Yacc, a parser generator | http://invisible-island.net/byacc/byacc.html
- pacman - byacc - 20260126-1: normalized package name match | Arch Linux sync databases: byacc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Berkeley reimplementation of the Unix parser generator Yacc | https://invisible-island.net/byacc/
- zypper - byacc - 20260126-1.3: normalized package name match | openSUSE Tumbleweed package metadata: byacc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | LALR(1) parser generator | https://invisible-island.net/byacc/byacc.html
- MacPorts - byacc: normalized package name match | MacPorts ports tree: devel/byacc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/byacc: normalized package name match | Scoop official bucket manifest trees: bucket/byacc.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

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


## ソース

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
