xz

Compress or decompress .xz and .lzma files. More information: <https://tukaani.org/xz/format.html>.

Install

All systems
curl cmd.cat/xz.sh
Debian Debian
apt-get install xz-utils
Ubuntu
apt-get install xz-utils
Alpine
apk add xz
Arch Arch Linux
pacman -S xz
image/svg+xml Kali Linux
apt-get install xz-utils
CentOS
yum install xz
Fedora
dnf install xz
Windows (WSL2)
sudo apt-get update sudo apt-get install xz-utils
OS X
brew install xz
Raspbian
apt-get install xz-utils
Docker
docker run cmd.cat/xz xz powered by Commando

Compress or decompress .xz and .lzma files. More information: <https://tukaani.org/xz/format.html>.

  • Compress a file to the xz file format:
    xz file
  • Decompress a xz file:
    xz -d file.xz
  • Compress a file to the LZMA file format:
    xz --format=lzma file
  • Decompress an LZMA file:
    xz -d --format=lzma file.lzma
  • Decompress a file and write to stdout:
    xz -dc file.xz
  • Compress a file, but don't delete the original:
    xz -k file
  • Compress a file using the fastest compression:
    xz -0 file
  • Compress a file using the best compression:
    xz -9 file

© tl;dr; authors and contributors