Low Orbit Flux Logo 2 F

Linux How To Extract xz File

To extract an xz file on Linux just run the following command:


unxz example.xz

With newer versions of tar you should also be able to extract it with the tar command like this:


tar -xf example.tar.xz

If you don’t have the xz command you can install it with the following commands depending on your distro.


sudo apt install xz-utils    # Debian / Ubuntu
sudo dnf install xz          # RHEL/Fedora/CentOS 
sudo yum install xz          # RHEL/Fedora/CentOS older
sudo pacman -S xz            # Arch / Manjaro