|Internet media type|
|Uniform Type Identifier (UTI)||org.tukaani.xz-archive|
|Magic number||0xFD, '7', 'z', 'X', 'Z', 0x00|
|Developed by||The Tukaani Project|
(27 August 2009 )
|Developer(s)||The Tukaani Project|
5.2.4 / 29 April 2018
|License||Public domain with some portions under LGPL|
These are the same compression formats used by the 7-Zip program and its command-line version p7zip. However,
.xz has a different file format, which is not compatible with the
.7z format used by 7-Zip; notably, xz compresses a bytestream and in itself has no knowledge of files or much of their metadata (for that, a multi-file container like .tar/.cpio will have to be used), while the multi-file aware
.7z lacks support for Unix-like file system metadata.
This section needs expansion. You can help by adding to it. (August 2016)
Although the original 7-Zip program, which implements LZMA2 compression, is able to produce small files at the cost of speed, it also created its own unique archive format which was made primarily for Windows and did not support Unix functionality.
An implementation of the xz file format is freely available online as XZ Utils. It is licensed under the terms of the GNU LGPL and GNU GPL, with the bulk of the software (e.g., liblzma) in the public domain. Starting from 5.2.0 in December 2014, the command-line program
xz supports multi-threaded operations which were only available in a fork called
pxz previously. Version 1.22 of GNU tar supports using this software to handle xz files transparently. FreeBSD tar has supported xz transparently since r191190 (released on April 17, 2009).
The xz file format has been criticized as not being suitable for long term archiving by the author of lzip, Antonio Diaz Diaz. Among the many arguments proposed, lack of formal documentation and no CRC checks on length were cited as major problems with the format.
xz has gained notability for compressing packages in the GNU coreutils project, Debian family of systems deb (file format), openSUSE, Fedora, Arch Linux, Slackware, FreeBSD, Gentoo, GNOME, and TeX Live, as well as being an option to compress a compiled Linux kernel. In March 2013, kernel.org announced the use of xz as the default compressed file format for distributing kernel archive files.
- XZ Utils Release Notes (Git), Tukaaani
- Lindholm, Linux Gazette.
- XZ Utils Web site
- GNU tar Web site: References
- Changelog for Tar 1.22
- "release history", 7-Zip.
- Diaz Diaz, Antonio. "Xz format inadequate for long-term archiving". Retrieved 18 January 2019.
- "files", Coreutils (FTP), GNU (see version 7.1 and newer files ending in .tar.xz).
- "openSUSE has moved off of LZMA to xz", News, openSUSE.
- "XZ RPM payloads", Features (wiki) (12 ed.), Fedora.
- "Switching to xz compression for new packages", News, Archlinux.
- Entry (FTP) (changelog) (13.0 ed.), Slackware, May 8, 2009.
- Stable (mailing list post), Free BSD, Jan 2011.
- "Remove .lzma in favor of .xz portage snapshots", Dev (mailing list post) (RFC), Gentoo.
- "Important: Switch of GNOME tarball compression format", Devel (mailing list post), Gnome, Apr 2011.
- tex-archive/systems/texlive/tlnet/archive (directory), CTAN.
- xz embedded (Git), Tukaani.
- "XZ by default and JSON". The Linux Kernel Archives. Linux Kernel Organization, Inc. 2013-03-11.