# Install libpaper with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Library for handling paper characteristics. Version 2.2.8 via Homebrew; verified 2026-05-16.

## Install

```sh
sudo av install brew:libpaper
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libpaper
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libpaper
```

  Evidence: MacPorts ports tree: print/libpaper/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add libpaper
```

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

- Debian apt (92%):

```sh
sudo apt install libpaper-dev
```

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

- dnf (92%):

```sh
sudo dnf install libpaper
```

  Evidence: Fedora Rawhide package metadata: libpaper 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#libpaper
```

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

- pacman (92%):

```sh
sudo pacman -S libpaper
```

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

- zypper (92%):

```sh
sudo zypper install libpaper
```

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

## Package facts

- **Package key:** brew:libpaper
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/libpaper>
- **Version:** 2.2.8
- **Source summary:** Library for handling paper characteristics
- **Homepage:** <https://github.com/rrthomas/libpaper>
- **Repository:** <https://github.com/rrthomas/libpaper>
- **Upstream docs:** <https://github.com/rrthomas/libpaper#readme>
- **License:** LGPL-2.1-or-later
- **Source archive:** <https://github.com/rrthomas/libpaper/releases/download/v2.2.8/libpaper-2.2.8.tar.gz>
- **Last updated:** 2026-05-16T18:44:37Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- paper (cli)
- paperconf (cli)
- paper (alias)
- paperconf (alias)

## Build dependencies

- help2man

## 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: 2.2.8
- Package-manager updated: 2026-05-16
- Local data: ok
- Upstream repository: https://github.com/rrthomas/libpaper
- info: No cached GitHub release or tag data was available.
## Project history and usage

libpaper is a small Unix library and command-line toolkit for discovering and configuring preferred paper sizes, so document and printing tools can avoid hard-coded A4-versus-letter assumptions.

### Project history

The original Debian libpaper design was proposed by Yves Arrouye in 1996 as a way for programs to use /etc/papersize at runtime, support a catalog of paper names, and avoid recompiling or rewriting package scripts when the system default changed.

Reuben Thomas's maintained libpaper package builds on that design. Its README says it enables users to indicate their preferred paper size, provides the paper utility, specifies system-wide and per-user paper-size catalogues, and keeps paperconf for compatibility with libpaper version 1.

### Adoption history

libpaper became a distribution-level convention because many unrelated tools need the same answer: what paper size should this system or user prefer? Debian manpages document paperconf, while modern libpaper manpages document the newer paper command and XDG-aware user files.

### How it is used

Programs can call the library, shell scripts can call paper or paperconf, and users can set PAPERSIZE or write papersize files. The modern paper command checks PAPERSIZE, the user's XDG papersize file, locale paper defaults, /etc/papersize, and paper-size catalogues.

### Why package nerds care

libpaper is a tiny package with an outsized packaging lesson: internationalization sometimes means centralizing one mundane default. It exists so PostScript, TeX, printing, and document tools can share policy without every package growing its own paper-size configuration machinery.

### Timeline

- 1996: Yves Arrouye proposed using a libpaper library and /etc/papersize for runtime paper-size defaults in Debian.
- 2001: The Debian paperconf manpage documented PAPERSIZE, PAPERCONF, and /etc/papersize behavior.
- 2013: Reuben Thomas's libpaper line started its copyright period and superseded his earlier paper package.
- 2024: paper 2.2.5 manpages documented XDG_CONFIG_HOME/papersize and locale fallback behavior.

### Related projects

- paper is the newer command-line interface for querying paper sizes.
- paperconf is the compatibility command from libpaper version 1.
- psutils and other document-processing tools are natural consumers of libpaper because they need named paper sizes.

### Sources

- <https://github.com/rrthomas/libpaper>
- <https://github.com/rrthomas/libpaper/releases>
- <https://lists.debian.org/debian-devel/1996/06/msg00116.html>
- <https://man.archlinux.org/man/extra/libpaper/paper.1.en>
- <https://manpages.debian.org/unstable/libpaper-utils/paperconf.1.en.html>


## Security Notes

