macOS
brew install gmp-ecmlocal Homebrew formula metadata
sudo port install gmp-ecmMacPorts ports tree · math/gmp-ecm/Portfile · source: api.github.com
brew
Elliptic Curve Method for integer factorization. Version 7.0.7 via Homebrew; verified 2026-06-07.
install
brew install gmp-ecmlocal Homebrew formula metadata
sudo port install gmp-ecmMacPorts ports tree · math/gmp-ecm/Portfile · source: api.github.com
sudo apt install gmp-ecmDebian stable package indexes · gmp-ecm · source: deb.debian.org
sudo dnf install gmp-ecmFedora Rawhide package metadata · gmp-ecm · source: dl.fedoraproject.org
sudo pacman -S gmp-ecmArch Linux sync databases · gmp-ecm · source: geo.mirror.pkgbuild.com
sudo zypper install gmp-ecmopenSUSE Tumbleweed package metadata · gmp-ecm · source: download.opensuse.org
nix profile install nixpkgs#ecmnixpkgs package indexes · pkgs/by-name/ec/ecm/package.nix · source: api.github.com
overview
Elliptic Curve Method for integer factorization
history
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.
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.
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.
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.
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.
security posture
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.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
ecm | cli | global executable |
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.
https://gitlab.inria.fr/zimmerma/ecm
install metadata
| Package key | brew:gmp-ecm |
|---|---|
| Version | 7.0.7 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/gmp-ecm |
| Homepage | https://gitlab.inria.fr/zimmerma/ecm |
| Repository | https://gitlab.inria.fr/zimmerma/ecm |
| Upstream docs | https://gitlab.inria.fr/zimmerma/ecm |
| License | GPL-3.0-or-later AND LGPL-3.0-or-later |
| Source archive | https://gitlab.inria.fr/zimmerma/ecm/-/archive/git-7.0.7/ecm-git-7.0.7.tar.gz |
| Last updated | 2026-06-07T12:56:09Z |
| Pulse | updated |
| Dependencies | gmp, libomp, primesieve |
| Build dependencies | autoconf, automake, libtool |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gmp-ecm |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
gmp-ecm 7.0.6+ds-1
Factor integers using the Elliptic Curve Method
https://gitlab.inria.fr/zimmerma/ecm
sudo apt install gmp-ecmlibecm-dev 7.0.6+ds-1
dummy package
https://gitlab.inria.fr/zimmerma/ecm
sudo apt install libecm-devlibecm1 7.0.6+ds-1
factor integers using the Elliptic Curve Method -- lib
https://gitlab.inria.fr/zimmerma/ecm
sudo apt install libecm1libecm1-dev 7.0.6+ds-1
factor integers using the Elliptic Curve Method -- libdev
https://gitlab.inria.fr/zimmerma/ecm
sudo apt install libecm1-devlibecm1-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-commongmp-ecm 7.0.5+ds-1build1
Factor integers using the Elliptic Curve Method
https://gitlab.inria.fr/zimmerma/ecm
sudo apt install gmp-ecmlibecm-dev 7.0.5+ds-1build1
dummy package
https://gitlab.inria.fr/zimmerma/ecm
sudo apt install libecm-devlibecm1 7.0.5+ds-1build1
factor integers using the Elliptic Curve Method -- lib
https://gitlab.inria.fr/zimmerma/ecm
sudo apt install libecm1libecm1-dev 7.0.5+ds-1build1
factor integers using the Elliptic Curve Method -- libdev
https://gitlab.inria.fr/zimmerma/ecm
sudo apt install libecm1-devlibecm1-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-commongmp-ecm 7.0.7-1.fc45
Elliptic Curve Method for Integer Factorization
https://gitlab.inria.fr/zimmerma/ecm
sudo dnf install gmp-ecmgmp-ecm-devel 7.0.7-1.fc45
Files useful for gmp-ecm development
https://gitlab.inria.fr/zimmerma/ecm
sudo dnf install gmp-ecm-develgmp-ecm-libs 7.0.7-1.fc45
Elliptic Curve Method library
https://gitlab.inria.fr/zimmerma/ecm
sudo dnf install gmp-ecm-libsgmp-ecm 7.0.7-2
Elliptic Curve Method for Integer Factorization
https://github.com/sethtroisi/gmp-ecm
sudo pacman -S gmp-ecmgmp-ecm 7.0.5-1.10
Elliptic Curve Method for Integer Factorization
https://gitlab.inria.fr/zimmerma/ecm
sudo zypper install gmp-ecmgmp-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-develsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.