bzip2 compresses files using the Burrows-Wheeler block-sorting text compression algorithm, and Huffman coding. Compression is generally better than that achieved by more conventional LZ77/LZ78-based compressors, and approaches the performance of the PPM family of statistical compressors. The command-line options are deliberately very similar to those of GNU gzip, but they are not identical.
bzip2-1.0.1: description + notes
gzip -9, bzip2 is slower and gives a slightly better compression. Decompression is significantly slower than
gzip. Depending on your case, it may be worth it (or not) to invest the extra time in compressing/decompressing with bzip2 instead of the more standard gzip to gain a small advantage in multiple download times, etc.
The Bzip2 home page has more information.
For the curious, here are some running times and compressed file sizes numbers for comparison. The input data was a 25765100 byte file, comprised of roughly 17.5MB of text and 9.5MB of binary data (a copy of
command user time size command user time size
189.888s 10090504 (*) default setting.
To auto-install this package, go back and click on the respective install icon.