# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

## 软件包事实

- **软件包键:** brew:brainfuck
- **软件包管理器:** Homebrew
- **版本:** 2.7.3
- **来源摘要:** Interpreter for the brainfuck language
- **主页:** <https://github.com/fabianishere/brainfuck>
- **仓库:** <https://github.com/fabianishere/brainfuck>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- brainfuck (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.7.3
## 项目历史与用法

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

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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Haskell brainfuck profiling library | https://hackage.haskell.org/package/brainfuck


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
