Automic VaultAutomic Vault

brew

Install htslib with Homebrew, apt, dnf, MacPorts, Nix, zypper

C library for high-throughput sequencing data formats. Version 1.23.1 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install htslib

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install htslib

MacPorts ports tree · science/htslib/Portfile · source: api.github.com

Linux

Debian aptverified · 92%
sudo apt install htslib-test

Debian stable package indexes · htslib-test · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install htslib

Fedora Rawhide package metadata · htslib · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#htslib

nixpkgs package indexes · pkgs/by-name/ht/htslib/package.nix · source: api.github.com

openSUSE zypperverified · 92%
sudo zypper install bgzip

openSUSE Tumbleweed package metadata · bgzip · source: download.opensuse.org

overview

Package summary

C library for high-throughput sequencing data formats

Commands and aliases

  • annot-tsv
  • bgzip
  • htsfile
  • ref-cache
  • tabix

history

Project history and usage

HTSlib is the C library layer of the Samtools family, providing shared reading and writing support for high-throughput sequencing formats such as SAM, BAM, CRAM, VCF, and BCF. It matters beyond a single command-line package because many genomics tools build on the same file-format and indexing behavior.

Project history

The Samtools site describes the project as three related repositories: Samtools for alignment manipulation, BCFtools for variant data, and HTSlib as the common C library. Its download page preserves the split in historical context, noting that before HTSlib was introduced, Samtools and BCFtools were shipped together in a single samtools-0.1.x source package.

The annotated 1.0 tag in the official GitHub repository, dated 2014-08-15, describes the first HTSlib release as supporting SAM, BAM, CRAM, VCF, and BCF. Later release notes show the library continuing to absorb format, indexing, threading, remote-I/O, and ABI changes that affect downstream tools.

Adoption history

HTSlib's adoption is tightly coupled to the Samtools ecosystem: the Samtools site says Samtools and BCFtools use HTSlib internally, while HTSlib is also distributed separately for developers writing programs against its API. Packaging across Homebrew, Debian-family distributions, Fedora, MacPorts, Nix, and openSUSE reflects its role as a build-time and runtime dependency rather than only an end-user utility.

How it is used

Package users often encounter HTSlib through utilities installed with the library, especially bgzip, htsfile, tabix, ref-cache, and annot-tsv. Developers use the C API for compressed genomic files, indexes, region queries, remote access, and format detection in sequencing and variant-analysis workflows.

Why package nerds care

HTSlib is package-nerd significant because it is both a library ABI and a bundle of small Unix-style genomics tools. Changes such as the 2019 1.10 release's SAM header API, multi-threaded SAM I/O, on-the-fly indexing, S3 updates, and 64-bit reference-position support are the sort of low-level package events that can ripple through many bioinformatics builds.

Timeline

  • 2012: The samtools/htslib repository was created on GitHub.
  • 2014: The 1.0 tag marked the first HTSlib release, supporting SAM, BAM, CRAM, VCF, and BCF.
  • 2019: Release 1.10 added a SAM header API, multi-threaded SAM reading and writing, on-the-fly indexing, and S3 interface updates.
  • 2026: Release notes for 1.23.1 documented CRAM decoder security fixes and related build updates.

Related projects

  • Samtools and BCFtools are the closest sibling projects, both using HTSlib internally. Related file-format work includes the SAM, BAM, CRAM, VCF, BCF, BGZF, and tabix indexing formats that HTSlib reads, writes, or helps index.

Sources

  • Samtools project site, HTSlib download notes, GitHub repository metadata, and official release/tag metadata.

security posture

Risk level: green

library-like package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • library-like package without higher-risk signals

Signals

  • metadata:library-like

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 2 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
annot-tsvcliglobal executable
bgzipcliglobal executable
htsfilecliglobal executable
ref-cachecliglobal executable
tabixcliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version1.23.1
manager updated
local dataok
upstreamnot checked
latest detectednot detected

https://github.com/samtools/htslib

  • infoNo package-manager update timestamp was available.low confidence
  • infoNo cached GitHub release or tag data was available.https://github.com/samtools/htslibnone confidence

install metadata

Package metadata

Package keybrew:htslib
Version1.23.1
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/htslib
Homepagehttps://www.htslib.org/
Repositoryhttps://github.com/samtools/htslib
Upstream docshttps://github.com/samtools/htslib#readme
LicenseMIT AND BSD-3-Clause
Source archivehttps://github.com/samtools/htslib/releases/download/1.23.1/htslib-1.23.1.tar.bz2
Dependencieslibdeflate, xz
Uses from macOSbzip2, curl
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namehtslib
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

htslib-test 1.21+ds-1

Test data for HTSlib

