What is TAR.XZ?
TAR.XZ is a TAR archive compressed with xz: files are bundled into one TAR file, then compressed with the LZMA2 algorithm. It usually produces the smallest archives of the TAR family, which is why Linux distributions and many open-source projects use it for their releases.
The xz format was released in 2009 by Lasse Collin as part of XZ Utils, building on the LZMA algorithm popularized by 7-Zip. Compressing to xz is slower than gzip, but decompression stays reasonably fast, a good trade-off for files that are compressed once and downloaded many times.
Like other compressed TAR formats, TAR.XZ compresses the whole bundle as one stream and keeps Unix permissions and links intact. It opens natively on modern Linux and macOS systems.
All TAR.XZ conversions