# Install libgpg-error with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Common error values for all GnuPG components. Version 1.61 via Homebrew; verified 2026-05-07.

## Install

```sh
sudo av install brew:libgpg-error
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libgpg-error
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libgpg-error
```

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

### Linux

- apk (92%):

```sh
sudo apk add libgpg-error
```

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

- Debian apt (92%):

```sh
sudo apt install gpgrt-tools
```

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

- dnf (92%):

```sh
sudo dnf install libgpg-error
```

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

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

- pacman (92%):

```sh
sudo pacman -S libgpg-error
```

  Evidence: Arch Linux sync databases: libgpg-error from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz

- zypper (92%):

```sh
sudo zypper install libgpg-error-devel
```

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

## Package facts

- **Package key:** brew:libgpg-error
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/libgpg-error>
- **Version:** 1.61
- **Source summary:** Common error values for all GnuPG components
- **Homepage:** <https://www.gnupg.org/related_software/libgpg-error/>
- **Repository:** <https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgpg-error.git>
- **Upstream docs:** <https://www.gnupg.org/software/libgpg-error/index.html>
- **License:** LGPL-2.1-or-later
- **Source archive:** <https://gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.61.tar.bz2>
- **Last updated:** 2026-05-07T15:39:16Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- gpg-error (cli)
- gpg-error-config (cli)
- gpgrt-config (cli)
- yat2m (cli)
- gpg-error (alias)
- gpg-error-config (alias)
- gpgrt-config (alias)
- yat2m (alias)

## Dependencies

- gettext

## 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: 1.61
- Package-manager updated: 2026-05-07
- Local data: ok
- Upstream repository: https://www.gnupg.org/related_software/libgpg-error/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

Libgpg-error is the small but central GnuPG runtime library that gives GnuPG components a common vocabulary for error codes and error handling. Over time it also accumulated reusable runtime pieces such as streams, printf-style functions, locks, Base64 helpers, logging, option parsing, and Windows portability support.

### Project history

The GnuPG project describes Libgpg-error as a library that originally defined common error values for GPG, GPGSM, GPGME, GPG-Agent, libgcrypt, Libksba, DirMngr, Pinentry, SCdaemon, and related components. The project page also notes the long-term plan to rename the library to Libgpgrt, reflecting its broader role as the GnuPG runtime.

The public repository history dates back to 2003 in the GitHub mirror, and the official tarball directory records a long sequence of 1.x releases. By the 2020s, release notes document new gpgrt-prefixed process APIs, name-value helpers, Windows registry helpers, cross-compilation work, and platform fixes.

### Adoption history

Libgpg-error is adopted mostly by being pulled in as a dependency of the GnuPG stack. A system that builds libgcrypt, GPGME, pinentry, or GnuPG itself generally needs the common error/runtime layer first.

Package managers expose it as both a library and a small tool package; the Homebrew batch input lists gpg-error, gpg-error-config, gpgrt-config, and yat2m executables. Debian and Ubuntu package the tools under gpgrt-tools, which reflects the project's gradual Libgpgrt naming direction.

### How it is used

Developers use Libgpg-error directly when writing code in the GnuPG ecosystem or when they need the library's gpgrt runtime services. Most users encounter it indirectly through cryptographic packages that rely on GnuPG libraries.

At build time, gpgrt-config and gpg-error-config help downstream software discover headers, compiler flags, and linker flags, making the package part of the familiar Unix library toolchain.

### Why package nerds care

This is the kind of tiny library that explains why cryptographic packages have deep dependency chains. It appears boring, but if it is missing or mismatched, libgcrypt, GPGME, and larger GnuPG builds fail early.

The rename pressure toward gpgrt is package-nerd notable: package names, tool names, headers, and downstream dependencies do not all switch at once, so distributions carry both the historical libgpg-error identity and newer gpgrt-facing interfaces.

### Timeline

- 2003-06-05: The GitHub mirror includes repository history from this date.
- 2020-11-19: The GnuPG project page source was last changed, describing the gpgrt.h direction.
- 2024-06-19: Version 1.50 added a new set of process spawn functions.
- 2025-04-08: Version 1.52 added name-value file APIs, string-list APIs, and Windows registry helpers.
- 2026-05-07: Version 1.61 fixed es_printf and vfnameconcat security-related bugs and added Emscripten cross-compile support.

### Related projects

- GnuPG, libgcrypt, GPGME, Libksba, Pinentry, DirMngr, and SCdaemon are direct members of the ecosystem that use the shared error/runtime layer.
- Libgpgrt is the intended runtime-library identity reflected by gpgrt-prefixed functions, gpgrt.h, and gpgrt-config.
- Homebrew, Debian, Ubuntu, Fedora, Arch, and other package managers distribute it as a foundational GnuPG dependency.

### Sources

