Automic VaultAutomic Vault

brew

Install bzip2 with Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, scoop, zypper

Freely available high-quality data compressor. Version 1.0.8 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install bzip2

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install bzip2

MacPorts ports tree · archivers/bzip2/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add bzip2

Alpine Linux edge package indexes · bzip2 · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install bzip2

Debian stable package indexes · bzip2 · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install bzip2

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

Nixverified · 92%
nix profile install nixpkgs#bzip2

nixpkgs package indexes · bzip2 · source: raw.githubusercontent.com

Arch Linux pacmanverified · 92%
sudo pacman -S bzip2

Arch Linux sync databases · bzip2 · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install bzip2

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

overview

Package summary

Freely available high-quality data compressor

Commands and aliases

  • bunzip2
  • bzcat
  • bzcmp
  • bzdiff
  • bzegrep
  • bzfgrep
  • bzgrep
  • bzip2
  • bzip2recover
  • bzless
  • bzmore

history

Project history and usage

bzip2 is Julian Seward's open-source block-sorting compressor and its companion library, libbzip2. Since the late 1990s it has been one of the standard Unix compression formats for source tarballs, backups, package payloads, and long-lived archives.

Project history

The official bzip2 manual identifies Julian Seward as author and gives the 1.0.8 manual release date as 13 July 2019, with copyright running from 1996 through 2019. The Sourceware home page describes bzip2 as a freely available, patent-free, high-quality data compressor organized as both a command-line program and a library.

Technically, bzip2 uses block-sorting compression associated with the Burrows-Wheeler transform, followed by entropy coding. Its design favored compression ratio over speed, and the official site positions it as typically compressing close to much heavier statistical compressors while remaining practical on ordinary Unix systems.

The 1.0 line became the compatibility anchor for the `.bz2` format and libbzip2 API. Sourceware's git tags preserve older public milestones from `bzip2-0.1` through `bzip2-1.0.8`, showing a package with a slow, conservative release culture after its format became infrastructure.

Adoption history

bzip2 adoption followed the familiar Unix pattern: first as a better-compressing alternative to gzip, then as a standard option in tar pipelines, release archives, Linux distributions, and package managers. The command names `bzip2`, `bunzip2`, and `bzcat` intentionally echo gzip's workflow, reducing friction for shell users.

The package's presence across Homebrew, Debian, Ubuntu, Fedora, Alpine, Arch, MacPorts, Nix, Chocolatey, Scoop, and openSUSE reflects near-universal distribution. Even where xz and zstd displaced it for many new archives, bzip2 remains installed because decades of `.bz2` artifacts still need reliable decompression.

How it is used

Users compress files with `bzip2`, decompress with `bunzip2`, stream with `bzcat`, compare or diff compressed files with `bzcmp` and `bzdiff`, and recover damaged block-based archives with `bzip2recover`.

Developers use libbzip2 when applications need to read or write `.bz2` streams directly. The official manual documents both the command interface and the programming interface, which is why package managers usually split runtime tools and development headers.

Why package nerds care

bzip2 is package-nerd bedrock: it is one of the archive formats every build tool, mirror, bootstrap script, and source-fetching system eventually has to understand. A working `bunzip2` is boring until a historical tarball or distro source package requires it.

It is also a case study in conservative infrastructure. The compressor is no longer fashionable, but its stable format, simple commands, portable C implementation, and widespread packaging make it one of the quiet dependencies that keeps old source distribution workflows reproducible.

Timeline

  • 1996: Julian Seward's bzip2 copyright history begins.
  • 1997: Early public tags such as `bzip2-0.1` appear in the official Sourceware git history.
  • 2000: The 1.0 series establishes the long-lived format and library baseline.
  • 2010: bzip2 1.0.6 becomes a widely packaged stable release.
  • 2019: bzip2 1.0.8 is released and documented as the current stable version on Sourceware.

Related projects

  • gzip is the older Unix compressor whose command-line conventions bzip2 intentionally resembles.
  • xz, zstd, and lzip are common later alternatives in source distribution and package-manager ecosystems.
  • libbzip2 is the library interface shipped with the command-line program for applications that need `.bz2` support.

security posture

Risk level: blue

broad file, network, media, or database tool signal.

Risk classifier

blue risk · medium confidence · tool

Why

  • broad file, network, media, or database tool signal

Signals

  • text:compress

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 12 platform targets.

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
bunzip2cliglobal executable
bzcatcliglobal executable
bzcmpcliglobal executable
bzdiffcliglobal executable
bzegrepcliglobal executable
bzfgrepcliglobal executable
bzgrepcliglobal executable
bzip2cliglobal executable
bzip2recovercliglobal executable
bzlesscliglobal executable
bzmorecliglobal 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.0.8
manager updated
local dataok
upstreamnot checked
latest detectednot detected