No matching local secret-handling manifest was found for libpaper. Nucleus package metadata is still published here so future coverage has a stable package URL.



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: $XDG_CONFIG_HOME/papersize, $XDG_CONFIG_HOME/paperspecs, @sysconfdir@/papersize, @sysconfdir@/paperspecs
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libpaper
- **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 - libpaper-dev - 2.2.5-0.3+b2: normalized package name match | Debian stable package indexes: libpaper-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Paper sizes catalogue (development files) | https://github.com/rrthomas/libpaper
- Debian apt - libpaper-utils - 2.2.5-0.3+b2: normalized package name match | Debian stable package indexes: libpaper-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Paper sizes catalogue (utilities) | https://github.com/rrthomas/libpaper
- Debian apt - libpaper2 - 2.2.5-0.3+b2: normalized package name match | Debian stable package indexes: libpaper2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Paper sizes catalogue | https://github.com/rrthomas/libpaper
- Nix - libpaper: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libpaper/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libpaper-dev - 1.1.29build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libpaper-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library for handling paper characteristics (development files)
- Ubuntu apt - libpaper-utils - 1.1.29build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libpaper-utils from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library for handling paper characteristics (utilities)
- Ubuntu apt - libpaper1 - 1.1.29build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libpaper1 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library for handling paper characteristics
- apk - libpaper - 2.2.6-r0: normalized package name match | Alpine Linux edge package indexes: libpaper from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Library for handling paper characteristics | https://github.com/rrthomas/libpaper/
- apk - libpaper-dev - 2.2.6-r0: normalized package name match | Alpine Linux edge package indexes: libpaper-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Library for handling paper characteristics (development files) | https://github.com/rrthomas/libpaper/
- apk - libpaper-doc - 2.2.6-r0: normalized package name match | Alpine Linux edge package indexes: libpaper-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Library for handling paper characteristics (documentation) | https://github.com/rrthomas/libpaper/
- dnf - libpaper - 2.1.1-10.fc44: normalized package name match | Fedora Rawhide package metadata: libpaper from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Library and tools for handling papersize | https://github.com/rrthomas/libpaper/
- dnf - libpaper-devel - 2.1.1-10.fc44: normalized package name match | Fedora Rawhide package metadata: libpaper-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Headers/Libraries for developing programs that use libpaper | https://github.com/rrthomas/libpaper/
- dnf - paper - 2.1.1-10.fc44: normalized package name match | Fedora Rawhide package metadata: paper from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Print paper size information | https://github.com/rrthomas/libpaper/
- pacman - libpaper - 2.2.8-1: normalized package name match | Arch Linux sync databases: libpaper from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Library for handling paper characteristics | https://github.com/rrthomas/libpaper
- zypper - libpaper - 2.2.8-1.1: normalized package name match | openSUSE Tumbleweed package metadata: libpaper from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Enables users to indicate their preferred paper size | https://github.com/rrthomas/libpaper
- zypper - libpaper-devel - 2.2.8-1.1: normalized package name match | openSUSE Tumbleweed package metadata: libpaper-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | This package contains the development files needed by libpaper | https://github.com/rrthomas/libpaper


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [help2man](https://www.automicvault.com/pkg/brew/help2man/) - Build dependency declared by Homebrew.
- [a2ps](https://www.automicvault.com/pkg/brew/a2ps/) - Popular package that depends on this formula.
- [paperjam](https://www.automicvault.com/pkg/brew/paperjam/) - Popular package that depends on this formula.
- [psutils](https://www.automicvault.com/pkg/brew/psutils/) - Popular package that depends on this formula.
- [cups](https://www.automicvault.com/pkg/brew/cups/) - Shares av.db curated category or tags: cli, printing, system, unix.
- [augeas](https://www.automicvault.com/pkg/brew/augeas/) - Shares av.db curated category or tags: cli, configuration, library, system.
- [bash](https://www.automicvault.com/pkg/brew/bash/) - Shares av.db curated category or tags: cli, system, unix.
- [borgmatic](https://www.automicvault.com/pkg/brew/borgmatic/) - Shares av.db curated category or tags: cli, configuration, system.
- [bork](https://www.automicvault.com/pkg/brew/bork/) - Shares av.db curated category or tags: cli, system, unix.
- [cahute](https://www.automicvault.com/pkg/brew/cahute/) - Shares av.db curated category or tags: cli, library, system.
- [chmlib](https://www.automicvault.com/pkg/brew/chmlib/) - Shares av.db curated category or tags: cli, library, system.
- [cpu_features](https://www.automicvault.com/pkg/brew/cpu-features/) - Shares av.db curated category or tags: cli, library, system.
- [displayplacer](https://www.automicvault.com/pkg/brew/displayplacer/) - Local package facts share a topical domain. Shared terms: cli, configuration, system.
- [fcp](https://www.automicvault.com/pkg/brew/fcp/) - Local package facts share a topical domain. Shared terms: cli, system, unix.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
