macOS
brew install bamtoolslocal Homebrew formula metadata
sudo port install bamtoolsMacPorts ports tree · devel/bamtools/Portfile · source: api.github.com
brew
C++ API and command-line toolkit for BAM data. Version 2.5.3 via Homebrew; verified 2026-05-03.
install
brew install bamtoolslocal Homebrew formula metadata
sudo port install bamtoolsMacPorts ports tree · devel/bamtools/Portfile · source: api.github.com
sudo apt install bamtoolsDebian stable package indexes · bamtools · source: deb.debian.org
nix profile install nixpkgs#bamtoolsnixpkgs package indexes · pkgs/by-name/ba/bamtools/package.nix · source: api.github.com
overview
C++ API and command-line toolkit for BAM data
history
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.
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.
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.
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.
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.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
bamtools | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/pezmaster31/bamtools
install metadata
| Package key | brew:bamtools |
|---|---|
| Version | 2.5.3 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/bamtools |
| Homepage | https://github.com/pezmaster31/bamtools |
| Repository | https://github.com/pezmaster31/bamtools |
| Upstream docs | https://github.com/pezmaster31/bamtools/wiki |
| License | MIT |
| Source archive | https://github.com/pezmaster31/bamtools/archive/refs/tags/v2.5.3.tar.gz |
| Last updated | 2026-05-03T16:10:34Z |
| Pulse | updated |
| Dependencies | jsoncpp |
| Build dependencies | cmake, pkgconf |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
bamtools 2.5.2+dfsg-6+b1
toolkit for manipulating BAM (genome alignment) files
https://github.com/pezmaster31/bamtools/wiki
sudo apt install bamtoolslibbamtools-dev 2.5.2+dfsg-6+b1
C++ API for manipulating BAM (genome alignment) files
https://github.com/pezmaster31/bamtools/wiki
sudo apt install libbamtools-devlibbamtools-doc 2.5.2+dfsg-6
docs for dynamic library for manipulating BAM (genome alignment) files
https://github.com/pezmaster31/bamtools/wiki
sudo apt install libbamtools-doclibbamtools2.5.2 2.5.2+dfsg-6+b1
dynamic library for manipulating BAM (genome alignment) files
https://github.com/pezmaster31/bamtools/wiki
sudo apt install libbamtools2.5.2bamtools
nix profile install nixpkgs#bamtoolsbamtools 2.5.2+dfsg-4
toolkit for manipulating BAM (genome alignment) files
https://github.com/pezmaster31/bamtools/wiki
sudo apt install bamtoolslibbamtools-dev 2.5.2+dfsg-4
C++ API for manipulating BAM (genome alignment) files
https://github.com/pezmaster31/bamtools/wiki
sudo apt install libbamtools-devlibbamtools-doc 2.5.2+dfsg-4
docs for dynamic library for manipulating BAM (genome alignment) files
https://github.com/pezmaster31/bamtools/wiki
sudo apt install libbamtools-doclibbamtools2.5.2 2.5.2+dfsg-4
dynamic library for manipulating BAM (genome alignment) files
https://github.com/pezmaster31/bamtools/wiki
sudo apt install libbamtools2.5.2bamtools
sudo port install bamtoolssource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.