# Installer libgcrypt avec Homebrew, apk, dnf, MacPorts, Nix, pacman, zypper

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de libgcrypt pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:libgcrypt
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install libgcrypt
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libgcrypt
```

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

### Linux

- apk (92%):

```sh
sudo apk add libgcrypt
```

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

- dnf (92%):

```sh
sudo dnf install libgcrypt
```

  Preuve: Fedora Rawhide package metadata: libgcrypt 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#libgcrypt
```

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

- pacman (92%):

```sh
sudo pacman -S libgcrypt
```

  Preuve: Arch Linux sync databases: libgcrypt from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz

- zypper (92%):

```sh
sudo zypper install libgcrypt-devel
```

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

## Faits du paquet

- **Clé du paquet:** brew:libgcrypt
- **Gestionnaire de paquets:** Homebrew
- **Version:** 1.12.2
- **Résumé source:** Cryptographic library based on the code from GnuPG
- **Page d'accueil:** <https://gnupg.org/related_software/libgcrypt/>
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- dumpsexp (alias)
- hmac256 (alias)
- libgcrypt-config (alias)
- mpicalc (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 1.12.2
## Historique du projet et usages

Libgcrypt is the GnuPG project's standalone cryptographic building-block library, split out so applications could use GnuPG-derived primitives without embedding the OpenPGP implementation itself. It matters in package ecosystems because it is a low-level C library whose ABI promises, security releases, and CPU-specific optimizations ripple into many security-sensitive applications.

### Historique du projet

The GnuPG project describes Libgcrypt as a general-purpose cryptographic library originally based on GnuPG code. GnuPG news and release material show the library becoming a separately versioned component by the early 2000s, with a 2003 alpha-series announcement for Libgcrypt 1.1.42 and later 1.2.x, 1.4.x, 1.5.x, 1.7.x, 1.8.x, 1.10.x, and 1.12.x release lines.

Its scope grew from the cryptographic code needed by GnuPG into a broad primitive library covering symmetric ciphers, hashes, MACs, public-key algorithms, multi-precision integers, random-number generation, S-expressions, FIPS-related behavior, and helper tools. The project page also records a packaging-relevant compatibility policy: Libgcrypt versions since 1.2 keep API and ABI compatibility.

### Historique d'adoption

Libgcrypt's adoption follows GnuPG's split-library architecture: GnuPG and related projects can share a maintained cryptographic core while packagers ship it as an independent system library. Homebrew, Linux distributions, Nix, MacPorts, and other package managers expose it as a separate package because many consumers need the library without installing or rebuilding the whole GnuPG stack.

The GnuPG release stream treats Libgcrypt security updates as first-class events. Multiple GnuPG news entries call out Libgcrypt releases for side-channel fixes, stable-branch compatibility, new algorithms, and random-number-generator work, which is why downstream maintainers track it closely.

### Modes d'utilisation

Developers link against Libgcrypt when they need a C API for cryptographic primitives, MPI arithmetic, random bytes, or S-expression-based public-key operations. The command-line helpers packaged with it, such as hmac256 and mpicalc, are secondary to the library but useful for testing and small operational tasks.

The library intentionally does not provide a complete OpenPGP protocol implementation; it supplies lower-level cryptographic operations. That boundary is important for users choosing between Libgcrypt, GPGME, and the GnuPG command-line tools.

### Pourquoi les passionnés de paquets s'y intéressent

For package maintainers, Libgcrypt is a classic shared-library dependency: small on the surface, but security-critical, ABI-sensitive, and tied to CPU feature detection, FIPS behavior, and distribution hardening policies. Its separate release branches let downstreams apply fixes without forcing an application-level GnuPG upgrade.

Its long API/ABI compatibility promise since 1.2 is unusually package-friendly for a cryptographic C library and helps explain why it appears broadly across Unix-like package sets.

### Chronologie

- 2003: Libgcrypt 1.1.42 announced as a general-purpose cryptography library based on GnuPG code.
- 2005: Libgcrypt 1.2.1 announced in the GnuPG news stream.
- 2007: Libgcrypt 1.4.0 announced as a stable branch compatible with the 1.2 series.
- 2011: Libgcrypt 1.5.0 announced as a stable branch compatible with the 1.4 series.
- 2016: Libgcrypt 1.7.0 announced with new algorithms, curves, and performance work.
- 2017: Libgcrypt 1.8.0 announced with Blake2 support, XTS mode, random-number-generator work, and ARM performance improvements.
- 2022: Libgcrypt 1.10.1 announced as a stable branch with API and ABI compatibility to the 1.9 series.
- 2026: Libgcrypt 1.12.2, 1.11.3, and 1.10.4 announced for security advisory T8211.

### Related projects

- GnuPG is the parent ecosystem and original source of the code lineage. GPGME sits at a higher level for applications that want GnuPG integration rather than raw cryptographic primitives. Libgpg-error is commonly paired with GnuPG libraries for shared error handling.

### Sources

- <https://formulae.brew.sh/formula/libgcrypt>
- <https://lists.gnupg.org/pipermail/gnupg-announce/2003q3/000155.html>
- <https://lists.gnupg.org/pipermail/gnupg-announce/2022q1/000471.html>
- <https://www.gnupg.org/documentation/manuals/gcrypt/>
- <https://www.gnupg.org/news.html>
- <https://www.gnupg.org/software/libgcrypt/index.html>


## Notes de sécurité

Aucun manifest local de gestion des secrets correspondant n'a été trouvé pour libgcrypt. Les métadonnées de paquet Nucleus restent publiées ici afin que la couverture future dispose d'une URL stable.


## Autres enregistrements de gestionnaires de paquets

- Nix - libgcrypt: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libgcrypt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - libgcrypt - 1.12.2-r0: normalized package name match | Alpine Linux edge package indexes: libgcrypt from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | General purpose crypto library based on the code used in GnuPG | https://www.gnupg.org/
- apk - libgcrypt-dev - 1.12.2-r0: normalized package name match | Alpine Linux edge package indexes: libgcrypt-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | General purpose crypto library based on the code used in GnuPG (development files) | https://www.gnupg.org/
- apk - libgcrypt-doc - 1.12.2-r0: normalized package name match | Alpine Linux edge package indexes: libgcrypt-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | General purpose crypto library based on the code used in GnuPG (documentation) | https://www.gnupg.org/
- apk - libgcrypt-static - 1.12.2-r0: normalized package name match | Alpine Linux edge package indexes: libgcrypt-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | General purpose crypto library based on the code used in GnuPG (static library) | https://www.gnupg.org/
- dnf - libgcrypt - 1.12.2-2.fc45: normalized package name match | Fedora Rawhide package metadata: libgcrypt from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A general-purpose cryptography library | https://www.gnupg.org/
- dnf - libgcrypt-devel - 1.12.2-2.fc45: normalized package name match | Fedora Rawhide package metadata: libgcrypt-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for the libgcrypt package | https://www.gnupg.org/
- pacman - libgcrypt - 1.12.2-1: normalized package name match | Arch Linux sync databases: libgcrypt from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz | General purpose cryptographic library based on the code from GnuPG | https://www.gnupg.org
- zypper - libgcrypt-devel - 1.12.2-1.4: normalized package name match | openSUSE Tumbleweed package metadata: libgcrypt-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | The GNU Crypto Library | https://gnupg.org/software/libgcrypt
- zypper - libgcrypt-devel-32bit - 1.12.2-1.4: normalized package name match | openSUSE Tumbleweed package metadata: libgcrypt-devel-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | The GNU Crypto Library | https://gnupg.org/software/libgcrypt
- zypper - libgcrypt-devel-x86-64-v3 - 1.12.2-1.4: normalized package name match | openSUSE Tumbleweed package metadata: libgcrypt-devel-x86-64-v3 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | The GNU Crypto Library | https://gnupg.org/software/libgcrypt
- zypper - libgcrypt20 - 1.12.2-1.4: normalized package name match | openSUSE Tumbleweed package metadata: libgcrypt20 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | The GNU Crypto Library | https://gnupg.org/software/libgcrypt
- zypper - libgcrypt20-32bit - 1.12.2-1.4: normalized package name match | openSUSE Tumbleweed package metadata: libgcrypt20-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | The GNU Crypto Library | https://gnupg.org/software/libgcrypt
- zypper - libgcrypt20-x86-64-v3 - 1.12.2-1.4: normalized package name match | openSUSE Tumbleweed package metadata: libgcrypt20-x86-64-v3 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | The GNU Crypto Library | https://gnupg.org/software/libgcrypt
- MacPorts - libgcrypt: normalized package name match | MacPorts ports tree: devel/libgcrypt/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/libgcrypt.yml](https://github.com/mxcl/pkgdb/blob/main/combined/libgcrypt.yml)


## Sources

- pkg.so package database
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
