gnupg

Install command:
brew install gnupg

Also known as: gnupg@2.5, gpg, gpg2

GNU Privacy Guard (OpenPGP)

https://gnupg.org/

License: GPL-3.0-or-later

Development: Pull requests

Formula JSON API: /api/formula/gnupg.json

Formula code: gnupg.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 2.5.24

Other versions:

gnupg@1.4 1.4.23 GNU Privacy Guard (OpenPGP)

Revision: 1

Patches:

https://github.com/gpg/gnupg/commit/42386bcf8861f04c1bdec5cbb139a03da83d8ef9
https://github.com/gpg/gnupg/commit/5523cec6913bcbd1a374d183899a6f298d2c0e32

Depends on:

gnutls 3.8.14 GNU Transport Layer Security (TLS) Library
libassuan 3.0.2 Assuan IPC Library
libgcrypt 1.12.4 Cryptographic library based on the code from GnuPG
libgpg-error 1.61 Common error values for all GnuPG components
libksba 1.9.1 X.509 and CMS library
libusb 1.0.30 Library for USB device access
npth 1.8 New GNU portable threads library
pinentry 1.3.3 Passphrase entry dialog utilizing the Assuan protocol
readline 8.3.6 Library for command-line editing
gettext 1.0 GNU internationalization (i18n) and localization (l10n) library

Depends on when building from source:

pkgconf 3.0.11 Package compiler and linker metadata toolkit

Uses from macOS: bzip2, openldap, sqlite

Binaries: addgnupghome, applygnupgdefaults, dirmngr, dirmngr-client, gpg, gpg-agent, gpg-authcode-sign.sh, gpg-card, gpg-connect-agent, gpg-mail-tube, gpg-wks-client, gpg-wks-server, gpgconf, gpgparsemail, gpgscm, gpgsm, gpgsplit, gpgtar, gpgv, kbxutil, watchgnupg

GitHub Packages downloads:

Last 30 days437,434
Downloads22,555,483
Analytics install events (30 days)56,110
Downloads / install events (30 days)7.8×

Source: GitHub Packages, fetched 2026-11-22T00:58:32Z. Analytics dates: 2026-10-23 to 2026-11-22. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs56,069199,476951,079
Installs (--HEAD)41161668
Installs on Request29,793109,934535,439
Installs on Request (--HEAD)35153648
Build Errors220