# 使用 Homebrew, apt, dnf, MacPorts, Nix, zypper 安装 mscgen

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

## 安装

```sh
sudo av install brew:mscgen
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mscgen
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mscgen
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install mscgen
```

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

- dnf (92%):

```sh
sudo dnf install mscgen
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#mscgen
```

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

- zypper (92%):

```sh
sudo zypper install mscgen
```

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

## 软件包事实

- **软件包键:** brew:mscgen
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/mscgen>
- **版本:** 0.20
- **来源摘要:** Parses Message Sequence Chart descriptions and produces images
- **主页:** <https://www.mcternan.me.uk/mscgen/>
- **上游文档:** <https://www.mcternan.me.uk/mscgen/>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://www.mcternan.me.uk/mscgen/software/mscgen-src-0.20.tar.gz>
- **最后更新:** 2026-06-13T23:35:05+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- mscgen (cli)
- mscgen (别名)

## 依赖

- freetype
- gd

## 构建依赖

- pkgconf

## 安装行为

- 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
- 管理器版本: 0.20
- 管理器更新时间: 2026-06-13
- 本地数据: OK
- 上游仓库: https://www.mcternan.me.uk/mscgen/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

mscgen is Michael McTernan's small Message Sequence Chart renderer and text language. The project page says it parses MSC descriptions and produces PNG, SVG, EPS, or server-side image-map output, with a syntax inspired by Graphviz DOT but simpler because sequence charts do not require general graph layout. It is written in ANSI C, uses the GD graphics library for PNG output, and is licensed under GPLv2.

### 使用方式

Its adoption came through documentation tooling as much as standalone diagram generation. Doxygen 1.5.2 added `\msc` and `\endmsc` support after McTernan experimented with custom Doxygen modifications, letting developers embed MSCs alongside source-code documentation in a way similar to DOT diagrams. The project page also lists packaging for distributions and integrations or extensions for AsciiDoc, Sphinx, LaTeX, Org-mode, TWiki, and JIRA. In practice, mscgen fits the Unix-documentation niche: keep diagrams as reviewable text, render them in builds or docs, and use a smaller tool when Msc-generator's broader GUI and multi-chart feature set is unnecessary.

### 来源

- <https://formulae.brew.sh/formula/mscgen>
- <https://www.mcternan.me.uk/mscgen/>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

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

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

- Debian apt - mscgen - 0.20-16: normalized package name match | Debian stable package indexes: mscgen from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Message Sequence Chart (MSC) generator | https://www.mcternan.me.uk/mscgen/
- Nix - mscgen: normalized package name match | nixpkgs package indexes: pkgs/by-name/ms/mscgen/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - mscgen - 0.20-15: normalized package name match | Ubuntu 24.04 LTS package indexes: mscgen from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Message Sequence Chart (MSC) generator | https://www.mcternan.me.uk/mscgen/
- Ubuntu apt - mscgen-dbgsym - 0.20-15: normalized package name match | Ubuntu 24.04 LTS package indexes: mscgen-dbgsym from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | debug symbols for mscgen
- dnf - mscgen - 0.20-44.fc45: normalized package name match | Fedora Rawhide package metadata: mscgen from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Message Sequence Chart rendering program | http://www.mcternan.me.uk/mscgen/
- zypper - mscgen - 0.20-3.31: normalized package name match | openSUSE Tumbleweed package metadata: mscgen from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Message Sequence Chart Renderer | http://www.mcternan.me.uk/mscgen/
- MacPorts - mscgen: normalized package name match | MacPorts ports tree: graphics/mscgen/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [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.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [freetype](https://pkg.so/zh-hans/brew/freetype/) - Runtime dependency declared by Homebrew.
- [gd](https://pkg.so/zh-hans/brew/gd/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [plantuml](https://pkg.so/zh-hans/brew/plantuml/) - Shares pkgdb curated category or tags: cli, developer-tools, diagramming, documentation.
- [mermaid-cli](https://pkg.so/zh-hans/brew/mermaid-cli/) - Shares pkgdb curated category or tags: cli, developer-tools, documentation, png, svg.
- [msc-generator](https://pkg.so/zh-hans/brew/msc-generator/) - Shares pkgdb curated category or tags: cli, developer-tools, diagramming, message-sequence-chart.
- [svgbob](https://pkg.so/zh-hans/brew/svgbob/) - Shares pkgdb curated category or tags: cli, developer-tools, diagramming, svg.
- [d2](https://pkg.so/zh-hans/brew/d2/) - Shares pkgdb curated category or tags: cli, developer-tools, diagramming.
- [clang-uml](https://pkg.so/zh-hans/brew/clang-uml/) - Shares pkgdb curated category or tags: cli, developer-tools, diagramming.
- [eralchemy](https://pkg.so/zh-hans/brew/eralchemy/) - Shares pkgdb curated category or tags: cli, developer-tools, diagramming.
- [likec4](https://pkg.so/zh-hans/brew/likec4/) - Shares pkgdb curated category or tags: cli, developer-tools, diagramming.

## Combined YAML source

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