macOS
brew install bzip2local Homebrew formula metadata
sudo port install bzip2MacPorts ports tree · archivers/bzip2/Portfile · source: api.github.com
brew
Freely available high-quality data compressor. Version 1.0.8 via Homebrew; verified from local package data.
install
brew install bzip2local Homebrew formula metadata
sudo port install bzip2MacPorts ports tree · archivers/bzip2/Portfile · source: api.github.com
sudo apk add bzip2Alpine Linux edge package indexes · bzip2 · source: dl-cdn.alpinelinux.org
sudo apt install bzip2Debian stable package indexes · bzip2 · source: deb.debian.org
sudo dnf install bzip2Fedora Rawhide package metadata · bzip2 · source: dl.fedoraproject.org
nix profile install nixpkgs#bzip2nixpkgs package indexes · bzip2 · source: raw.githubusercontent.com
sudo pacman -S bzip2Arch Linux sync databases · bzip2 · source: geo.mirror.pkgbuild.com
sudo zypper install bzip2openSUSE Tumbleweed package metadata · bzip2 · source: download.opensuse.org
choco install bzip2Chocolatey community package catalog · bzip2 · source: community.chocolatey.org
scoop install main/bzip2Scoop official bucket manifest trees · bucket/bzip2.json · source: api.github.com
overview
Freely available high-quality data compressor
history
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.
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.
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.
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.
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.
security posture
broad file, network, media, or database tool signal.
blue risk · medium confidence · tool
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 |
|---|---|---|---|
bunzip2 | cli | global executable | |
bzcat | cli | global executable | |
bzcmp | cli | global executable | |
bzdiff | cli | global executable | |
bzegrep | cli | global executable | |
bzfgrep | cli | global executable | |
bzgrep | cli | global executable | |
bzip2 | cli | global executable | |
bzip2recover | cli | global executable | |
bzless | cli | global executable | |
bzmore | 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.
install metadata
| Package key | brew:bzip2 |
|---|---|
| Version | 1.0.8 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/bzip2 |
| Homepage | https://sourceware.org/bzip2/ |
| Repository | https://sourceware.org/git?p=bzip2.git%3Ba%3Dsummary |
| Upstream docs | https://sourceware.org/bzip2/docs.html |
| License | bzip2-1.0.6 |
| Source archive | https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz |
| Bottle | available (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-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | bzip2 |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | yes |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
bzip2 1.0.8-6
high-quality block-sorting file compressor - utilities
sudo apt install bzip2bzip2-doc 1.0.8-6
high-quality block-sorting file compressor - documentation
sudo apt install bzip2-doclibbz2-1.0 1.0.8-6
high-quality block-sorting file compressor library - runtime
sudo apt install libbz2-1.0libbz2-dev 1.0.8-6
high-quality block-sorting file compressor library - development
sudo apt install libbz2-devbzip2
nix profile install nixpkgs#bzip2bzip2 1.0.8-5.1
high-quality block-sorting file compressor - utilities
sudo apt install bzip2bzip2-doc 1.0.8-5.1
high-quality block-sorting file compressor - documentation
sudo apt install bzip2-doclibbz2-1.0 1.0.8-5.1
high-quality block-sorting file compressor library - runtime
sudo apt install libbz2-1.0libbz2-dev 1.0.8-5.1
high-quality block-sorting file compressor library - development
sudo apt install libbz2-devbzip2 1.0.8-r6
A high-quality data compression program
sudo apk add bzip2bzip2-dev 1.0.8-r6
A high-quality data compression program (development files)
sudo apk add bzip2-devbzip2-doc 1.0.8-r6
A high-quality data compression program (documentation)
sudo apk add bzip2-docbzip2-static 1.0.8-r6
A high-quality data compression program (static library)
sudo apk add bzip2-staticlibbz2 1.0.8-r6
Shared library for bz2
sudo apk add libbz2bzip2 1.0.8-23.fc44
File compression utility
sudo dnf install bzip2bzip2-devel 1.0.8-23.fc44
Libraries and header files for apps which will use bzip2
sudo dnf install bzip2-develsource 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.