Automic VaultAutomic Vault

brew

Install gmp-ecm with Homebrew, apt, dnf, MacPorts, pacman, zypper, Nix

Elliptic Curve Method for integer factorization. Version 7.0.7 via Homebrew; verified 2026-06-07.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install gmp-ecm

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install gmp-ecm

MacPorts ports tree · math/gmp-ecm/Portfile · source: api.github.com

Linux

Debian aptverified · 92%
sudo apt install gmp-ecm

Debian stable package indexes · gmp-ecm · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install gmp-ecm

Fedora Rawhide package metadata · gmp-ecm · source: dl.fedoraproject.org

Arch Linux pacmanverified · 92%
sudo pacman -S gmp-ecm

Arch Linux sync databases · gmp-ecm · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install gmp-ecm

openSUSE Tumbleweed package metadata · gmp-ecm · source: download.opensuse.org

Nixverified · 92%
nix profile install nixpkgs#ecm

nixpkgs package indexes · pkgs/by-name/ec/ecm/package.nix · source: api.github.com

overview

Package summary

Elliptic Curve Method for integer factorization

Commands and aliases

  • ecm

history

Project history and usage

GMP-ECM is a command-line program and library for integer factorization using the elliptic curve method, with support for P-1 and P+1 methods. It is a specialist number-theory tool built on GMP and used when practitioners need to search for medium-sized factors of large composites.

Project history

The project originates with Paul Zimmermann, listed in the AUTHORS file as the author of the first version. The codebase later moved to INRIA GitLab, and the bundled README notes that the older README text predates that move.

Over time GMP-ECM accumulated both command-line and library interfaces. README.lib documents ecm_factor, ecm_init, and ecm_clear for applications linking against libecm, while the main README documents ecm as a stdin-driven factoring command using B1 and B2 bounds.

The NEWS file records long-running engineering work: new P-1 and P+1 stage 2 algorithms in the 6.2 series, GPL/LGPL licensing adjustment in 6.4.1, thread safety and GPU stage-1 code in 7.0, and portability fixes through the 7.0.7 release line.

Adoption history

GMP-ECM is packaged across Homebrew, Debian, Fedora, MacPorts, Nix, Arch, Ubuntu, and openSUSE families in the batch metadata. That spread reflects its role as a reusable scientific computing component rather than a general desktop application.

The AUTHORS file shows contributions from number-theory and high-performance arithmetic specialists, including work on batch mode, GPU code, Visual C builds, expression parsing, primality testing tools, NTT code, and assembly optimizations.

How it is used

Practitioners feed one composite number per line to ecm and choose a stage-1 bound B1, with an optional B2. The README examples cover one-curve ECM runs, multiple curves with -c, P-1 with -pm1, P+1 with -pp1, save/resume workflows, and expression syntax such as powers and Fermat-number forms.

Library users include ecm.h and link against libecm to call ecm_factor from their own factoring software. That split lets package managers install both a CLI for interactive factor hunting and a library for larger systems.

Why package nerds care

GMP-ECM matters in packaging because it is the canonical small tool behind a very specific algorithmic niche. A distro package gives researchers and computational-number-theory users the same tuned implementation without rebuilding GMP-linked arithmetic code by hand.

Its history is also a reminder that scientific packages often expose both an executable and a library ABI; the package is not merely an end-user command but part of the factoring stack used by other tools.

Timeline

  • 2008: Stage 2 improvements for P-1 and P+1 described in the ANTS-VIII paper referenced by NEWS.
  • 2012: Version 6.4.1 licensing changed to GPL-3-or-later for the binary and LGPL-3-or-later for the library.
  • 2020: Public INRIA GitLab project created after earlier hosting.
  • 2026: Version 7.0.7 tag committed with MacOS fixes and mmap batch-data support.

Related projects

  • GMP supplies the multiprecision arithmetic foundation.
  • P-1, P+1, MPQS, and NFS are related factoring methods discussed in the README's guidance.

security posture

No protected-tool coverage found yet

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

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 3 runtime dependencies.
  • Build metadata lists 3 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
ecmcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version7.0.7
manager updated2026-06-07
local dataok
upstreamnot checked
latest detectednot detected

https://gitlab.inria.fr/zimmerma/ecm

install metadata

Package metadata

Package keybrew:gmp-ecm
Version7.0.7
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/gmp-ecm
Homepagehttps://gitlab.inria.fr/zimmerma/ecm
Repositoryhttps://gitlab.inria.fr/zimmerma/ecm
Upstream docshttps://gitlab.inria.fr/zimmerma/ecm
LicenseGPL-3.0-or-later AND LGPL-3.0-or-later
Source archivehttps://gitlab.inria.fr/zimmerma/ecm/-/archive/git-7.0.7/ecm-git-7.0.7.tar.gz
Last updated2026-06-07T12:56:09Z
Pulseupdated
Dependenciesgmp, libomp, primesieve
Build dependenciesautoconf, automake, libtool
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegmp-ecm
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

gmp-ecm 7.0.6+ds-1

Factor integers using the Elliptic Curve Method

https://gitlab.inria.fr/zimmerma/ecm

sudo apt install gmp-ecm
  • Section: math
  • Architecture: amd64
  • 3 dependencies
  • normalized package name match
  • Matched by: Gmp Ecm
Debian stable package indexes · deb.debian.org · Debian stable package indexes: gmp-ecm from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libecm-dev 7.0.6+ds-1

dummy package

