macOS
brew install bzip2local Homebrew formula metadata
sudo port install bzip2MacPorts ports tree · archivers/bzip2/Portfile · 来源: api.github.com
安装
brew install bzip2local Homebrew formula metadata
sudo port install bzip2MacPorts ports tree · archivers/bzip2/Portfile · 来源: api.github.com
sudo apk add bzip2Alpine Linux edge package indexes · bzip2 · 来源: dl-cdn.alpinelinux.org
sudo dnf install bzip2Fedora Rawhide package metadata · bzip2 · 来源: dl.fedoraproject.org
nix profile install nixpkgs#bzip2nixpkgs package indexes · bzip2 · 来源: raw.githubusercontent.com
sudo pacman -S bzip2Arch Linux sync databases · bzip2 · 来源: geo.mirror.pkgbuild.com
sudo zypper install bzip2openSUSE Tumbleweed package metadata · bzip2 · 来源: download.opensuse.org
choco install bzip2Chocolatey community package catalog · bzip2 · 来源: community.chocolatey.org
scoop install main/bzip2Scoop official bucket manifest trees · bucket/bzip2.json · 来源: api.github.com
概览
Freely available high-quality data compressor
历史
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.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
bunzip2 | cli | 全局可执行文件 | |
bzcat | cli | 全局可执行文件 | |
bzcmp | cli | 全局可执行文件 | |
bzdiff | cli | 全局可执行文件 | |
bzegrep | cli | 全局可执行文件 | |
bzfgrep | cli | 全局可执行文件 | |
bzgrep | cli | 全局可执行文件 | |
bzip2 | cli | 全局可执行文件 | |
bzip2recover | cli | 全局可执行文件 | |
bzless | cli | 全局可执行文件 | |
bzmore | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:bzip2 |
|---|---|
| 版本 | 1.0.8 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/bzip2 |
| 主页 | https://sourceware.org/bzip2/ |
| 仓库 | https://sourceware.org/git?p=bzip2.git%3Ba%3Dsummary |
| 上游文档 | https://sourceware.org/bzip2/docs.html |
| 许可证 | bzip2-1.0.6 |
| 源码归档 | https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz |
| Bottle | 可用 (于 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 | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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-devel来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.