https://sourceware.org/bzip2/

  • infoNo package-manager update timestamp was available.low confidence
  • infoRelease/tag comparison is only available for GitHub repositories.https://sourceware.org/bzip2/none confidence

install metadata

Package metadata

Package keybrew:bzip2
Version1.0.8
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/bzip2
Homepagehttps://sourceware.org/bzip2/
Repositoryhttps://sourceware.org/git?p=bzip2.git%3Ba%3Dsummary
Upstream docshttps://sourceware.org/bzip2/docs.html
Licensebzip2-1.0.6
Source archivehttps://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz
Bottleavailable (on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namebzip2
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyyes
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%

bzip2 1.0.8-6

high-quality block-sorting file compressor - utilities

https://sourceware.org/bzip2/

sudo apt install bzip2
  • Section: utils
  • Architecture: amd64
  • 2 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Bzip2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: bzip2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

bzip2-doc 1.0.8-6

high-quality block-sorting file compressor - documentation

https://sourceware.org/bzip2/

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

libbz2-1.0 1.0.8-6

high-quality block-sorting file compressor library - runtime

https://sourceware.org/bzip2/

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

libbz2-dev 1.0.8-6

high-quality block-sorting file compressor library - development

https://sourceware.org/bzip2/

sudo apt install libbz2-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: bzip2
  • 3 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Bzip2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libbz2-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

bzip2

nix profile install nixpkgs#bzip2
  • normalized package name match
  • Matched by: Bzip2
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: bzip2 from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

bzip2 1.0.8-5.1

high-quality block-sorting file compressor - utilities

https://sourceware.org/bzip2/

sudo apt install bzip2
  • Section: utils
  • Architecture: amd64
  • 2 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Bzip2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: bzip2 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

bzip2-doc 1.0.8-5.1

high-quality block-sorting file compressor - documentation

https://sourceware.org/bzip2/

sudo apt install bzip2-doc
  • Section: doc
  • Architecture: all
  • Source Package: bzip2
  • normalized package name match
  • Matched by: Bzip2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: bzip2-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libbz2-1.0 1.0.8-5.1

high-quality block-sorting file compressor library - runtime

https://sourceware.org/bzip2/

sudo apt install libbz2-1.0
  • Section: libs
  • Architecture: amd64
  • Source Package: bzip2
  • 1 dependencies
  • normalized package name match
  • Matched by: Bzip2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libbz2-1.0 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libbz2-dev 1.0.8-5.1

high-quality block-sorting file compressor library - development

https://sourceware.org/bzip2/

sudo apt install libbz2-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: bzip2
  • 3 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Bzip2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libbz2-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk95%

bzip2 1.0.8-r6

A high-quality data compression program

https://sourceware.org/bzip2/

sudo apk add bzip2
  • License: bzip2-1.0.6
  • Architecture: x86_64
  • Source Package: bzip2
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Bzip2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: bzip2 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

bzip2-dev 1.0.8-r6

A high-quality data compression program (development files)

https://sourceware.org/bzip2/

sudo apk add bzip2-dev
  • License: bzip2-1.0.6
  • Architecture: x86_64
  • Source Package: bzip2
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Bzip2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: bzip2-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

bzip2-doc 1.0.8-r6

A high-quality data compression program (documentation)

https://sourceware.org/bzip2/

sudo apk add bzip2-doc
  • License: bzip2-1.0.6
  • Architecture: x86_64
  • Source Package: bzip2
  • normalized package name match
  • Matched by: Bzip2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: bzip2-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

bzip2-static 1.0.8-r6

A high-quality data compression program (static library)

https://sourceware.org/bzip2/

sudo apk add bzip2-static
  • License: bzip2-1.0.6
  • Architecture: x86_64
  • Source Package: bzip2
  • normalized package name match
  • Matched by: Bzip2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: bzip2-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

libbz2 1.0.8-r6

Shared library for bz2

https://sourceware.org/bzip2/

sudo apk add libbz2
  • License: bzip2-1.0.6
  • Architecture: x86_64
  • Source Package: bzip2
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Bzip2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libbz2 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

bzip2 1.0.8-23.fc44

File compression utility

https://sourceware.org/bzip2

sudo dnf install bzip2
  • License: BSD-4-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: bzip2
  • 4 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Bzip2
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: bzip2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

bzip2-devel 1.0.8-23.fc44

Libraries and header files for apps which will use bzip2

https://sourceware.org/bzip2

sudo dnf install bzip2-devel
  • License: BSD-4-Clause
  • Category: Unspecified
  • Architecture: i686
  • Source Package: bzip2
  • 3 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Bzip2
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: bzip2-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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