# Installer bamtools avec Homebrew, apt, MacPorts, Nix

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

## installation

```sh
sudo av install brew:bamtools
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install bamtools
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install bamtools
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install bamtools
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#bamtools
```

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

## Faits du paquet

- **Clé du paquet:** brew:bamtools
- **Gestionnaire de paquets:** Homebrew
- **Page du gestionnaire de paquets:** <https://formulae.brew.sh/formula/bamtools>
- **Version:** 2.5.3
- **Résumé source:** C++ API and command-line toolkit for BAM data
- **Page d'accueil:** <https://github.com/pezmaster31/bamtools>
- **Dépôt:** <https://github.com/pezmaster31/bamtools>
- **Licence:** MIT
- **Archive source:** <https://github.com/pezmaster31/bamtools/archive/refs/tags/v2.5.3.tar.gz>
- **Généré:** 2026-08-04T22:13:35+00:00

## exécutables

- bamtools (cli)
- bamtools (alias)

## Dépendances

- jsoncpp

## Dépendances de compilation

- cmake
- pkgconf

## Comportement d'installation

- hook post-installation: non défini
- Bouteille: disponible sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Version et fraîcheur

- page générée: 2026-08-04
- version du gestionnaire: 2.5.3
- données locales: OK
- dépôt amont: https://github.com/pezmaster31/bamtools
- dernière version détectée: v2.5.3 (à jour)
- info: No package-manager update timestamp was available.
## Historique du projet et usages

BamTools is a C++ API and command-line toolkit for working with BAM files, the binary alignment format used throughout high-throughput sequencing workflows. It is a packaging-significant bioinformatics utility because it provides both reusable libraries and small CLI tools for common BAM inspection and transformation jobs.

### Historique du projet

The official repository history begins in April 2009 with an initial import by the BamTools maintainers. The README identifies BamTools as both a programmer's API and an end-user toolkit for BAM files and credits Derek Barnett, Erik Garrison, Gabor Marth, and Michael Stromberg in the 2009-2010 copyright notice.

The README explicitly acknowledges Heng Li's SAMtools as the original C-language BAM API and toolkit, placing BamTools in the second wave of tooling around the SAM/BAM ecosystem: a C++ library and CLI layer for developers and pipeline authors who wanted BAM manipulation without binding directly to SAMtools internals.

BamTools reached the 2.x series by 2011 and has continued to receive maintenance releases, including the 2.5.x line used by modern package managers.

### Historique d'adoption

BamTools became a routine distribution package for bioinformatics environments: the supplied package facts list Homebrew, Debian/Ubuntu, MacPorts, and Nix packages. That adoption matters because genomics pipelines often rely on system packages for reproducible command-line utilities on shared clusters and CI images.

### Modes d'utilisation

The source tree builds a bamtools toolkit binary with subcommands such as convert, count, coverage, filter, header, index, merge, random, resolve, revert, sort, split, and stats. The same repository also exposes a C++ API for applications that need to read or write BAM data programmatically.

Typical users are bioinformatics developers, sequencing pipeline maintainers, and researchers doing command-line BAM file processing outside larger workflow systems.

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

For package nerds, BamTools sits at the intersection of library packaging and scientific reproducibility. It is small enough to be a normal Unix package but domain-specific enough that ABI, zlib linkage, and command compatibility matter to downstream genomics stacks.

Its relationship to SAMtools makes it historically useful: SAMtools became the canonical C toolkit, while BamTools offered a C++-oriented alternative that distributions could ship for software expecting the BamTools API.

### Chronologie

- 2009: Initial BamTools import appears in the official Git history.
- 2009-2010: README copyright credits the original BamTools authors.
- 2011: v2.0.0 is tagged, establishing the 2.x API/toolkit line.
- 2017: v2.5.1 is tagged in the long-lived 2.5 series.
- 2025: v2.5.3 is tagged as a maintenance release.

### Related projects

- BamTools is directly related to SAMtools and the SAM/BAM file-format ecosystem. It is commonly adjacent to HTSlib/SAMtools-style tooling, alignment pipelines, and downstream genomics packages that consume BAM files.

### Sources

- <https://github.com/pezmaster31/bamtools>
- <https://github.com/pezmaster31/bamtools/blob/master/README>
- <https://github.com/pezmaster31/bamtools/commit/3ba4b5eb3f88fd8f24af8bf83ba218b84faa87ba>
- <https://github.com/pezmaster31/bamtools/wiki>
- input.source_facts.package-manager


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals

