# gmp-ecm を Homebrew, apt, dnf, MacPorts, pacman, zypper, Nix でインストール

gmp-ecm のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

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

  証拠: local Homebrew formula metadata

- MacPorts (94%):

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

  証拠: 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
```

  証拠: 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
```

  証拠: 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
```

  証拠: 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
```

  証拠: 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
```

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

## パッケージ情報

- **パッケージキー:** brew:gmp-ecm
- **パッケージマネージャ:** Homebrew
- **バージョン:** 7.0.7
- **ソース概要:** Elliptic Curve Method for integer factorization
- **ホームページ:** <https://gitlab.inria.fr/zimmerma/ecm>
- **最終更新:** 2026-06-07T12:56:09Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- ecm (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 7.0.7
## プロジェクトの歴史と使われ方

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.

### タイムライン

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

### ソース

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


## セキュリティノート

gmp-ecm に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。


## 他のパッケージマネージャ記録

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


## ソース

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