# xfig を Homebrew, apk, apt, dnf, MacPorts, Nix, zypper でインストール

xfig のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:xfig
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install xfig
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install xfig
```

  証拠: MacPorts ports tree: graphics/xfig/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add xfig
```

  証拠: Alpine Linux edge package indexes: xfig from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install xfig
```

  証拠: Debian stable package indexes: xfig from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install xfig
```

  証拠: Fedora Rawhide package metadata: xfig 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#xfig
```

  証拠: nixpkgs package indexes: pkgs/by-name/xf/xfig/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install xfig
```

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

## パッケージ情報

- **パッケージキー:** brew:xfig
- **パッケージマネージャ:** Homebrew
- **バージョン:** 3.2.9a
- **ソース概要:** Facility for interactive generation of figures
- **ホームページ:** <https://mcj.sourceforge.net/>
- **最終更新:** 2026-06-25T13:38:12+02:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- xfig (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 3.2.9a
## プロジェクトの歴史と使われ方

Xfig is a long-running interactive vector drawing program for the X Window System. Its package niche is not desktop publishing in general, but Unix diagramming: users draw in the plain-text Fig format, then use fig2dev, formerly TransFig, to export figures into PostScript, PDF, bitmap formats, LaTeX-family formats such as PSTricks and TikZ, and other technical-documentation targets.

### プロジェクトの歴史

The official Fig format documentation preserves Xfig's early authorship trail: FIG began in 1985 with Supoj Sutanthavibul, Brian V. Smith is credited for parts from 1989 onward, and Paul King for parts in 1991. That lineage fits Xfig's place as a classic X11 application: a mouse-driven Athena-widget-era drawing editor that survived because it produced useful technical diagrams in a scriptable, inspectable file format.

Xfig evolved with its file format and export pipeline. Fig format 3.2 added header fields such as paper size, magnification, multiple-page state, and transparent GIF color, and replaced older spline models with X-splines based on the SIGGRAPH 1995 spline model. Later user-visible evolution included autoconf-based builds, PDF and TikZ export workflows through fig2dev, embedded PDF/image handling, and Unicode-oriented text work in the 3.2.9 line.

### 採用の歴史

Xfig became common in Unix and scientific communities because it sat between hand drawing and document build systems. The manual describes availability as pre-built packages across Linux distributions, BSDs, Darwin packaging systems, Cygwin, and Homebrew-era macOS, which is exactly the adoption pattern of old X11 tools that remain useful to technical users.

Its adoption is also visible in the surrounding ecosystem. The official installation page lists tools that read or write Fig files, including gnuplot, pstoedit, hp2xx, plotutils, and specialized utilities. That made the Fig format a practical interchange format for plots, diagrams, schematics, and document figures even when Xfig itself was only one step in the workflow.

### 使われ方

Typical use is interactive: run `xfig`, draw lines, boxes, splines, text, imported images, layers, and symbols, then save a `.fig` file. Export and print workflows rely on fig2dev, either invoked from Xfig or run separately, to produce formats suitable for papers, manuals, slides, web images, and TeX documents.

Package-manager users still care about Xfig because it is small, local, and file-oriented. A `.fig` file is text, easy to version, and easier to regenerate than a binary drawing document. For old papers, lab notes, network diagrams, and LaTeX projects, installing Xfig plus fig2dev is often the shortest path to opening or rebuilding legacy figures.

### パッケージ好きにとっての重要性

Xfig is package-nerd archaeology with practical teeth: an X11 GUI whose real contract is a durable file format and converter backend. It demonstrates how a graphical Unix program can remain package-worthy for decades when its files are text, its exporters are command-line friendly, and its output plugs into documentation toolchains.

It is also a reminder that GUI packages can be infrastructure. Downstream packages and users often need Xfig not for everyday drawing, but because a source tree, thesis, or engineering archive contains `.fig` files that must still render correctly.

### タイムライン

- 1985: FIG begins with Supoj Sutanthavibul, according to the official Fig format copyright notice.
- 1989: Brian V. Smith begins contributing parts of Xfig, as recorded in the official format documentation.
- 1991: Paul King contributes parts of the program, also recorded in the official format documentation.
- 1995: Fig 3.2 adopts X-splines, citing the SIGGRAPH 1995 X-splines paper.
- About 2016: the export companion package name changes from TransFig to fig2dev in the official installation guidance.
- 3.2.9 era: Xfig adds more modern text handling, including UTF-8 internal text for Fig files and anti-aliased canvas fonts.

### Related projects

- fig2dev, formerly TransFig, is the converter backend that makes Xfig useful for print, bitmap, PDF, and TeX-oriented output.
- gnuplot, pstoedit, hp2xx, and GNU plotutils are related because they can produce, consume, or convert Fig-oriented technical graphics.
- Tgif, Ipe, and WinFIG occupy nearby territory as vector drawing tools for technical diagrams, X11-style workflows, or Fig-compatible editing.

### ソース

- <https://mcj.sourceforge.net/fig-format.html>
- <https://mcj.sourceforge.net/installation.html>
- <https://mcj.sourceforge.net/introduction.html>
- <https://mcj.sourceforge.net/new_features.html>
- <https://sourceforge.net/p/mcj/xfig/ci/master/tree>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## 他のパッケージマネージャ記録

- Debian apt - xfig - 1:3.2.9a-3: normalized package name match | Debian stable package indexes: xfig from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Facility for Interactive Generation of figures under X11 | https://sourceforge.net/projects/mcj/
- Debian apt - xfig-doc - 1:3.2.9a-3: normalized package name match | Debian stable package indexes: xfig-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | XFig on-line documentation and examples | https://sourceforge.net/projects/mcj/
- Debian apt - xfig-libs - 1:3.2.9a-3: normalized package name match | Debian stable package indexes: xfig-libs from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | XFig image libraries and examples | https://sourceforge.net/projects/mcj/
- Nix - xfig: normalized package name match | nixpkgs package indexes: pkgs/by-name/xf/xfig/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - xfig - 1:3.2.9-2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: xfig from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Facility for Interactive Generation of figures under X11 | https://sourceforge.net/projects/mcj/
- Ubuntu apt - xfig-doc - 1:3.2.9-2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: xfig-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | XFig on-line documentation and examples | https://sourceforge.net/projects/mcj/
- Ubuntu apt - xfig-libs - 1:3.2.9-2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: xfig-libs from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | XFig image libraries and examples | https://sourceforge.net/projects/mcj/
- apk - xfig - 3.2.9a-r1: normalized package name match | Alpine Linux edge package indexes: xfig from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Interactive drawing tool which runs under X Window System | https://mcj.sourceforge.net/
- apk - xfig-doc - 3.2.9a-r1: normalized package name match | Alpine Linux edge package indexes: xfig-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Interactive drawing tool which runs under X Window System (documentation) | https://mcj.sourceforge.net/
- dnf - xfig - 3.2.9a-3.20250317gitce9782a.fc45: normalized package name match | Fedora Rawhide package metadata: xfig from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | An X Window System tool for drawing basic vector graphics | https://en.wikipedia.org/wiki/Xfig
- zypper - xfig - 3.2.9a-2.6: normalized package name match | openSUSE Tumbleweed package metadata: xfig from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Facility for Interactive Generation of Figures under the X Window System | https://sourceforge.net/projects/mcj/
- MacPorts - xfig: normalized package name match | MacPorts ports tree: graphics/xfig/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/xfig.yml](https://github.com/mxcl/pkgdb/blob/main/combined/xfig.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
