2 ms·
You are conflating compression algorithms with archive file formats. Use `tar` format and you can combine it with whatever compression utilities available such
by dikei 4y ago
You are conflating compression algorithms with archive file formats.
Use `tar` format and you can combine it with whatever compression utilities available such as `gzip`, `bzip2`, `lz4`, `zstd`, `xz`, etc. `tar` also preserves Unix permission. The downside is tar doesn't have an index for random-access, so you cannot do partial extraction quickly.
Use `zip` format if you don't care about Unix permission, and want to do partial extraction. `Zip` technically support multiple compression algorithms, but is primarily only used with DEFLATE (the same one as `gzip`) for compatibility reason.