# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, chocolatey, scoop, winget 安装 graphviz

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

## 安装

```sh
sudo av install brew:graphviz
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install graphviz
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install graphviz
```

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

### Linux

- apk (92%):

```sh
sudo apk add graphviz
```

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

- Debian apt (92%):

```sh
sudo apt install graphviz
```

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

- dnf (92%):

```sh
sudo dnf install graphviz
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#graphviz
```

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

- pacman (92%):

```sh
sudo pacman -S graphviz
```

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

- zypper (92%):

```sh
sudo zypper install graphviz
```

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

### Windows

- Chocolatey (92%):

```sh
choco install Graphviz
```

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

- Scoop (92%):

```sh
scoop install main/graphviz
```

  证据: Scoop official bucket manifest trees: bucket/graphviz.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Graphviz.Graphviz -e
```

  证据: Windows Package Manager source index: Graphviz.Graphviz from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:graphviz
- **软件包管理器:** Homebrew
- **版本:** 15.1.0
- **来源摘要:** Graph visualization software from AT&T and Bell Labs
- **主页:** <https://graphviz.org/>
- **最后更新:** 2026-07-02T04:55:06Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- acyclic (别名)
- bcomps (别名)
- ccomps (别名)
- circo (别名)
- cluster (别名)
- dijkstra (别名)
- dot (别名)
- dot2gxl (别名)
- dot_builtins (别名)
- dot_sandbox (别名)
- edgepaint (别名)
- fdp (别名)
- gc (别名)
- gml2gv (别名)
- graphml2gv (别名)
- gv2gml (别名)
- gv2gxl (别名)
- gvcolor (别名)
- gvgen (别名)
- gvmap (别名)
- gvmap.sh (别名)
- gvpack (别名)
- gvpr (别名)
- gxl2dot (别名)
- gxl2gv (别名)
- mm2gv (别名)
- neato (别名)
- nop (别名)
- osage (别名)
- patchwork (别名)
- prune (别名)
- sccmap (别名)
- sfdp (别名)
- tred (别名)
- twopi (别名)
- unflatten (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Graphviz is one of the durable command-line graph drawing toolkits from the Bell Labs and AT&T research tradition. Its center of gravity is the DOT language and a family of layout engines, especially dot for ranked directed graphs and neato for undirected layouts.

For package-manager users, Graphviz matters because it is both an end-user CLI suite and a system dependency. Many documentation generators, static analysis tools, build systems, notebook workflows, and language bindings call out to dot or link against Graphviz libraries rather than implementing graph layout themselves.

### 项目历史

The project's roots go back to research on drawing directed graphs for software engineering and structured data. The Graphviz history discussion by project participants describes the initial kernel as an attempt to draw software-engineering graphs, with ranking via network simplex becoming central to directed graph layout.

AT&T Bell Laboratories research papers from the early 1990s formalized the dot approach. The 1993 directed-graph drawing paper describes a four-pass algorithm for rank assignment, crossing reduction, coordinate assignment, and spline edge routing, and the later Graphviz toolkit paper frames the project as a set of stream-oriented filters, libraries, and interactive front ends.

By the early 2000s, Graphviz had expanded from dot into a family of engines and tools: neato, twopi, circo, fdp, sfdp, gvpr, sccmap, unflatten, and others. The official credits page records the long-running roles of Emden Gansner, Stephen North, John Ellson, Yifan Hu, Eleftherios Koutsofios, Gordon Woodhull, and later maintainers.

### 采用历史

Graphviz spread because it fit Unix package culture: users could write a small DOT file, pipe it through a renderer, and get PostScript, SVG, PDF, PNG, image maps, or other output without a heavyweight diagram editor. Its stream model made it easy for other tools to emit DOT as an interchange format.

The official download page documents broad operating-system packaging, including Debian and Ubuntu apt, Fedora and related dnf packages, Windows installers, and GitLab-hosted release artifacts. Homebrew, MacPorts, Nix, Scoop, Chocolatey, distro packages, and language-specific wrappers made Graphviz a common transitive dependency in developer environments.

### 使用方式

Typical CLI usage is to save a graph in DOT syntax and run an engine such as dot, neato, fdp, sfdp, circo, or twopi to produce a rendered artifact. Supporting commands such as tred, unflatten, sccmap, gvpack, gvpr, and ccomps make Graphviz useful as a graph-processing toolkit, not only as a renderer.

Graphviz is often installed so other tools can find the dot executable. Python, R, JavaScript, documentation, modeling, reverse-engineering, and CI workflows commonly generate DOT and delegate layout to the packaged Graphviz binary or libraries.

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

Graphviz is a classic example of a small CLI surface hiding a large native dependency stack: C libraries, plugins, font and image handling, multiple layout engines, and platform-specific packaging decisions. Its formulae and distro packages are watched because many higher-level packages fail in surprising ways when dot is missing.

The package is also a useful test case for long-lived open-source infrastructure moving from research lab origins into modern forge hosting. The official GitLab repository records a project imported into GitLab in 2017, while the documented algorithms and manpages preserve a much older Bell Labs lineage.

### 时间线

- 1988: The DAG directed-graph drawing program appears in the research lineage cited by Graphviz papers.
- 1993: The directed graph drawing algorithm behind dot is published in IEEE Transactions on Software Engineering.
- 1999: The Graphviz toolkit paper describes libraries, layout tools, graph filters, and stream-oriented design.
- 2003: Graphviz and Dynagraph are presented as static and dynamic graph drawing tools from AT&T Labs Research.
- 2017: The official Graphviz source repository is created on GitLab.
- 2024: The official credits page still records the multi-decade contributor base behind dot, neato, plugins, build work, and related tools.

### Related projects

- DOT language: the textual graph description language consumed by Graphviz layout engines.
- Dynagraph: a related AT&T Labs project for dynamic and incremental graph layout.
- graphviz2drawio, pydot, PyGraphviz, d3-graphviz, and many language bindings depend on Graphviz concepts, binaries, or libraries.

### 来源

- <https://forum.graphviz.org/t/the-history-of-graphviz/765>
- <https://gitlab.com/graphviz/graphviz>
- <https://graphviz.org/credits/>
- <https://graphviz.org/documentation/>
- <https://graphviz.org/documentation/EGKNW03.pdf>
- <https://graphviz.org/documentation/GN99.pdf>
- <https://graphviz.org/documentation/TSE93.pdf>
- <https://graphviz.org/download/>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal

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

- Debian apt - graphviz - 2.42.4-3: normalized package name match | Debian stable package indexes: graphviz from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | rich set of graph drawing tools | https://www.graphviz.org/
- Debian apt - graphviz-doc - 2.42.4-3: normalized package name match | Debian stable package indexes: graphviz-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | additional documentation for graphviz | https://www.graphviz.org/
- Debian apt - libcdt5 - 2.42.4-3: normalized package name match | Debian stable package indexes: libcdt5 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | rich set of graph drawing tools - cdt library | https://www.graphviz.org/
- Debian apt - libcgraph6 - 2.42.4-3: normalized package name match | Debian stable package indexes: libcgraph6 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | rich set of graph drawing tools - cgraph library | https://www.graphviz.org/
- Debian apt - libgraphviz-dev - 2.42.4-3: normalized package name match | Debian stable package indexes: libgraphviz-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | graphviz libs and headers against which to build applications | https://www.graphviz.org/
- Debian apt - libgv-guile - 2.42.4-3: normalized package name match | Debian stable package indexes: libgv-guile from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Guile bindings for graphviz | https://www.graphviz.org/
- Debian apt - libgv-lua - 2.42.4-3: normalized package name match | Debian stable package indexes: libgv-lua from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Lua bindings for graphviz | https://www.graphviz.org/
- Debian apt - libgv-perl - 2.42.4-3: normalized package name match | Debian stable package indexes: libgv-perl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Perl bindings for graphviz | https://www.graphviz.org/
- Debian apt - libgv-ruby - 2.42.4-3: normalized package name match | Debian stable package indexes: libgv-ruby from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Ruby bindings for graphviz | https://www.graphviz.org/
- Debian apt - libgv-tcl - 2.42.4-3: normalized package name match | Debian stable package indexes: libgv-tcl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Tcl bindings for graphviz | https://www.graphviz.org/
- Debian apt - libgvc6 - 2.42.4-3: normalized package name match | Debian stable package indexes: libgvc6 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | rich set of graph drawing tools - gvc library | https://www.graphviz.org/
- Debian apt - libgvc6-plugins-gtk - 2.42.4-3: normalized package name match | Debian stable package indexes: libgvc6-plugins-gtk from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | rich set of graph drawing tools - gtk plugins | https://www.graphviz.org/
- Debian apt - libgvpr2 - 2.42.4-3: normalized package name match | Debian stable package indexes: libgvpr2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | rich set of graph drawing tools - gvpr library | https://www.graphviz.org/
- Debian apt - liblab-gamut1 - 2.42.4-3: normalized package name match | Debian stable package indexes: liblab-gamut1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | rich set of graph drawing tools - liblab_gamut library | https://www.graphviz.org/
- Debian apt - libpathplan4 - 2.42.4-3: normalized package name match | Debian stable package indexes: libpathplan4 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | rich set of graph drawing tools - pathplan library | https://www.graphviz.org/
- Debian apt - libxdot4 - 2.42.4-3: normalized package name match | Debian stable package indexes: libxdot4 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | rich set of graph drawing tools - xdot library | https://www.graphviz.org/


## Combined YAML source

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