# Install dpic with Homebrew, apt, Nix, zypper

Implementation of the GNU pic "little language". Version 2025.08.01 via Homebrew; verified from local package data. Also installable with debian: sudo apt install dpic.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install dpic
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install dpic
```

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:dpic
- **Package manager:** Homebrew
- **Version:** 2025.08.01
- **Source summary:** Implementation of the GNU pic "little language"
- **Homepage:** <https://ece.uwaterloo.ca/~aplevich/dpic/>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- dpic (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 2025.08.01
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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.>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Other Package-Manager Records

- 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)


## Sources

- 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
