🍺 BREW Explorer

← all formulae

gmp

brew install gmp v6.3.0 LGPL-3.0-or-later OR GPL-2.0-or-later

GNU C library for arbitrary-precision arithmetic on integers, rationals, and floating-point numbers.

Why you might care

GMP is the standard bignum library for cryptography, number theory, and scientific computing. It's a build/runtime dependency for many mathematical tools, programming language runtimes (Python, Ruby), and crypto libraries. Highly optimized with assembly routines for multiple CPU architectures.

Categories

Alternatives

MPFR Boost.Multiprecision OpenSSL bignum
134.6k
30-day installs · #23
456.8k
90-day · #25
1.6M
365-day · #28

Build dependencies

Links

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [],
  "alternatives": [
    "MPFR",
    "Boost.Multiprecision",
    "OpenSSL bignum"
  ],
  "build_dependencies": [
    "autoconf",
    "automake",
    "libtool"
  ],
  "categories": [
    "library",
    "math"
  ],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "GNU multiple precision arithmetic library",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:38:12+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "gmp",
  "github_default_branch": null,
  "github_last_commit_at": null,
  "github_readme_excerpt": null,
  "github_repo": null,
  "github_stars": null,
  "github_topics": [],
  "homepage": "https://gmplib.org/",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": "The GNU MP Bignum Library",
  "installs_30d": 134558,
  "installs_365d": 1604629,
  "installs_90d": 456800,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "LGPL-3.0-or-later OR GPL-2.0-or-later",
  "llm_generated_at": "2026-06-20T23:42:10+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "gmp",
  "oldnames": [],
  "one_liner": "GNU C library for arbitrary-precision arithmetic on integers, rationals, and floating-point numbers.",
  "optional_dependencies": [],
  "rank_30d": 23,
  "rank_365d": 28,
  "rank_90d": 25,
  "raw_hash": "327178846db831c0",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/g/gmp.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [
    {
      "m4": "build"
    }
  ],
  "version_head": "HEAD",
  "version_stable": "6.3.0",
  "versioned_formulae": [],
  "why_use_this": "GMP is the standard bignum library for cryptography, number theory, and scientific computing. It\u0027s a build/runtime dependency for many mathematical tools, programming language runtimes (Python, Ruby), and crypto libraries. Highly optimized with assembly routines for multiple CPU architectures."
}