# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 primesieve

查看 primesieve 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:primesieve
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install primesieve
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install primesieve
```

  证据: MacPorts ports tree: math/primesieve/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add primesieve
```

  证据: Alpine Linux edge package indexes: primesieve from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install primesieve
```

  证据: Debian stable package indexes: primesieve from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install primesieve
```

  证据: Fedora Rawhide package metadata: primesieve from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#primesieve
```

  证据: nixpkgs package indexes: pkgs/by-name/pr/primesieve/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S primesieve
```

  证据: Arch Linux sync databases: primesieve from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install primesieve
```

  证据: openSUSE Tumbleweed package metadata: primesieve from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/primesieve
```

  证据: Scoop official bucket manifest trees: bucket/primesieve.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Primesieve.Primesieve -e
```

  证据: Windows Package Manager source index: Primesieve.Primesieve from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:primesieve
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/primesieve>
- **版本:** 12.15
- **来源摘要:** Fast C/C++ prime number generator
- **主页:** <https://github.com/kimwalisch/primesieve>
- **仓库:** <https://github.com/kimwalisch/primesieve>
- **许可证:** BSD-2-Clause
- **源码归档:** <https://github.com/kimwalisch/primesieve/archive/refs/tags/v12.15.tar.gz>
- **最后更新:** 2026-07-17T17:12:43Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- primesieve (cli)
- primesieve (别名)

## 构建依赖

- cmake

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 12.15
- 管理器更新时间: 2026-07-17
- 本地数据: OK
- 上游仓库: https://github.com/kimwalisch/primesieve
- 检测到的最新版本: v12.15 (当前)

## 安全说明

没有找到 primesieve 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** primesieve
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- Debian apt - libprimesieve-dev - 12.7+ds-1: normalized package name match | Debian stable package indexes: libprimesieve-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | fast prime number generator C/C++ library -- libdev | https://github.com/kimwalisch/primesieve
- Debian apt - libprimesieve-dev-common - 12.7+ds-1: normalized package name match | Debian stable package indexes: libprimesieve-dev-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | fast prime number generator C/C++ library -- headers | https://github.com/kimwalisch/primesieve
- Debian apt - libprimesieve12 - 12.7+ds-1: normalized package name match | Debian stable package indexes: libprimesieve12 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | fast prime number generator C/C++ library -- lib | https://github.com/kimwalisch/primesieve
- Debian apt - primesieve - 12.7+ds-1: normalized package name match | Debian stable package indexes: primesieve from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | fast prime number generator C/C++ library | https://github.com/kimwalisch/primesieve
- Debian apt - primesieve-bin - 12.7+ds-1: normalized package name match | Debian stable package indexes: primesieve-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | fast prime number generator C/C++ library -- bin | https://github.com/kimwalisch/primesieve
- Debian apt - primesieve-doc - 12.7+ds-1: normalized package name match | Debian stable package indexes: primesieve-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | fast prime number generator C/C++ library -- doc | https://github.com/kimwalisch/primesieve
- Nix - primesieve: normalized package name match | nixpkgs package indexes: pkgs/by-name/pr/primesieve/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libprimesieve-dev - 12.0+ds-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libprimesieve-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | fast prime number generator C/C++ library -- libdev | https://github.com/kimwalisch/primesieve
- Ubuntu apt - libprimesieve-dev-common - 12.0+ds-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libprimesieve-dev-common from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | fast prime number generator C/C++ library -- headers | https://github.com/kimwalisch/primesieve
- Ubuntu apt - libprimesieve12 - 12.0+ds-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libprimesieve12 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | fast prime number generator C/C++ library -- lib | https://github.com/kimwalisch/primesieve
- Ubuntu apt - primesieve - 12.0+ds-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: primesieve from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | fast prime number generator C/C++ library | https://github.com/kimwalisch/primesieve
- Ubuntu apt - primesieve-bin - 12.0+ds-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: primesieve-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | fast prime number generator C/C++ library -- bin | https://github.com/kimwalisch/primesieve
- Ubuntu apt - primesieve-doc - 12.0+ds-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: primesieve-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | fast prime number generator C/C++ library -- doc | https://github.com/kimwalisch/primesieve
- apk - primesieve - 12.13-r0: normalized package name match | Alpine Linux edge package indexes: primesieve from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Program and library for generating prime numbers | http://primesieve.org
- apk - primesieve-dev - 12.13-r0: normalized package name match | Alpine Linux edge package indexes: primesieve-dev from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Program and library for generating prime numbers (development files) | http://primesieve.org
- apk - primesieve-doc - 12.13-r0: normalized package name match | Alpine Linux edge package indexes: primesieve-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Program and library for generating prime numbers (documentation) | http://primesieve.org


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [primecount](https://pkg.so/zh-hans/brew/primecount/) - Popular package that depends on this formula.
- [gmp-ecm](https://pkg.so/zh-hans/brew/gmp-ecm/) - Popular package that depends on this formula.
- [msieve](https://pkg.so/zh-hans/brew/msieve/) - Shares pkgdb curated category or tags: cli, mathematics, number-theory, science.
- [pari](https://pkg.so/zh-hans/brew/pari/) - Shares pkgdb curated category or tags: cli, mathematics, number-theory, science.
- [maxima](https://pkg.so/zh-hans/brew/maxima/) - Shares pkgdb curated category or tags: cli, mathematics, science.
- [singular](https://pkg.so/zh-hans/brew/singular/) - Shares pkgdb curated category or tags: cli, mathematics, science.
- [msolve](https://pkg.so/zh-hans/brew/msolve/) - Shares pkgdb curated category or tags: cli, mathematics, science.
- [nauty](https://pkg.so/zh-hans/brew/nauty/) - Shares pkgdb curated category or tags: cli, mathematics, science.
- [cddlib](https://pkg.so/zh-hans/brew/cddlib/) - Shares pkgdb curated category or tags: cli, mathematics, science.
- [miller-rabin](https://pkg.so/zh-hans/npm/miller-rabin/) - Local package facts share a topical domain. Shared terms: cli, mathematics, number, number-theory, prime.
- [equation-parser](https://pkg.so/zh-hans/npm/equation-parser/) - Local package facts share a topical domain. Shared terms: cli, mathematics, science.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
