# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 1.24
- **来源摘要:** Tools for manipulating next-generation sequencing data
- **主页:** <https://www.htslib.org/>
- **仓库:** <https://github.com/samtools/samtools>
- **最后更新:** 2026-07-09T19:51:46Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- 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 (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.24

## 安全说明

narrow executable package without higher-risk signals.

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

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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


## 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
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