https://gitlab.inria.fr/zimmerma/ecm

sudo apt install libecm-dev
  • Section: libdevel
  • Architecture: all
  • Source Package: gmp-ecm
  • 1 dependencies
  • normalized package name match
  • Matched by: Gmp Ecm
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libecm-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libecm1 7.0.6+ds-1

factor integers using the Elliptic Curve Method -- lib

https://gitlab.inria.fr/zimmerma/ecm

sudo apt install libecm1
  • Section: libs
  • Architecture: amd64
  • Source Package: gmp-ecm
  • 2 dependencies
  • normalized package name match
  • Matched by: Gmp Ecm
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libecm1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libecm1-dev 7.0.6+ds-1

factor integers using the Elliptic Curve Method -- libdev

https://gitlab.inria.fr/zimmerma/ecm

sudo apt install libecm1-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: gmp-ecm
  • 3 dependencies
  • normalized package name match
  • Matched by: Gmp Ecm
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libecm1-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libecm1-dev-common 7.0.6+ds-1

factor integers using the Elliptic Curve Method -- header

https://gitlab.inria.fr/zimmerma/ecm

sudo apt install libecm1-dev-common
  • Section: libdevel
  • Architecture: all
  • Source Package: gmp-ecm
  • 1 optional deps
  • normalized package name match
  • Matched by: Gmp Ecm
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libecm1-dev-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

gmp-ecm 7.0.5+ds-1build1

Factor integers using the Elliptic Curve Method

https://gitlab.inria.fr/zimmerma/ecm

sudo apt install gmp-ecm
  • Section: universe/math
  • Architecture: amd64
  • 3 dependencies
  • normalized package name match
  • Matched by: Gmp Ecm
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: gmp-ecm from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libecm-dev 7.0.5+ds-1build1

dummy package

https://gitlab.inria.fr/zimmerma/ecm

sudo apt install libecm-dev
  • Section: universe/libdevel
  • Architecture: all
  • Source Package: gmp-ecm
  • 1 dependencies
  • normalized package name match
  • Matched by: Gmp Ecm
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libecm-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libecm1 7.0.5+ds-1build1

factor integers using the Elliptic Curve Method -- lib

https://gitlab.inria.fr/zimmerma/ecm

sudo apt install libecm1
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: gmp-ecm
  • 2 dependencies
  • normalized package name match
  • Matched by: Gmp Ecm
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libecm1 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libecm1-dev 7.0.5+ds-1build1

factor integers using the Elliptic Curve Method -- libdev

https://gitlab.inria.fr/zimmerma/ecm

sudo apt install libecm1-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: gmp-ecm
  • 3 dependencies
  • normalized package name match
  • Matched by: Gmp Ecm
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libecm1-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libecm1-dev-common 7.0.5+ds-1build1

factor integers using the Elliptic Curve Method -- header

https://gitlab.inria.fr/zimmerma/ecm

sudo apt install libecm1-dev-common
  • Section: universe/libdevel
  • Architecture: all
  • Source Package: gmp-ecm
  • 1 optional deps
  • normalized package name match
  • Matched by: Gmp Ecm
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libecm1-dev-common from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
dnf95%

gmp-ecm 7.0.7-1.fc45

Elliptic Curve Method for Integer Factorization

https://gitlab.inria.fr/zimmerma/ecm

sudo dnf install gmp-ecm
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: gmp-ecm
  • 6 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Gmp Ecm
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gmp-ecm from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

gmp-ecm-devel 7.0.7-1.fc45

Files useful for gmp-ecm development

https://gitlab.inria.fr/zimmerma/ecm

sudo dnf install gmp-ecm-devel
  • License: LGPL-3.0-or-later
  • Category: Unspecified
  • Architecture: i686
  • Source Package: gmp-ecm
  • 3 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Gmp Ecm
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gmp-ecm-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

gmp-ecm-libs 7.0.7-1.fc45

Elliptic Curve Method library

https://gitlab.inria.fr/zimmerma/ecm

sudo dnf install gmp-ecm-libs
  • License: LGPL-3.0-or-later
  • Category: Unspecified
  • Architecture: i686
  • Source Package: gmp-ecm
  • 6 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Gmp Ecm
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gmp-ecm-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

gmp-ecm 7.0.7-2

Elliptic Curve Method for Integer Factorization

https://github.com/sethtroisi/gmp-ecm

sudo pacman -S gmp-ecm
  • License: GPL-3.0-or-later AND LGPL-3.0-or-later
  • Architecture: x86_64
  • 5 dependencies
  • normalized package name match
  • Matched by: Gmp Ecm
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: gmp-ecm from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

gmp-ecm 7.0.5-1.10

Elliptic Curve Method for Integer Factorization

https://gitlab.inria.fr/zimmerma/ecm

sudo zypper install gmp-ecm
  • License: GPL-3.0-only
  • Category: Productivity/Scientific/Math
  • Architecture: x86_64
  • Source Package: gmp-ecm
  • 4 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Gmp Ecm
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gmp-ecm from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

gmp-ecm-devel 7.0.5-1.10

Development files for the gmp-ecm package

https://gitlab.inria.fr/zimmerma/ecm

sudo zypper install gmp-ecm-devel
  • License: GPL-3.0-only
  • Category: Development/Libraries/C and C++
  • Architecture: x86_64
  • Source Package: gmp-ecm
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Gmp Ecm
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gmp-ecm-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Nucleus package database
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment