Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop 安装 bison

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install bison

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install bison

MacPorts ports tree · devel/bison/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add bison

Alpine Linux edge package indexes · bison · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install bison

Debian stable package indexes · bison · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install bison

Fedora Rawhide package metadata · bison · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#bison

nixpkgs package indexes · pkgs/by-name/bi/bison/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S bison

Arch Linux sync databases · bison · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install bison

openSUSE Tumbleweed package metadata · bison · 来源: download.opensuse.org

Windows

Scoop已验证 · 92%
scoop install main/bison

Scoop official bucket manifest trees · bucket/bison.json · 来源: api.github.com

概览

软件包摘要

Parser generator

命令和别名

  • bison
  • yacc

历史

项目历史与用法

GNU Bison is GNU's parser generator: a source-compatible successor to the classic Unix yacc workflow that reads a grammar and produces parser code. In package-manager culture it is one of the canonical build-time tools that appears quietly in dependency graphs for compilers, shells, interpreters, database tools, and other software with real grammars.

项目历史

Bison began as a GNU replacement for yacc, the parser generator associated with early Unix compiler construction. The GNU manual credits Robert Corbett's public-domain parser generator as the starting point and Richard Stallman with making it into Bison, with later development by GNU maintainers including Wilfred Hansen, Tom Tromey, Akim Demaille, Paul Eggert, and others.

The project kept yacc compatibility as a central design goal while adding GNU extensions, better diagnostics, multiple parser skeletons, GLR parsing support, internationalized diagnostics, and support for modern C and C++ parser workflows. That combination made it both a historical compatibility tool and an actively maintained compiler-construction utility.

采用历史

Bison was adopted because it let free software projects build yacc-style parsers without relying on proprietary Unix yacc implementations. Autoconf-era source packages commonly checked for bison or yacc, and many distributions install Bison as part of their developer-tool stack.

The package metadata in this batch shows Bison available through Homebrew, Debian, Ubuntu, Fedora, Arch, Alpine, MacPorts, Nix, Scoop, and openSUSE. That breadth reflects its role as infrastructure: many users never invoke bison directly, but their package builds do.

使用方式

Bison is usually run during a build or release process: a maintainer writes a grammar file, Bison generates parser source, and the generated code is compiled into the consuming program. It is also installed as yacc on some systems or used through a yacc-compatible wrapper for software that expects the historical command name.

Its common neighbors are Flex or lex for tokenization, Autotools for build orchestration, and compilers such as GCC or Clang for the generated parser code. Packagers care about whether projects ship generated parsers in release tarballs or require Bison at build time.

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

Bison is package-nerd bedrock because it explains a surprisingly large class of build failures: wrong Bison version, missing yacc compatibility, regenerated parser files changing generated C, or release tarballs that assume maintainers have GNU parser tools installed.

It is also a living link between early Unix language tooling and modern reproducible builds. A package can depend on it for one generated file, but that file may define the grammar of a shell, language, configuration format, or SQL dialect.

时间线

  • 1970s: yacc establishes the parser-generator workflow in Unix compiler tooling.
  • 1980s: GNU Bison is created as a free yacc-compatible parser generator based on Robert Corbett's public-domain work and GNU development.
  • 1990s-2000s: Bison becomes a routine dependency in Autotools-based free software builds.
  • 2000s-2010s: Bison adds modern parser features such as stronger diagnostics, C++ support, and GLR parsing.
  • 2020s: Bison remains packaged across Unix-like distributions and Homebrew as a core compiler-construction tool.

Related projects

  • yacc is the historical Unix parser generator whose interface Bison intentionally follows.
  • Berkeley Yacc and byacc are alternative yacc-compatible parser generators.
  • Flex and lex are the usual scanner-generator companions to Bison grammars.
  • Autoconf and Automake often discover or invoke Bison in source-package build systems.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 13 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
bisoncli全局可执行文件
yacccli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本3.8.2
管理器更新时间2026-06-13
本地数据OK
上游not checked
检测到的最新版本未检测到

https://www.gnu.org/software/bison/

安装元数据

软件包元数据

