XZ Utils is free general-purpose data compression software with high compression ratio. XZ Utils were written for POSIX systems but have been ported to a few non-POSIX systems as well.
The package includes numerous command-line utilities:
xz - Compress or decompress files using the XZ formatunxz - Decompress files using the XZ formatxzcat - Decompress to standard outputlzma - Compress or decompress files using the legacy LZMA formatunlzma - Decompress files using the LZMA formatlzcat - Decompress to standard outputxzdiff - Run diff on XZ compressed filesxzgrep - Run grep on XZ compressed filesxzless - Run less on XZ compressed filesxzmore - Run more on XZ compressed filesliblzma - The library implementing lossless, block-sorting data compression using the Lempel-Ziv-Markov chain algorithmBasic compression:
xz file.txt
Decompression:
unxz file.txt.xz
Decompress to stdout:
xzcat file.txt.xz
Compression with custom level:
xz -9 file.txt # Maximum compression
This package follows the Linux From Scratch (LFS) installation guidelines and includes all necessary components for a complete XZ Utils installation on Astrologue OS.