A complete C99 implementation of the .xz file format
open source0BSDfree
XZ Utils is the reference implementation of the .xz compression format, in C99: liblzma, a compression library with an API like zlib's, the xz command line tool with gzip-like syntax, the smaller decompress-only xzdec, and scripts (xzgrep, xzdiff, xzless, xzmore) for working with compressed files. Its compression is based on the LZMA SDK and gives a high compression ratio. It runs on Linux, the BSDs, macOS, Windows and many other systems. Releases 5.6.0 and 5.6.1 (February and March 2024) contained a backdoor inserted by a malicious co-maintainer (CVE-2024-3094), and the project documents it on its site.
Problems it solves
- compress files smaller than gzip does
- decompress a .tar.xz archive
- add xz or LZMA compression to a C program
- grep inside compressed log files
Features
- liblzma compression library with a zlib-like API
- xz command line tool with gzip-like syntax
- high compression ratio .xz and legacy .lzma files
- multithreaded compression and decompression
- decompress-only xzdec
- xzgrep, xzdiff, xzless and xzmore scripts
Alternatives
The same job
These do what XZ Utils does.