- <https://github.com/gpg/libgpg-error>
- <https://github.com/gpg/libgpg-error/blob/master/NEWS>
- <https://github.com/gpg/libgpg-error/blob/master/README>
- <https://gnupg.org/ftp/gcrypt/libgpg-error/>
- <https://www.gnupg.org/software/libgpg-error/index.html>


## Security Notes

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


## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libgpg-error
- **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 - gpgrt-tools - 1.51-4: normalized package name match | Debian stable package indexes: gpgrt-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GnuPG development runtime library (executable tools) | https://www.gnupg.org/related_software/libgpg-error/
- Debian apt - libgpg-error-dev - 1.51-4: normalized package name match | Debian stable package indexes: libgpg-error-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GnuPG development runtime library (developer tools) | https://www.gnupg.org/related_software/libgpg-error/
- Debian apt - libgpg-error-l10n - 1.51-4: normalized package name match | Debian stable package indexes: libgpg-error-l10n from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library of error values and messages in GnuPG (localization files) | https://www.gnupg.org/related_software/libgpg-error/
- Debian apt - libgpg-error-mingw-w64-dev - 1.51-4: normalized package name match | Debian stable package indexes: libgpg-error-mingw-w64-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library of error values and messages in GnuPG (Windows development) | https://www.gnupg.org/related_software/libgpg-error/
- Debian apt - libgpg-error0 - 1.51-4: normalized package name match | Debian stable package indexes: libgpg-error0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GnuPG development runtime library | https://www.gnupg.org/related_software/libgpg-error/
- Nix - libgpg-error: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libgpg-error/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gpgrt-tools - 1.47-3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: gpgrt-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GnuPG development runtime library (executable tools) | https://www.gnupg.org/related_software/libgpg-error/
- Ubuntu apt - libgpg-error-dev - 1.47-3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libgpg-error-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | GnuPG development runtime library (developer tools) | https://www.gnupg.org/related_software/libgpg-error/
- Ubuntu apt - libgpg-error-l10n - 1.47-3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libgpg-error-l10n from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library of error values and messages in GnuPG (localization files) | https://www.gnupg.org/related_software/libgpg-error/
- Ubuntu apt - libgpg-error-mingw-w64-dev - 1.47-3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libgpg-error-mingw-w64-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library of error values and messages in GnuPG (Windows development) | https://www.gnupg.org/related_software/libgpg-error/
- Ubuntu apt - libgpg-error0 - 1.47-3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libgpg-error0 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | GnuPG development runtime library | https://www.gnupg.org/related_software/libgpg-error/
- apk - libgpg-error - 1.61-r0: normalized package name match | Alpine Linux edge package indexes: libgpg-error from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Support library for libgcrypt | https://www.gnupg.org/
- apk - libgpg-error-dev - 1.61-r0: normalized package name match | Alpine Linux edge package indexes: libgpg-error-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Support library for libgcrypt (development files) | https://www.gnupg.org/
- apk - libgpg-error-doc - 1.61-r0: normalized package name match | Alpine Linux edge package indexes: libgpg-error-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Support library for libgcrypt (documentation) | https://www.gnupg.org/
- apk - libgpg-error-lisp - 1.61-r0: normalized package name match | Alpine Linux edge package indexes: libgpg-error-lisp from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Support library for libgcrypt | https://www.gnupg.org/
- apk - libgpg-error-static - 1.61-r0: normalized package name match | Alpine Linux edge package indexes: libgpg-error-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | libgpg-error static libraries | https://www.gnupg.org/


## Related links

- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched curated package taxonomy and local package facts.
- [gettext](https://www.automicvault.com/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [aide](https://www.automicvault.com/pkg/brew/aide/) - Popular package that depends on this formula.
- [bitlbee](https://www.automicvault.com/pkg/brew/bitlbee/) - Popular package that depends on this formula.
- [clamz](https://www.automicvault.com/pkg/brew/clamz/) - Popular package that depends on this formula.
- [collectd](https://www.automicvault.com/pkg/brew/collectd/) - Popular package that depends on this formula.
- [dar](https://www.automicvault.com/pkg/brew/dar/) - Popular package that depends on this formula.
- [envio](https://www.automicvault.com/pkg/brew/envio/) - Popular package that depends on this formula.
- [fwknop](https://www.automicvault.com/pkg/brew/fwknop/) - Popular package that depends on this formula.
- [libgcrypt](https://www.automicvault.com/pkg/brew/libgcrypt/) - Local package facts share a topical domain. Shared terms: config, error, gnupg, libgpg, libgpg-error.
- [libassuan](https://www.automicvault.com/pkg/brew/libassuan/) - Local package facts share a topical domain. Shared terms: config, error, libgpg, libgpg-error.
- [libksba](https://www.automicvault.com/pkg/brew/libksba/) - Local package facts share a topical domain. Shared terms: config, error, libgpg, libgpg-error.

## Combined YAML source

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


## Sources

- Nucleus package database
- 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
