# 使用 Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper 安装 re2c

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

## 安装

```sh
sudo av install brew:re2c
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install re2c
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install re2c
```

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

### Linux

- apk (92%):

```sh
sudo apk add re2c
```

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

- Debian apt (92%):

```sh
sudo apt install re2c
```

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

- dnf (92%):

```sh
sudo dnf install re2c
```

  证据: Fedora Rawhide package metadata: re2c from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#re2c
```

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

- pacman (92%):

```sh
sudo pacman -S re2c
```

  证据: Arch Linux sync databases: re2c from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install re2c
```

  证据: openSUSE Tumbleweed package metadata: re2c from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install re2c
```

  证据: Chocolatey community package catalog: re2c from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','rambox'

## 软件包事实

- **软件包键:** brew:re2c
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/re2c>
- **版本:** 4.5.1
- **来源摘要:** Generate C-based recognizers from regular expressions
- **主页:** <https://re2c.org/>
- **仓库:** <https://github.com/skvadrik/re2c>
- **上游文档:** <https://re2c.org/>
- **许可证:** LicenseRef-Homebrew-public-domain
- **源码归档:** <https://github.com/skvadrik/re2c/releases/download/4.5.1/re2c-4.5.1.tar.xz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- re2c (cli)
- re2d (cli)
- re2go (cli)
- re2hs (cli)
- re2js (cli)
- re2ocaml (cli)
- re2py (cli)
- re2rust (cli)
- re2swift (cli)
- re2v (cli)
- re2zig (cli)
- re2c (别名)
- re2d (别名)
- re2go (别名)
- re2hs (别名)
- re2js (别名)
- re2ocaml (别名)
- re2py (别名)
- re2rust (别名)
- re2swift (别名)
- re2v (别名)
- re2zig (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 4.5.1
- 本地数据: OK
- 上游仓库: https://github.com/skvadrik/re2c
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.

## 安全说明

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:** re2c
- **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 - re2c - 4.1-1: normalized package name match | Debian stable package indexes: re2c from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | lexer generator for C, C++, Go, Java, Python, Rust, and others | https://re2c.org
- Nix - re2c: normalized package name match | nixpkgs package indexes: pkgs/by-name/re/re2c/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - re2c - 3.1-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: re2c from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | lexer generator for C, C++, Go and Rust | https://re2c.org
- apk - re2c - 4.5.1-r0: normalized package name match | Alpine Linux edge package indexes: re2c from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Lexer generator for C, C++ and Go | https://re2c.org/
- apk - re2c-doc - 4.5.1-r0: normalized package name match | Alpine Linux edge package indexes: re2c-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Lexer generator for C, C++ and Go (documentation) | https://re2c.org/
- dnf - re2c - 3.1-7.fc45: normalized package name match | Fedora Rawhide package metadata: re2c from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Tool for generating C, C++, and go recognizers from regular expressions | https://re2c.org/
- pacman - re2c - 4.5.1-1: normalized package name match | Arch Linux sync databases: re2c from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A tool for generating C-based recognizers from regular expressions | https://re2c.org
- zypper - re2c - 4.5.1-1.3: normalized package name match | openSUSE Tumbleweed package metadata: re2c from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Tool for generating C-based recognizers from regular expressions | https://re2c.org/
- MacPorts - re2c: normalized package name match | MacPorts ports tree: devel/re2c/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - re2c: normalized package name match | Chocolatey community package catalog: re2c from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','rambox'


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [bison](https://pkg.so/zh-hans/brew/bison/) - Shares pkgdb curated category or tags: cli, compiler-tools, developer-tools.
- [lit](https://pkg.so/zh-hans/brew/lit/) - Shares pkgdb curated category or tags: cli, compiler-tools, developer-tools.
- [byacc](https://pkg.so/zh-hans/brew/byacc/) - Shares pkgdb curated category or tags: cli, compiler-tools, developer-tools.
- [antlr](https://pkg.so/zh-hans/brew/antlr/) - Shares pkgdb curated category or tags: cli, compiler-tools, developer-tools.
- [mcpp](https://pkg.so/zh-hans/brew/mcpp/) - Shares pkgdb curated category or tags: cli, compiler-tools, developer-tools.
- [quex](https://pkg.so/zh-hans/brew/quex/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, lexer-generator.
- [grex](https://pkg.so/zh-hans/brew/grex/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, regular-expressions.
- [alive2](https://pkg.so/zh-hans/brew/alive2/) - Shares pkgdb curated category or tags: cli, compiler-tools, developer-tools.
- [cloog](https://pkg.so/zh-hans/brew/cloog/) - Local package facts share a topical domain. Shared terms: cli, code, code-generation, compiler, compiler-tools.
- [jflex](https://pkg.so/zh-hans/brew/jflex/) - Local package facts share a topical domain. Shared terms: cli, compiler, compiler-tools, developer, developer-tools.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
