# Install libxpm with Homebrew, apk, apt, dnf, Nix, pacman, zypper

X.Org: X Pixmap (XPM) image file format library. Version 3.5.19 via Homebrew; verified 2026-07-04.

## Install

```sh
sudo av install brew:libxpm
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libxpm
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add libxpm
```

  Evidence: Alpine Linux edge package indexes: libxpm from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install libxpm-dev
```

  Evidence: Debian stable package indexes: libxpm-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install libXpm
```

  Evidence: Fedora Rawhide package metadata: libXpm from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#libxpm
```

  Evidence: nixpkgs package indexes: pkgs/by-name/li/libxpm/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S libxpm
```

  Evidence: Arch Linux sync databases: libxpm from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install libXpm-devel
```

  Evidence: openSUSE Tumbleweed package metadata: libXpm-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:libxpm
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/libxpm>
- **Version:** 3.5.19
- **Source summary:** X.Org: X Pixmap (XPM) image file format library
- **Homepage:** <https://www.x.org/>
- **Repository:** <https://gitlab.freedesktop.org/xorg/lib/libxpm>
- **Upstream docs:** <https://gitlab.freedesktop.org/xorg/lib/libxpm>
- **License:** MIT
- **Source archive:** <https://xorg.freedesktop.org/archive/individual/lib/libXpm-3.5.19.tar.gz>
- **Last updated:** 2026-07-04T13:13:42+09:00
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- cxpm (cli)
- cxpm (alias)

## Dependencies

- gettext
- libx11

## Build dependencies

- gettext
- pkgconf

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 3.5.19
- Package-manager updated: 2026-07-04
- Local data: ok
- Upstream repository: https://www.x.org/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

libXpm is the X.Org library for the X Pixmap image format, the text-based color-pixmap format associated with X11 icons, cursors, and small UI images. It packages both the legacy file format support and the cxpm validation utility.

### Project history

The X.Org repository README identifies libXpm as the X Pixmap image file format library and points development to freedesktop.org GitLab. The preserved NEWS.old file carries Groupe Bull copyright years 1989-95 and a detailed history of user-visible library changes through the 1990s.

The XPM format grew out of XBM's C-source-friendly bitmap model into a color pixmap format with symbolic colors and transparency. X.Org's archived sxpm manual documents support for XPM versions 1, 2, and 3 and describes sxpm as a viewer and converter for older XPM files.

### Adoption history

libXpm was adopted because X11 applications needed small color icons and pixmaps in a format that could be stored as plain text and embedded in C source. The library traveled with X.Org and downstream distributions, so applications could keep reading old XPM assets without each toolkit carrying its own parser.

### How it is used

Applications use libXpm to read and write XPM data as X images or pixmaps, while the cxpm tool checks XPM files. Package builds also care about its optional compressed-file behavior because historically libXpm could invoke compress, uncompress, or gzip when opening .Z or .gz pixmap files.

### Why package nerds care

libXpm is a classic example of X11 compatibility baggage that still matters. It is small, old, and easy to overlook, yet it appears in dependency graphs for graphical software and has had security-sensitive parser behavior, including compressed-file handling and fixes for malformed image inputs.

### Timeline

- 1989: Groupe Bull copyright begins for the XPM code preserved in NEWS.old.
- 1995: NEWS.old copyright range ends at 1989-95 while 3.4-era releases continue.
- 1996: libXpm 3.4h and 3.4j entries document portability and API improvements.
- 1998: libXpm 3.4k added the cxpm checker according to NEWS.old.
- 2009: X.Org archived the X11R7.5 sxpm manual describing XPM 1, 2, and 3 support.

### Related projects

- libXpm belongs to the X.Org/X11 library family and is related to XBM, Xlib image and pixmap APIs, sxpm, cxpm, and older desktop icon assets used by X applications.

### Sources

- <https://gitlab.freedesktop.org/xorg/lib/libxpm>
- <https://gitlab.freedesktop.org/xorg/lib/libxpm/-/raw/master/NEWS.old>
- <https://gitlab.freedesktop.org/xorg/lib/libxpm/-/raw/master/README.md>
- <https://www.x.org/archive/X11R7.5/doc/man/man1/sxpm.1.html>


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

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

## Other Package-Manager Records

- Debian apt - libxpm-dev - 1:3.5.17-1+b3: normalized package name match | Debian stable package indexes: libxpm-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | X11 pixmap library (development headers) | https://www.x.org
- Debian apt - libxpm4 - 1:3.5.17-1+b3: normalized package name match | Debian stable package indexes: libxpm4 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | X11 pixmap library | https://www.x.org
- Debian apt - xpmutils - 1:3.5.17-1+b3: normalized package name match | Debian stable package indexes: xpmutils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | X11 pixmap utilities | https://www.x.org
- Nix - libxpm: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libxpm/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libxpm-dev - 1:3.5.17-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libxpm-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | X11 pixmap library (development headers) | https://www.x.org
- Ubuntu apt - libxpm4 - 1:3.5.17-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libxpm4 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | X11 pixmap library | https://www.x.org
- Ubuntu apt - xpmutils - 1:3.5.17-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: xpmutils from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | X11 pixmap utilities | https://www.x.org
- apk - libxpm - 3.5.19-r0: normalized package name match | Alpine Linux edge package indexes: libxpm from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | X11 pixmap library | https://xorg.freedesktop.org/
- apk - libxpm-dev - 3.5.19-r0: normalized package name match | Alpine Linux edge package indexes: libxpm-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | X11 pixmap library (development files) | https://xorg.freedesktop.org/
- apk - libxpm-doc - 3.5.19-r0: normalized package name match | Alpine Linux edge package indexes: libxpm-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | X11 pixmap library (documentation) | https://xorg.freedesktop.org/
- dnf - libXpm - 3.5.17-7.fc44: normalized package name match | Fedora Rawhide package metadata: libXpm from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | X.Org X11 libXpm runtime library | http://www.x.org
- dnf - libXpm-devel - 3.5.17-7.fc44: normalized package name match | Fedora Rawhide package metadata: libXpm-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | X.Org X11 libXpm development package | http://www.x.org
- pacman - libxpm - 3.5.19-1: normalized package name match | Arch Linux sync databases: libxpm from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | X11 pixmap library | https://xorg.freedesktop.org/
- zypper - libXpm-devel - 3.5.18-2.2: normalized package name match | openSUSE Tumbleweed package metadata: libXpm-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development files for the X Pixmap image file format library | https://xorg.freedesktop.org/
- zypper - libXpm-devel-32bit - 3.5.18-2.2: normalized package name match | openSUSE Tumbleweed package metadata: libXpm-devel-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development files for the X Pixmap image file format library | https://xorg.freedesktop.org/
- zypper - libXpm-tools - 3.5.18-2.2: normalized package name match | openSUSE Tumbleweed package metadata: libXpm-tools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Conversion utilities for X Pixmap (XPM) files | https://xorg.freedesktop.org/


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://www.automicvault.com/pkg/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [gettext](https://www.automicvault.com/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [ddd](https://www.automicvault.com/pkg/brew/ddd/) - Popular package that depends on this formula.
- [fricas](https://www.automicvault.com/pkg/brew/fricas/) - Popular package that depends on this formula.
- [grace](https://www.automicvault.com/pkg/brew/grace/) - Popular package that depends on this formula.
- [nedit](https://www.automicvault.com/pkg/brew/nedit/) - Popular package that depends on this formula.
- [xfig](https://www.automicvault.com/pkg/brew/xfig/) - Popular package that depends on this formula.
- [xterm](https://www.automicvault.com/pkg/brew/xterm/) - Popular package that depends on this formula.
- [font-util](https://www.automicvault.com/pkg/brew/font-util/) - Shares the same upstream homepage.
- [libxcvt](https://www.automicvault.com/pkg/brew/libxcvt/) - Shares av.db curated category or tags: cli, system, x11, xorg.
- [mkfontscale](https://www.automicvault.com/pkg/brew/mkfontscale/) - Shares av.db curated category or tags: cli, system, x11, xorg.
- [xauth](https://www.automicvault.com/pkg/brew/xauth/) - Shares av.db curated category or tags: cli, system, x11, xorg.
- [xcursorgen](https://www.automicvault.com/pkg/brew/xcursorgen/) - Shares av.db curated category or tags: cli, system, x11, xorg.
- [xdpyinfo](https://www.automicvault.com/pkg/brew/xdpyinfo/) - Shares av.db curated category or tags: cli, system, x11, xorg.
- [xeyes](https://www.automicvault.com/pkg/brew/xeyes/) - Shares av.db curated category or tags: cli, system, x11, xorg.
- [xinit](https://www.automicvault.com/pkg/brew/xinit/) - Shares av.db curated category or tags: cli, system, x11, xorg.
- [xinput](https://www.automicvault.com/pkg/brew/xinput/) - Shares av.db curated category or tags: cli, system, x11, xorg.
- [xorg-server](https://www.automicvault.com/pkg/brew/xorg-server/) - Both packages work with overlapping file formats or content types. Shared terms: cli, image, libx11, system, x11.

## Combined YAML source

View the package source record on GitHub. [combined/libxpm.yml](https://github.com/automic-vault/db/blob/main/combined/libxpm.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
