# 使用 Homebrew, apt, dnf, MacPorts, Nix, pacman 安装 ditaa

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

## 安装

```sh
sudo av install brew:ditaa
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ditaa
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ditaa
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install ditaa
```

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

- dnf (92%):

```sh
sudo dnf install ditaa
```

  证据: Fedora Rawhide package metadata: ditaa 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#ditaa
```

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

- pacman (92%):

```sh
sudo pacman -S ditaa
```

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

## 软件包事实

- **软件包键:** brew:ditaa
- **软件包管理器:** Homebrew
- **版本:** 0.11.0
- **来源摘要:** Convert ASCII diagrams into proper bitmap graphics
- **主页:** <https://ditaa.sourceforge.net/>
- **仓库:** <https://github.com/stathissideris/ditaa>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ditaa (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

ditaa is a Java command-line utility that converts diagrams drawn in ASCII art into bitmap graphics. It became a familiar helper for people who wanted text-first diagrams in documentation but nicer rendered output for readers.

### 项目历史

The official README expands the name as 'DIagrams Through Ascii Art' and says the author built it partly for hack value and partly to modernize ASCII diagrams in old FAQs, text documents, source comments, and markup formats. The GitHub repository was created in 2011, while the project site and README preserve the older Java-utility style of distribution.

### 采用历史

The README notes packaging for Ubuntu and Homebrew, which reflects ditaa's role as a small documentation-adjacent utility rather than a full application platform. Its longevity comes from a stable input format: diagrams remain editable as plain text and can be re-rendered as the tool improves.

### 使用方式

Users invoke the jar or packaged ditaa command against a text diagram and output an image. The tool recognizes ASCII line art, shape markup, color codes, tags for document or storage shapes, HTML pre blocks, transparency, antialiasing, SVG output, scaling, and other rendering options.

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

ditaa is notable because it treats ASCII diagrams as source code: diffable, embeddable in comments or docs, and convertible during builds. That makes it a natural package-manager resident for documentation pipelines and text-centric developer workflows.

### 时间线

- 2011: Official GitHub repository created.
- 2010s: README documents Ubuntu and Homebrew package availability.
- 2022: Repository metadata shows maintenance activity into the 2020s.

### Related projects

- Graphviz and PlantUML serve adjacent diagram-as-code workflows, but ditaa is unusual in rendering free-form ASCII art rather than a formal graph language.
- DocBook, HTML, LaTeX, and Javadoc are named in the README as text-based formats where rendered diagrams can be embedded.

### 来源

- <https://ditaa.sourceforge.net/>
- <https://github.com/stathissideris/ditaa#readme>
- <https://api.github.com/repos/stathissideris/ditaa>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - ditaa - 0.10+ds1-1.4: normalized package name match | Debian stable package indexes: ditaa from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | convert ASCII diagrams into proper bitmap graphics | https://ditaa.sourceforge.net
- Nix - ditaa: normalized package name match | nixpkgs package indexes: pkgs/by-name/di/ditaa/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - ditaa - 0.10+ds1-1.4: normalized package name match | Ubuntu 24.04 LTS package indexes: ditaa from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | convert ASCII diagrams into proper bitmap graphics | https://ditaa.sourceforge.net
- dnf - ditaa - 0.10-33.fc45: normalized package name match | Fedora Rawhide package metadata: ditaa from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Diagrams Through ASCII Art | http://ditaa.sourceforge.net/
- pacman - ditaa - 0.11.0-4: normalized package name match | Arch Linux sync databases: ditaa from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Utility for converting ASCII art diagrams into bitmaps | https://github.com/stathissideris/ditaa
- MacPorts - ditaa: normalized package name match | MacPorts ports tree: java/ditaa/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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