https://github.com/samtools/htslib

sudo apt install htslib-test
  • Section: libs
  • Architecture: all
  • Source Package: htslib
  • 1 dependencies
  • normalized package name match
  • Matched by: Htslib
Debian stable package indexes · deb.debian.org · Debian stable package indexes: htslib-test from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libhts-dev 1.21+ds-1

development files for the HTSlib

https://github.com/samtools/htslib

sudo apt install libhts-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: htslib
  • 6 dependencies
  • normalized package name match
  • Matched by: Htslib
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libhts-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libhts3t64 1.21+ds-1

C library for high-throughput sequencing data formats

https://github.com/samtools/htslib

sudo apt install libhts3t64
  • Section: libs
  • Architecture: amd64
  • Source Package: htslib
  • 8 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Htslib
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libhts3t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

tabix 1.21+ds-1

generic indexer for TAB-delimited genome position files

https://github.com/samtools/htslib

sudo apt install tabix
  • Section: science
  • Architecture: amd64
  • Source Package: htslib
  • 6 dependencies
  • normalized package name match
  • Matched by: Htslib
Debian stable package indexes · deb.debian.org · Debian stable package indexes: tabix from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

htslib

nix profile install nixpkgs#htslib
  • normalized package name match
  • Matched by: Htslib
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ht/htslib/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

htslib-test 1.19+ds-1.1build3

Test data for HTSlib

https://github.com/samtools/htslib

sudo apt install htslib-test
  • Section: universe/libs
  • Architecture: all
  • Source Package: htslib
  • 1 dependencies
  • normalized package name match
  • Matched by: Htslib
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: htslib-test from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libhts-dev 1.19+ds-1.1build3

development files for the HTSlib

https://github.com/samtools/htslib

sudo apt install libhts-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: htslib
  • 5 dependencies
  • normalized package name match
  • Matched by: Htslib
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libhts-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libhts3t64 1.19+ds-1.1build3

C library for high-throughput sequencing data formats

https://github.com/samtools/htslib

sudo apt install libhts3t64
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: htslib
  • 8 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Htslib
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libhts3t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

tabix 1.19+ds-1.1build3

generic indexer for TAB-delimited genome position files

https://github.com/samtools/htslib

sudo apt install tabix
  • Section: universe/science
  • Architecture: amd64
  • Source Package: htslib
  • 6 dependencies
  • normalized package name match
  • Matched by: Htslib
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: tabix from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
dnf95%

htslib 1.23.1-2.fc45

C library for high-throughput sequencing data formats

http://www.htslib.org

sudo dnf install htslib
  • License: MIT AND BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
  • Category: Unspecified
  • Architecture: i686
  • Source Package: htslib
  • 8 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Htslib
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: htslib from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

htslib-devel 1.23.1-2.fc45

Development files for htslib

http://www.htslib.org

sudo dnf install htslib-devel
  • License: MIT AND BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
  • Category: Unspecified
  • Architecture: i686
  • Source Package: htslib
  • 3 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Htslib
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: htslib-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

htslib-tools 1.23.1-2.fc45

Additional htslib-based tools

http://www.htslib.org

sudo dnf install htslib-tools
  • License: MIT AND BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: htslib
  • 8 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Htslib
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: htslib-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
MacPorts95%

htslib

sudo port install htslib
  • normalized package name match
  • Matched by: Htslib
MacPorts ports tree · api.github.com · MacPorts ports tree: science/htslib/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
zypper92%

bgzip 1.21-1.3

Block compression/decompression utility from the HTSlib project

https://github.com/samtools/htslib/

sudo zypper install bgzip
  • License: MIT
  • Category: Productivity/Scientific/Other
  • Architecture: x86_64
  • Source Package: libhts
  • 8 dependencies
  • 1 provides
  • installed executable or alias match
  • Matched by: Bgzip
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: bgzip from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper92%

htsfile 1.21-1.3

Identify high-throughput sequencing data files from the HTSlib project

https://github.com/samtools/htslib/

sudo zypper install htsfile
  • License: MIT
  • Category: Productivity/Scientific/Other
  • Architecture: x86_64
  • Source Package: libhts
  • 9 dependencies
  • 1 provides
  • installed executable or alias match
  • Matched by: Htsfile
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: htsfile from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper92%

tabix 1.21-1.3

Generic indexer for TAB-delimited genome position files from the HTSlib project

https://github.com/samtools/htslib/

sudo zypper install tabix
  • License: MIT
  • Category: Productivity/Scientific/Other
  • Architecture: x86_64
  • Source Package: libhts
  • 10 dependencies
  • 1 provides
  • installed executable or alias match
  • Matched by: Tabix
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: tabix from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment