Formats

Formats

Every format the package ships with its containers and checksums and options. Read live from the registry
formats()7 formats · listing order
ContainersStandard
deflatedeflateraw, zlib, gzipratio 9%checksum Adler-32, CRC-32writes yesRFC 1951
bzip2bzip2bzip2ratio 9%checksum CRC-32/BZIP2writes yesbzip2 1.0.8 (Julian Seward)
LZMAlzmaalone, xzratio 8%checksum CRC-64 by default; CRC-32, SHA-256 or nonewrites yesLZMA SDK lzma-specification.txt (Igor Pavlov)
Zstandardzstdzstdreads onlychecksum XXH64, low 32 bitswrites noRFC 8878
Brotlibrotlibrotlireads onlychecksum nonewrites noRFC 7932
LZ4lz4frame, legacyratio 14%checksum XXH32writes yesLZ4 Block Format (Yann Collet)
Unix compress (LZW)lzwcompressratio 27%checksum nonewrites yesncompress 5.0 (compress 4.2)
read from the registry in your browser / no networkratio on 3159 bytes of text, default container and level

Every row is create(name).info(), computed in your browser from the registry the CLI and the agent tools read. The ratio is the same few lines of text through each format at its default container and level, compressed right here. zstd and brotli have no ratio, since this package reads them and doesn't write them.

Picking one

Reading something? Its format picked itself. identify names it, and each format's page says what its containers keep in the header.

Writing for a person with a terminal? gzip opens everywhere. xz is smaller and slower, and every Linux box has it too. bzip2 sits between them on text and loses to xz on almost everything else.

Writing for a program? zlib is the one every language reads without a dependency. LZ4 when speed matters more than size.

Matching what somebody else wrote? Their format wins. zstd and brotli read here, they just don't write, since the tools that make them are a package install away.