Automic VaultAutomic Vault

brew

Install kraken2 with Homebrew, apt, apk

Taxonomic sequence classification system. Version 2.17.1 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install kraken2

local Homebrew formula metadata

overview

Package summary

Taxonomic sequence classification system

Commands and aliases

  • k2
  • kraken2
  • kraken2-build
  • kraken2-inspect

history

Project history and usage

Kraken 2 is the second-generation Kraken taxonomic sequence classifier for DNA reads. It matters in bioinformatics packaging because it packages a high-performance, database-heavy scientific CLI into standard Unix package-manager workflows while still reflecting the research tool's unusually large external data requirements.

Project history

The original Kraken classifier was published in Genome Biology in 2014 as an ultrafast metagenomic sequence classification method based on exact k-mer alignments. Kraken 2 was created after Kraken 1's speed exposed a practical problem: large k-mer/LCA databases could demand enough RAM to make the tool hard to run on ordinary workstations.

Kraken 2's manual describes the key redesign: it stores minimizers instead of every k-mer, uses a probabilistic compact hash table, supports translated search against amino-acid databases, and adds spaced seeds and special database support. The Kraken 2 paper was published in Genome Biology on 2019-11-28 and reported lower memory use and faster classification while keeping Kraken-style exact-match taxonomy assignment.

Adoption history

Kraken 2 became part of the common metagenomics command-line toolkit because it preserved Kraken's CLI-centered workflow while reducing the memory barrier for large microbial reference databases. Its Homebrew, Debian, Ubuntu, Alpine, and source-build packaging reflects the way sequencing labs and HPC users install reproducible command-line tools across mixed Linux and macOS environments.

The project also kept compatibility with the surrounding Kraken ecosystem, including the original Kraken paper lineage and related abundance-estimation workflows such as Bracken, which helped make Kraken 2 an upgrade path rather than a disconnected replacement.

How it is used

Users install the program, then build or download a taxonomy database before classifying reads with commands such as kraken2, kraken2-build, and kraken2-inspect. The manual emphasizes that database construction depends on external taxonomy and sequence downloads, disk space, RAM, OpenMP-capable builds, and Unix utilities.

For package managers, Kraken 2 is an example where the packaged executable is only part of the operational story: the large mutable reference database, network downloads, and local storage policy matter as much as the binary.

Why package nerds care

Kraken 2 is a package-nerd case study in scientific software distribution: a small CLI package fronts a large and evolving data dependency that cannot simply be vendored into the formula. It also shows why bioinformatics packages often need both upstream manuals and package-manager metadata to communicate runtime expectations.

Timeline

  • 2014: The original Kraken paper was published in Genome Biology.
  • 2018-06-26: The Kraken 2 GitHub repository and v2.0.6-beta release were published.
  • 2019-11-28: The Kraken 2 paper was published in Genome Biology.
  • 2025-11-24: Kraken 2 v2.17.1 was published on GitHub.

Related projects

  • Kraken 1 is the direct predecessor. Bracken is a related abundance-estimation tool commonly used with Kraken classification output. The broader method family includes other metagenomic classifiers and low-memory variants that respond to the same taxonomy-indexing tradeoffs.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 4 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
k2cliglobal executable
kraken2cliglobal executable
kraken2-buildcliglobal executable
kraken2-inspectcliglobal 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 version2.17.1
manager updated
local dataok
upstreamcurrent
latest detectedv2.17.1

https://github.com/DerrickWood/kraken2

  • infoNo package-manager update timestamp was available.low confidence

install metadata

Package metadata

Package keybrew:kraken2
Version2.17.1
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/kraken2
Homepagehttps://github.com/DerrickWood/kraken2
Repositoryhttps://github.com/DerrickWood/kraken2
Upstream docshttps://github.com/DerrickWood/kraken2/blob/master/docs/MANUAL.markdown
LicenseMIT
Source archivehttps://github.com/DerrickWood/kraken2/archive/refs/tags/v2.17.1.tar.gz
Dependenciesgperftools, libomp, python@3.14, wget
Uses from macOSperl, rsync
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 Namekraken2
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • 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%

kraken2 2.1.3-1

taxonomic classification system using exact k-mer matches

https://www.ccb.jhu.edu/software/kraken2/

sudo apt install kraken2
  • Section: science
  • Architecture: amd64
  • 7 dependencies
  • normalized package name match
  • Matched by: Kraken2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: kraken2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

kraken2 2.1.3-1

taxonomic classification system using exact k-mer matches

https://www.ccb.jhu.edu/software/kraken2/

sudo apt install kraken2
  • Section: universe/science
  • Architecture: amd64
  • 7 dependencies
  • normalized package name match
  • Matched by: Kraken2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: kraken2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk92%

k2 0_git20260430-r0

Chess engine with UCI and Xboard interface

https://github.com/serg-meus/k2

sudo apk add k2
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: k2
  • 1 dependencies
  • 1 provides
  • installed executable or alias match
  • Matched by: K2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: k2 from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

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