# Installer gmp-ecm avec Homebrew, apt, dnf, MacPorts, pacman, zypper, Nix

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de gmp-ecm pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:gmp-ecm
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install gmp-ecm
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gmp-ecm
```

  Preuve: MacPorts ports tree: math/gmp-ecm/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install gmp-ecm
```

  Preuve: Debian stable package indexes: gmp-ecm from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install gmp-ecm
```

  Preuve: Fedora Rawhide package metadata: gmp-ecm from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- pacman (92%):

```sh
sudo pacman -S gmp-ecm
```

  Preuve: Arch Linux sync databases: gmp-ecm from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install gmp-ecm
```

  Preuve: openSUSE Tumbleweed package metadata: gmp-ecm from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#ecm
```

  Preuve: nixpkgs package indexes: pkgs/by-name/ec/ecm/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Faits du paquet

- **Clé du paquet:** brew:gmp-ecm
- **Gestionnaire de paquets:** Homebrew
- **Version:** 7.0.7
- **Résumé source:** Elliptic Curve Method for integer factorization
- **Page d'accueil:** <https://gitlab.inria.fr/zimmerma/ecm>
- **Dernière mise à jour:** 2026-06-07T12:56:09Z
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- ecm (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 7.0.7
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

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

### Sources

- <https://gitlab.inria.fr/api/v4/projects/zimmerma%2Fecm>
- <https://gitlab.inria.fr/zimmerma/ecm>
- <https://gitlab.inria.fr/zimmerma/ecm/-/raw/master/AUTHORS>
- <https://gitlab.inria.fr/zimmerma/ecm/-/raw/master/NEWS>
- <https://gitlab.inria.fr/zimmerma/ecm/-/raw/master/README>
- <https://gitlab.inria.fr/zimmerma/ecm/-/raw/master/README.lib>


## Notes de sécurité

Aucun manifest local de gestion des secrets correspondant n'a été trouvé pour gmp-ecm. Les métadonnées de paquet Nucleus restent publiées ici afin que la couverture future dispose d'une URL stable.


## Autres enregistrements de gestionnaires de paquets

- Debian apt - gmp-ecm - 7.0.6+ds-1: normalized package name match | Debian stable package indexes: gmp-ecm from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Factor integers using the Elliptic Curve Method | https://gitlab.inria.fr/zimmerma/ecm
- Debian apt - libecm-dev - 7.0.6+ds-1: normalized package name match | Debian stable package indexes: libecm-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | dummy package | https://gitlab.inria.fr/zimmerma/ecm
- Debian apt - libecm1 - 7.0.6+ds-1: normalized package name match | Debian stable package indexes: libecm1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | factor integers using the Elliptic Curve Method -- lib | https://gitlab.inria.fr/zimmerma/ecm
- Debian apt - libecm1-dev - 7.0.6+ds-1: normalized package name match | Debian stable package indexes: libecm1-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | factor integers using the Elliptic Curve Method -- libdev | https://gitlab.inria.fr/zimmerma/ecm
- Debian apt - libecm1-dev-common - 7.0.6+ds-1: normalized package name match | Debian stable package indexes: libecm1-dev-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | factor integers using the Elliptic Curve Method -- header | https://gitlab.inria.fr/zimmerma/ecm
- Ubuntu apt - gmp-ecm - 7.0.5+ds-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: gmp-ecm from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Factor integers using the Elliptic Curve Method | https://gitlab.inria.fr/zimmerma/ecm
- Ubuntu apt - libecm-dev - 7.0.5+ds-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libecm-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | dummy package | https://gitlab.inria.fr/zimmerma/ecm
- Ubuntu apt - libecm1 - 7.0.5+ds-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libecm1 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | factor integers using the Elliptic Curve Method -- lib | https://gitlab.inria.fr/zimmerma/ecm
- Ubuntu apt - libecm1-dev - 7.0.5+ds-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libecm1-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | factor integers using the Elliptic Curve Method -- libdev | https://gitlab.inria.fr/zimmerma/ecm
- Ubuntu apt - libecm1-dev-common - 7.0.5+ds-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libecm1-dev-common from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | factor integers using the Elliptic Curve Method -- header | https://gitlab.inria.fr/zimmerma/ecm
- dnf - gmp-ecm - 7.0.7-2.fc45: normalized package name match | Fedora Rawhide package metadata: gmp-ecm from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Elliptic Curve Method for Integer Factorization | https://gitlab.inria.fr/zimmerma/ecm
- dnf - gmp-ecm-devel - 7.0.7-2.fc45: normalized package name match | Fedora Rawhide package metadata: gmp-ecm-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Files useful for gmp-ecm development | https://gitlab.inria.fr/zimmerma/ecm
- dnf - gmp-ecm-libs - 7.0.7-2.fc45: normalized package name match | Fedora Rawhide package metadata: gmp-ecm-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Elliptic Curve Method library | https://gitlab.inria.fr/zimmerma/ecm
- pacman - gmp-ecm - 7.0.7-2: normalized package name match | Arch Linux sync databases: gmp-ecm from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Elliptic Curve Method for Integer Factorization | https://github.com/sethtroisi/gmp-ecm
- zypper - gmp-ecm - 7.0.5-1.12: normalized package name match | openSUSE Tumbleweed package metadata: gmp-ecm from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Elliptic Curve Method for Integer Factorization | https://gitlab.inria.fr/zimmerma/ecm
- zypper - gmp-ecm-devel - 7.0.5-1.12: normalized package name match | openSUSE Tumbleweed package metadata: gmp-ecm-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files for the gmp-ecm package | https://gitlab.inria.fr/zimmerma/ecm


## Combined YAML source

View the package source record on GitHub. [combined/gmp-ecm.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gmp-ecm.yml)


## Sources

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