Automic VaultAutomic Vault

brew

使用 Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop 安装 bzip2

查看 bzip2 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install bzip2

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install bzip2

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

Linux

Alpine Linux apk已验证 · 92%
sudo apk add bzip2

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

Debian apt已验证 · 92%
sudo apt install bzip2

Debian stable package indexes · bzip2 · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install bzip2

Fedora Rawhide package metadata · bzip2 · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#bzip2

nixpkgs package indexes · bzip2 · 来源: raw.githubusercontent.com

Arch Linux pacman已验证 · 92%
sudo pacman -S bzip2

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

openSUSE zypper已验证 · 92%
sudo zypper install bzip2

openSUSE Tumbleweed package metadata · bzip2 · 来源: download.opensuse.org

Windows

Chocolatey已验证 · 92%
choco install bzip2

Chocolatey community package catalog · bzip2 · 来源: community.chocolatey.org

Scoop已验证 · 92%
scoop install main/bzip2

Scoop official bucket manifest trees · bucket/bzip2.json · 来源: api.github.com

概览

软件包摘要

Freely available high-quality data compressor

命令和别名

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

历史

项目历史与用法

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.

时间线

  • 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.

安全态势

风险级别:blue

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

风险分类器

blue 风险 · 中 置信度 · tool

原因

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

信号

  • text:compress

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 12 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
bunzip2cli全局可执行文件
bzcatcli全局可执行文件
bzcmpcli全局可执行文件
bzdiffcli全局可执行文件
bzegrepcli全局可执行文件
bzfgrepcli全局可执行文件
bzgrepcli全局可执行文件
bzip2cli全局可执行文件
bzip2recovercli全局可执行文件
bzlesscli全局可执行文件
bzmorecli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本1.0.8
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://sourceware.org/bzip2/

  • 信息No package-manager update timestamp was available.低 置信度
  • 信息Release/tag comparison is only available for GitHub repositories.https://sourceware.org/bzip2/none 置信度

安装元数据

软件包元数据

软件包键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 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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

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 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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