# 使用 Homebrew, apt, Nix 安装 grap

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

## 安装

```sh
sudo av install brew:grap
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install grap
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install grap
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#grap
```

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

## 软件包事实

- **软件包键:** brew:grap
- **软件包管理器:** Homebrew
- **版本:** 1.49
- **来源摘要:** Language for typesetting graphs
- **主页:** <https://www.lunabase.org/~faber/Vault/software/grap/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- grap (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

grap is an implementation of the Bell Labs grap language for typesetting graphs in troff, groff, TeX, and other document-formatting pipelines that can consume pic output.

### 项目历史

The grap language was specified and first implemented by Brian Kernighan and Jon Bentley at Bell Labs. Ted Faber's implementation was written because groff did not include a free grap implementation, and the repository describes it as an implementation of Kernighan and Bentley's language.

The project preserves a classic Unix documentation workflow: a small language is processed into pic, then included in typeset documents. That lineage places grap beside troff preprocessors such as pic, tbl, and eqn.

### 采用历史

grap is niche but durable because it solves a specific documentation problem for users who still value text-based, reproducible graph descriptions inside Unix typesetting systems. It appears in package managers for people maintaining historical troff/groff workflows or converting old documents.

### 使用方式

Users write graph descriptions in grap, run the preprocessor to generate pic, and let pic/troff, groff, or TeX-oriented workflows render the graph in a document.

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

grap matters to package nerds because it is a preservation-friendly Unix tool: tiny, source-buildable, text-oriented, and useful mainly when the rest of a document toolchain is installed correctly.

### 时间线

- 1986: Bentley and Kernighan published GRAP, a language for typesetting graphs, in Communications of the ACM.
- 1998-2009: Ted Faber copyright range shown in the repository README.
- 2025-04-16: Lunabase project page listed version 1.49.

### Related projects

- pic is the immediate output language and troff/groff are the common formatting environments.
- TeX can participate through workflows that consume pic-generated output.
- The original Bell Labs language is the historical source for Ted Faber's implementation.

### 来源

- <https://dl.acm.org/doi/10.1145/6424.6429>
- <https://github.com/snorerot13/grap>
- <https://www.lunabase.org/~faber/Vault/software/grap/>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

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

- Debian apt - grap - 1.49-1: normalized package name match | Debian stable package indexes: grap from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | program for typesetting graphs | https://www.lunabase.org/~faber/Vault/software/grap/
- Nix - grap: normalized package name match | nixpkgs package indexes: pkgs/by-name/gr/grap/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - grap - 1.47-1: normalized package name match | Ubuntu 24.04 LTS package indexes: grap from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | program for typesetting graphs | https://www.lunabase.org/~faber/Vault/software/grap/


## Combined YAML source

View the package source record on GitHub. [combined/grap.yml](https://github.com/mxcl/pkgdb/blob/main/combined/grap.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