## Détails de la base source

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

## Autres enregistrements de gestionnaires de paquets

- Debian apt - bamtools - 2.5.2+dfsg-6+b1: normalized package name match | Debian stable package indexes: bamtools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | toolkit for manipulating BAM (genome alignment) files | https://github.com/pezmaster31/bamtools/wiki
- Debian apt - libbamtools-dev - 2.5.2+dfsg-6+b1: normalized package name match | Debian stable package indexes: libbamtools-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C++ API for manipulating BAM (genome alignment) files | https://github.com/pezmaster31/bamtools/wiki
- Debian apt - libbamtools-doc - 2.5.2+dfsg-6: normalized package name match | Debian stable package indexes: libbamtools-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | docs for dynamic library for manipulating BAM (genome alignment) files | https://github.com/pezmaster31/bamtools/wiki
- Debian apt - libbamtools2.5.2 - 2.5.2+dfsg-6+b1: normalized package name match | Debian stable package indexes: libbamtools2.5.2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | dynamic library for manipulating BAM (genome alignment) files | https://github.com/pezmaster31/bamtools/wiki
- Nix - bamtools: normalized package name match | nixpkgs package indexes: pkgs/by-name/ba/bamtools/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - bamtools - 2.5.2+dfsg-4: normalized package name match | Ubuntu 24.04 LTS package indexes: bamtools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | toolkit for manipulating BAM (genome alignment) files | https://github.com/pezmaster31/bamtools/wiki
- Ubuntu apt - libbamtools-dev - 2.5.2+dfsg-4: normalized package name match | Ubuntu 24.04 LTS package indexes: libbamtools-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C++ API for manipulating BAM (genome alignment) files | https://github.com/pezmaster31/bamtools/wiki
- Ubuntu apt - libbamtools-doc - 2.5.2+dfsg-4: normalized package name match | Ubuntu 24.04 LTS package indexes: libbamtools-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | docs for dynamic library for manipulating BAM (genome alignment) files | https://github.com/pezmaster31/bamtools/wiki
- Ubuntu apt - libbamtools2.5.2 - 2.5.2+dfsg-4: normalized package name match | Ubuntu 24.04 LTS package indexes: libbamtools2.5.2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | dynamic library for manipulating BAM (genome alignment) files | https://github.com/pezmaster31/bamtools/wiki
- MacPorts - bamtools: normalized package name match | MacPorts ports tree: devel/bamtools/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Liens liés

- [Source-control packages](https://pkg.so/fr/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/fr/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/fr/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Database and data packages](https://pkg.so/fr/database-data-tools/) - Matched database, SQL, migration, or data-store metadata.
- [pkgconf](https://pkg.so/fr/brew/pkgconf/) - Build dependency declared by Homebrew.
- [cmake](https://pkg.so/fr/brew/cmake/) - Build dependency declared by Homebrew.
- [augustus](https://pkg.so/fr/brew/augustus/) - Popular package that depends on this formula.
- [samtools](https://pkg.so/fr/brew/samtools/) - Shares pkgdb curated category or tags: bam, bioinformatics, cli, genomics, science.
- [bedtools](https://pkg.so/fr/brew/bedtools/) - Shares pkgdb curated category or tags: bam, bioinformatics, cli, genomics, science.
- [sambamba](https://pkg.so/fr/brew/sambamba/) - Shares pkgdb curated category or tags: bam, bioinformatics, cli, genomics, science.
- [perbase](https://pkg.so/fr/brew/perbase/) - Shares pkgdb curated category or tags: bam, bioinformatics, cli, genomics, science.
- [mosdepth](https://pkg.so/fr/brew/mosdepth/) - Shares pkgdb curated category or tags: bam, bioinformatics, cli, genomics, science.
- [blast](https://pkg.so/fr/brew/blast/) - Shares pkgdb curated category or tags: bioinformatics, cli, genomics, science.
- [minimap2](https://pkg.so/fr/brew/minimap2/) - Shares pkgdb curated category or tags: bioinformatics, cli, genomics, science.
- [bbtools](https://pkg.so/fr/brew/bbtools/) - Shares pkgdb curated category or tags: bioinformatics, cli, genomics, science.
- [bedops](https://pkg.so/fr/brew/bedops/) - Local package facts share a topical domain. Shared terms: bioinformatics, cli, data, genomics, science.

## Combined YAML source

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


## Sources

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