# 使用 Homebrew, apt, Nix, zypper 安装 dpic

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

## 安装

```sh
sudo av install brew:dpic
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dpic
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install dpic
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#dpic
```

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

- zypper (92%):

```sh
sudo zypper install dpic
```

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

## 软件包事实

- **软件包键:** brew:dpic
- **软件包管理器:** Homebrew
- **版本:** 2025.08.01
- **来源摘要:** Implementation of the GNU pic "little language"
- **主页:** <https://ece.uwaterloo.ca/~aplevich/dpic/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- dpic (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

dpic is J. D. Aplevich's implementation of the pic little language for line drawings and technical illustrations, with output backends for TeX-adjacent and graphics formats.

### 项目历史

The official README describes dpic as an implementation of pic for creating line drawings and illustrations for documents, web pages, and other uses. The official distribution page points to source downloads and a GitLab repository, with the 2025.08.01 source date visible on the page.

The CHANGES file shows a major 2019 source-distribution shift: the previous distribution included compilable C code together with original Pascal source, while the newer package includes C source only with parsing automated by GNU bison. The note says the Pascal had been translated to C with p2c and that the change was intended to keep correct-input behavior functionally identical.

### 采用历史

dpic's adoption is specialized: it serves users of pic-style diagram source who want output for LaTeX picture, pict2e, TikZ-pgf, PSTricks, MetaPost, SVG, xfig, PDF, and PostScript workflows. Its packaging in Homebrew, Debian/Ubuntu, Nix, and openSUSE reflects a small but durable technical-documentation niche.

### 使用方式

Users pass an input file to dpic and redirect the selected output format, for example dpic -p quick.pic > quick.tex for PSTricks or dpic -g quick.pic > quick.tex for TikZ-pgf. The -z safe mode disables sh and copy behavior.

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

dpic is package-nerd significant because it keeps an old Unix documentation language useful in modern TeX and web-output pipelines. It is also a nice example of a tiny compiler-like tool whose packaging value is mostly compatibility: if a document build expects pic-derived diagrams, the right dpic backend matters more than novelty.

### 时间线

- 2018: GitLab project metadata records the dpic repository creation.
- 2019: Major source-distribution change moved to C-only source with parsing automated by GNU bison.
- 2020-2024: CHANGES records portability, SVG, robustness, arrowhead, and text-offset fixes.
- 2025: Official distribution page lists source downloads for 2025.08.01.

### Related projects

- dpic is related to GNU pic/gpic, TeX and LaTeX picture workflows, pict2e, TikZ-pgf, PSTricks, mfpic, MetaPost, SVG, xfig, GNU bison, and the older p2c translation path mentioned in CHANGES.

### 来源

- <https://ece.uwaterloo.ca/~aplevich/dpic/ - official distribution page for source date, repository, downloads, and manual.>
- <https://ece.uwaterloo.ca/~aplevich/dpic/README - official README for purpose, usage, output formats, safe mode, and version model.>
- <https://ece.uwaterloo.ca/~aplevich/dpic/CHANGES - official change history for 2019-2025 project milestones.>
- <https://gitlab.com/api/v4/projects/aplevich%2Fdpic - official GitLab project metadata.>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - dpic - 2023.06.01-1: normalized package name match | Debian stable package indexes: dpic from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | pic-language converter to LaTeX-compatible and other formats | https://ece.uwaterloo.ca/~aplevich/dpic/
- Nix - dpic: normalized package name match | nixpkgs package indexes: pkgs/by-name/dp/dpic/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - dpic - 2023.06.01-1: normalized package name match | Ubuntu 24.04 LTS package indexes: dpic from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | pic-language converter to LaTeX-compatible and other formats | https://ece.uwaterloo.ca/~aplevich/dpic/
- zypper - dpic - 2025.08.01-1.3: normalized package name match | openSUSE Tumbleweed package metadata: dpic from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Pic language processor | https://ece.uwaterloo.ca/~aplevich/dpic/
- zypper - dpic-doc - 2025.08.01-1.3: normalized package name match | openSUSE Tumbleweed package metadata: dpic-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Documentation for dpic | https://ece.uwaterloo.ca/~aplevich/dpic/


## Combined YAML source

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