# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/grap>
- **版本:** 1.49
- **来源摘要:** Language for typesetting graphs
- **主页:** <https://www.lunabase.org/~faber/Vault/software/grap/>
- **仓库:** <https://github.com/snorerot13/grap>
- **上游文档:** <https://github.com/snorerot13/grap/blob/master/README>
- **许可证:** BSD-2-Clause
- **源码归档:** <https://www.lunabase.org/~faber/Vault/software/grap/grap-1.49.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- grap (cli)
- grap (别名)

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.49
- 本地数据: OK
- 上游仓库: https://www.lunabase.org/~faber/Vault/software/grap/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** grap
- **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 - 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/


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/zh-hans/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://www.automicvault.com/zh-hans/pkg/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [tectonic](https://www.automicvault.com/zh-hans/pkg/brew/tectonic/) - Shares av.db curated category or tags: cli, media, typesetting.
- [a52dec](https://www.automicvault.com/zh-hans/pkg/brew/a52dec/) - Shares av.db curated category or tags: cli, media.
- [aalib](https://www.automicvault.com/zh-hans/pkg/brew/aalib/) - Shares av.db curated category or tags: cli, media.
- [ab-av1](https://www.automicvault.com/zh-hans/pkg/brew/ab-av1/) - Shares av.db curated category or tags: cli, media.
- [abcde](https://www.automicvault.com/zh-hans/pkg/brew/abcde/) - Shares av.db curated category or tags: cli, media.
- [abcm2ps](https://www.automicvault.com/zh-hans/pkg/brew/abcm2ps/) - Shares av.db curated category or tags: cli, media.
- [abcmidi](https://www.automicvault.com/zh-hans/pkg/brew/abcmidi/) - Shares av.db curated category or tags: cli, media.
- [adplay](https://www.automicvault.com/zh-hans/pkg/brew/adplay/) - Shares av.db curated category or tags: cli, media.
- [katex](https://www.automicvault.com/zh-hans/pkg/npm/katex/) - Local package facts share a topical domain. Shared terms: cli, media, typesetting.
- [alass](https://www.automicvault.com/zh-hans/pkg/brew/alass/) - Local package facts share a topical domain. Shared terms: cli, language, media.

## Combined YAML source

View the package source record on GitHub. [combined/grap.yml](https://github.com/automic-vault/db/blob/main/combined/grap.yml)


## 来源

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