PACKAGE.md 1.7 KB

XZ Utils

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.

Features

  • High Compression Ratio: XZ format provides very high compression ratio, typically better than gzip and bzip2
  • Fast Decompression: Features an extremely fast decoder with speed in multiple GB/s per core
  • LZMA2 Algorithm: Uses the improved LZMA2 compression algorithm
  • Multiple Formats: Supports both legacy LZMA and modern XZ formats
  • Wide Compatibility: Available on virtually all Unix-like systems

Included Programs

The package includes numerous command-line utilities:

  • xz - Compress or decompress files using the XZ format
  • unxz - Decompress files using the XZ format
  • xzcat - Decompress to standard output
  • lzma - Compress or decompress files using the legacy LZMA format
  • unlzma - Decompress files using the LZMA format
  • lzcat - Decompress to standard output
  • xzdiff - Run diff on XZ compressed files
  • xzgrep - Run grep on XZ compressed files
  • xzless - Run less on XZ compressed files
  • xzmore - Run more on XZ compressed files

Library

  • liblzma - The library implementing lossless, block-sorting data compression using the Lempel-Ziv-Markov chain algorithm

Usage Examples

Basic 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

Installation

This package follows the Linux From Scratch (LFS) installation guidelines and includes all necessary components for a complete XZ Utils installation on Astrologue OS.