# 使用 Homebrew, dnf 安装 brainfuck

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

## 安装

```sh
sudo av install brew:brainfuck
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install brainfuck
```

  证据: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install brainfuck
```

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

## 软件包事实

- **软件包键:** brew:brainfuck
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/brainfuck>
- **版本:** 2.7.3
- **来源摘要:** Interpreter for the brainfuck language
- **主页:** <https://github.com/fabianishere/brainfuck>
- **仓库:** <https://github.com/fabianishere/brainfuck>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/fabianishere/brainfuck/archive/refs/tags/2.7.3.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- brainfuck (cli)
- brainfuck (别名)

## 构建依赖

- cmake

## macOS 提供的库

- libedit

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.7.3
- 本地数据: OK
- 上游仓库: https://github.com/fabianishere/brainfuck
- 检测到的最新版本: 2.7.3 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

fabianishere/brainfuck is a C implementation of a Brainfuck interpreter. It packages the esoteric language as a conventional Unix-style CLI with file execution, direct evaluation, an interactive console, examples, and a small C API.

### 项目历史

The GitHub repository was created in November 2011. The official README describes the project as a Brainfuck interpreter written in C, built with CMake and a C compiler, with libedit used for interactive console support.

Official Git tags show a long-lived small project, from early 0.1.x tags through 2.7.x tags. The repository README lists multiple contributors and includes an examples directory of Brainfuck programs with attribution where possible.

### 采用历史

The input package facts record Homebrew and Fedora DNF packaging. That is modest adoption, but enough to make the interpreter available through mainstream package managers rather than only as source code.

As a package, its role is mostly educational and recreational: it gives users a ready-made interpreter for an esoteric language often used in programming-language demonstrations and code-golf culture.

### 使用方式

The README documents running brainfuck with files, using --eval to run code directly, --version and --help, and opening an interactive console when no arguments are passed.

The project also exposes a C API around parsing, execution context creation, execution, and cleanup, so it can be embedded or used as a small interpreter library in addition to the command-line binary.

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

This package is not historically important as a unique interpreter, but it is a neat package-manager specimen: an esoteric language runtime small enough to ship everywhere and useful for testing terminals, compilers, examples, and packaging workflows.

Its significance comes from Brainfuck's cultural footprint among programmers, plus the practical convenience of having a maintained C interpreter available from Homebrew and DNF.

### 时间线

- 2011-11: The GitHub repository was created.
- 2011-2012: Official Git tags include early 0.1.x and 0.2.x releases.
- 2022: Official repository metadata shows activity into February 2022.
- 2022: Official Git tags include the 2.7.x release line.

### Related projects

- Brainfuck is the esoteric programming language implemented by the package.
- libedit is the line-editing dependency named by the README.
- CMake, Clang, and GCC are listed build-time tools for compiling the interpreter.

### 来源

- <https://api.github.com/repos/fabianishere/brainfuck>
- <https://github.com/fabianishere/brainfuck#readme>
- <https://github.com/fabianishere/brainfuck/tags>
- source_facts.package-manager


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** brainfuck
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- dnf - brainfuck - 0.1.0.4-10.fc45: normalized package name match | Fedora Rawhide package metadata: brainfuck from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Brainfuck interpreter | https://hackage.haskell.org/package/brainfuck
- dnf - ghc-brainfuck - 0.1.0.4-10.fc45: normalized package name match | Fedora Rawhide package metadata: ghc-brainfuck from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Haskell brainfuck library | https://hackage.haskell.org/package/brainfuck
- dnf - ghc-brainfuck-devel - 0.1.0.4-10.fc45: normalized package name match | Fedora Rawhide package metadata: ghc-brainfuck-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Haskell brainfuck library development files | https://hackage.haskell.org/package/brainfuck
- dnf - ghc-brainfuck-doc - 0.1.0.4-10.fc45: normalized package name match | Fedora Rawhide package metadata: ghc-brainfuck-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Haskell brainfuck library documentation | https://hackage.haskell.org/package/brainfuck
- dnf - ghc-brainfuck-prof - 0.1.0.4-10.fc45: normalized package name match | Fedora Rawhide package metadata: ghc-brainfuck-prof from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Haskell brainfuck profiling library | https://hackage.haskell.org/package/brainfuck


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [lolcode](https://pkg.so/zh-hans/brew/lolcode/) - Shares pkgdb curated category or tags: c, cli, interpreter, language-runtime, programming-language.
- [ruby](https://pkg.so/zh-hans/brew/ruby/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime, programming-language.
- [lua](https://pkg.so/zh-hans/brew/lua/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime, programming-language.
- [gauche](https://pkg.so/zh-hans/brew/gauche/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime, programming-language.
- [gambit-scheme](https://pkg.so/zh-hans/brew/gambit-scheme/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime, programming-language.
- [mujs](https://pkg.so/zh-hans/brew/mujs/) - Shares pkgdb curated category or tags: c, cli, interpreter, language-runtime.
- [lua@5.4](https://pkg.so/zh-hans/brew/lua-5-4/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime, programming-language.
- [janet](https://pkg.so/zh-hans/brew/janet/) - Shares pkgdb curated category or tags: c, cli, language-runtime, programming-language.
- [three-body](https://pkg.so/zh-hans/brew/three-body/) - Local package facts share a topical domain. Shared terms: cli, interpreter, language, language-runtime, programming.
- [kona](https://pkg.so/zh-hans/brew/kona/) - Local package facts share a topical domain. Shared terms: cli, interpreter, language, language-runtime, programming.
- [bic](https://pkg.so/zh-hans/brew/bic/) - Local package facts share a topical domain. Shared terms: c, cli, interpreter, language, language-runtime.

## Combined YAML source

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


## 来源

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