软件包键brew:bison
版本3.8.2
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/bison
主页https://www.gnu.org/software/bison/
仓库https://git.savannah.gnu.org/git/bison.git
上游文档https://www.gnu.org/software/bison
许可证GPL-3.0-or-later
源码归档https://ftpmirror.gnu.org/gnu/bison/bison-3.8.2.tar.xz
最后更新2026-06-13T01:03:19+02:00
Pulseupdated
macOS 提供的库m4
Bottle可用 (于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namebison
Aliases
  • bison@3.8
Version Scheme1
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyyes
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

bison 2:3.8.2+dfsg-1+b2

YACC-compatible parser generator

https://www.gnu.org/software/bison/

sudo apt install bison
  • Section: devel
  • Architecture: amd64
  • Source Package: bison
  • 2 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Bison
Debian stable package indexes · deb.debian.org · Debian stable package indexes: bison from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

bison++ 1.21.11-5+b1

Generate a parser in c or c++ from BNF notation

sudo apt install bison++
  • Section: devel
  • Architecture: amd64
  • Source Package: bison++
  • 3 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Bison
Debian stable package indexes · deb.debian.org · Debian stable package indexes: bison++ from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libbison-dev 2:3.8.2+dfsg-1+b2

YACC-compatible parser generator - development library

https://www.gnu.org/software/bison/

sudo apt install libbison-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: bison
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Bison
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libbison-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

bison

nix profile install nixpkgs#bison
  • normalized package name match
  • 匹配方式:Bison
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/bi/bison/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

bison 2:3.8.2+dfsg-1build2

YACC-compatible parser generator

https://www.gnu.org/software/bison/

sudo apt install bison
  • Section: devel
  • Architecture: amd64
  • 2 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Bison
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: bison from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

bison++ 1.21.11-5

Generate a parser in c or c++ from BNF notation

sudo apt install bison++
  • Section: universe/devel
  • Architecture: amd64
  • 3 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Bison
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: bison++ from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libbison-dev 2:3.8.2+dfsg-1build2

YACC-compatible parser generator - development library

https://www.gnu.org/software/bison/

sudo apt install libbison-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: bison
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Bison
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libbison-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk95%

bison 3.8.2-r3

The GNU general-purpose parser generator

https://www.gnu.org/software/bison/bison.html

sudo apk add bison
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: bison
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Bison
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: bison from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

bison-doc 3.8.2-r3

The GNU general-purpose parser generator (documentation)

https://www.gnu.org/software/bison/bison.html

sudo apk add bison-doc
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: bison
  • normalized package name match
  • 匹配方式:Bison
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: bison-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

bison 3.8.2-15.fc44

GNU general-purpose parser generator

https://www.gnu.org/software/bison/

sudo dnf install bison
  • License: GPL-3.0-or-later AND GPL-3.0-or-later WITH Autoconf-exception-generic-3.0 AND GPL-3.0-or-later WITH Bison-exception-2.2 AND GPL-2.0-or-later AND
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: bison
  • 3 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Bison
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: bison from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

bison-devel 3.8.2-15.fc44

-ly library for development using Bison-generated parsers

https://www.gnu.org/software/bison/

sudo dnf install bison-devel
  • License: GPL-3.0-or-later AND GPL-3.0-or-later WITH Autoconf-exception-generic-3.0 AND GPL-3.0-or-later WITH Bison-exception-2.2 AND GPL-2.0-or-later AND
  • Category: Unspecified
  • Architecture: i686
  • Source Package: bison
  • 2 提供
  • normalized package name match
  • 匹配方式:Bison
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: bison-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

bison-runtime 3.8.2-15.fc44

Runtime support files used by Bison-generated parsers

https://www.gnu.org/software/bison/

sudo dnf install bison-runtime
  • License: GPL-3.0-or-later AND GPL-3.0-or-later WITH Autoconf-exception-generic-3.0 AND GPL-3.0-or-later WITH Bison-exception-2.2 AND GPL-2.0-or-later AND
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: bison
  • 1 提供
  • normalized package name match
  • 匹配方式:Bison
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: bison-runtime from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

bison 3.8.2-8

The GNU general-purpose parser generator

https://www.gnu.org/software/bison/bison.html

sudo pacman -S bison
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • 4 依赖
  • normalized package name match
  • 匹配方式:Bison
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: bison from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz
zypper95%

bison 3.8.2-3.12

The GNU Parser Generator

https://www.gnu.org/software/bison/bison.html

sudo zypper install bison
  • License: GPL-3.0-or-later
  • Category: Development/Languages/C and C++
  • Architecture: x86_64
  • Source Package: bison
  • 3 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Bison
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: bison from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

bison-32bit 3.8.2-3.12

The GNU Parser Generator

https://www.gnu.org/software/bison/bison.html

sudo zypper install bison-32bit
  • License: GPL-3.0-or-later
  • Category: Development/Languages/C and C++
  • Architecture: x86_64
  • Source Package: bison
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Bison
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: bison-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

bison-lang 3.8.2-3.12

Translations for package bison

https://www.gnu.org/software/bison/bison.html

sudo zypper install bison-lang
  • License: GPL-3.0-or-later
  • Category: System/Localization
  • Architecture: noarch
  • Source Package: bison
  • 1 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Bison
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: bison-lang from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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