Command-line tool
bzip2
brew/bzip2
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Freely available high-quality data compressor
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
scoop install bzip2
macOS
brew install bzip2
Linux
brew install bzip2
Compress a file
bzip2 path/to/file_to_compress
Decompress a file
bzip2 -d path/to/compressed_file.bz2
Decompress a file to `stdout`
bzip2 -dc path/to/compressed_file.bz2
Related command-line tools
- pbzip2
Parallel bzip2 - lzip
LZMA-based compression program similar to gzip or bzip2 - bzip3
Better and stronger spiritual successor to BZip2 - rzip
File compression tool (like gzip or bzip2) - wandio
Transparently read from and write to zip, bzip2, lzma or zstd archives - lrzip
Compression program with a very high compression ratio - pngquant
PNG image optimizing utility - fastqc
Quality control tool for high throughput sequence data
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents