# 使用 Homebrew, apt, dnf, MacPorts, Nix, zypper 安装 samtools

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

## 安装

```sh
sudo av install brew:samtools
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install samtools
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install samtools
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install samtools
```

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

- dnf (92%):

```sh
sudo dnf install samtools
```

  证据: Fedora Rawhide package metadata: samtools 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#samtools
```

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

- zypper (92%):

```sh
sudo zypper install samtools
```

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

## 软件包事实

- **软件包键:** brew:samtools
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/samtools>
- **版本:** 1.24
- **来源摘要:** Tools for manipulating next-generation sequencing data
- **主页:** <https://www.htslib.org/>
- **仓库:** <https://github.com/samtools/samtools>
- **上游文档:** <https://www.htslib.org/>
- **许可证:** MIT
- **源码归档:** <https://github.com/samtools/samtools/releases/download/1.24/samtools-1.24.tar.bz2>
- **最后更新:** 2026-07-09T19:51:46Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- ace2sam (cli)
- blast2sam.pl (cli)
- bowtie2sam.pl (cli)
- export2sam.pl (cli)
- fasta-sanitize.pl (cli)
- interpolate_sam.pl (cli)
- maq2sam-long (cli)
- maq2sam-short (cli)
- md5fa (cli)
- md5sum-lite (cli)
- novo2sam.pl (cli)
- plot-ampliconstats (cli)
- plot-bamstats (cli)
- psl2sam.pl (cli)
- sam2vcf.pl (cli)
- samtools (cli)
- samtools.pl (cli)
- seq_cache_populate.pl (cli)
- seq_cache_populate.py (cli)
- soap2sam.pl (cli)
- wgsim (cli)
- wgsim_eval.pl (cli)
- zoom2sam.pl (cli)
- ace2sam (别名)
- blast2sam.pl (别名)
- bowtie2sam.pl (别名)
- export2sam.pl (别名)
- fasta-sanitize.pl (别名)
- interpolate_sam.pl (别名)
- maq2sam-long (别名)
- maq2sam-short (别名)
- md5fa (别名)
- md5sum-lite (别名)
- novo2sam.pl (别名)
- plot-ampliconstats (别名)
- plot-bamstats (别名)
- psl2sam.pl (别名)
- sam2vcf.pl (别名)
- samtools (别名)
- samtools.pl (别名)
- seq_cache_populate.pl (别名)
- seq_cache_populate.py (别名)
- soap2sam.pl (别名)
- wgsim (别名)
- wgsim_eval.pl (别名)
- zoom2sam.pl (别名)

## 依赖

- htslib

## macOS 提供的库

- ncurses

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.24
- 管理器更新时间: 2026-07-09
- 本地数据: OK
- 上游仓库: https://github.com/samtools/samtools
- 信息: No cached GitHub release or tag data was available.

## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** samtools
- **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 - samtools - 1.21-1: normalized package name match | Debian stable package indexes: samtools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | processing sequence alignments in SAM, BAM and CRAM formats | https://www.htslib.org/
- Debian apt - samtools-test - 1.21-1: normalized package name match | Debian stable package indexes: samtools-test from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | test files for the samtools package | https://www.htslib.org/
- Nix - samtools: normalized package name match | nixpkgs package indexes: pkgs/by-name/sa/samtools/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - samtools - 1.19.2-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: samtools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | processing sequence alignments in SAM, BAM and CRAM formats | https://www.htslib.org/
- Ubuntu apt - samtools-test - 1.19.2-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: samtools-test from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | test files for the samtools package | https://www.htslib.org/
- dnf - samtools - 1.24-2.fc45: normalized package name match | Fedora Rawhide package metadata: samtools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Tools for nucleotide sequence alignments in the SAM format | http://www.htslib.org/
- zypper - samtools - 1.21-1.5: normalized package name match | openSUSE Tumbleweed package metadata: samtools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Tools for manipulating next-generation sequencing data | https://github.com/samtools/samtools
- MacPorts - samtools: normalized package name match | MacPorts ports tree: science/samtools/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Database and data packages](https://pkg.so/zh-hans/database-data-tools/) - Matched database, SQL, migration, or data-store metadata.
- [Scientific computing packages](https://pkg.so/zh-hans/scientific-computing-tools/) - Matched scientific computing metadata.
- [htslib](https://pkg.so/zh-hans/brew/htslib/) - Runtime dependency declared by Homebrew.
- [flye](https://pkg.so/zh-hans/brew/flye/) - Popular package that depends on this formula.
- [bcftools](https://pkg.so/zh-hans/brew/bcftools/) - Shares the same upstream homepage.
- [sambamba](https://pkg.so/zh-hans/brew/sambamba/) - Shares pkgdb curated category or tags: bam, bioinformatics, cli, genomics, sam.
- [perbase](https://pkg.so/zh-hans/brew/perbase/) - Shares pkgdb curated category or tags: bam, bioinformatics, cli, cram, genomics.
- [mosdepth](https://pkg.so/zh-hans/brew/mosdepth/) - Shares pkgdb curated category or tags: bam, bioinformatics, cli, cram, genomics.
- [bedtools](https://pkg.so/zh-hans/brew/bedtools/) - Shares pkgdb curated category or tags: bam, bioinformatics, cli, genomics, science.
- [bbtools](https://pkg.so/zh-hans/brew/bbtools/) - Shares pkgdb curated category or tags: bioinformatics, cli, genomics, science, sequencing.
- [bamtools](https://pkg.so/zh-hans/brew/bamtools/) - Shares pkgdb curated category or tags: bam, bioinformatics, cli, genomics, science.
- [fgbio](https://pkg.so/zh-hans/brew/fgbio/) - Shares pkgdb curated category or tags: bioinformatics, cli, genomics, science, sequencing.
- [blast](https://pkg.so/zh-hans/brew/blast/) - Shares pkgdb curated category or tags: bioinformatics, cli, genomics, science.

## Combined YAML source

View the package source record on GitHub. [combined/samtools.yml](https://github.com/mxcl/pkgdb/blob/main/combined/samtools.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
