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

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

## インストール

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

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

### macOS

- Homebrew (100%):

```sh
brew install libgcrypt
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libgcrypt
```

  証拠: 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
```

  証拠: 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
```

  証拠: 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
```

  証拠: 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
```

  証拠: 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
```

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

## パッケージ情報

- **パッケージキー:** brew:libgcrypt
- **パッケージマネージャ:** Homebrew
- **バージョン:** 1.12.2
- **ソース概要:** Cryptographic library based on the code from GnuPG
- **ホームページ:** <https://gnupg.org/related_software/libgcrypt/>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- dumpsexp (エイリアス)
- hmac256 (エイリアス)
- libgcrypt-config (エイリアス)
- mpicalc (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

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

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.

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

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.

### 採用の歴史

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.

### 使われ方

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.

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

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.

### タイムライン

- 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.

### ソース

- <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>


## セキュリティノート

libgcrypt に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。


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

- 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)


## ソース

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