World Library  
Flag as Inappropriate
Email this Article

XZ Utils

Article Id: WHEBN0022850816
Reproduction Date:

Title: XZ Utils  
Author: World Heritage Encyclopedia
Language: English
Subject: XZ, Lzip, HDX4, ARJ, Blu-code
Collection: Free Data Compression Software, Free Software Programmed in C, Unix Archivers and Compression-Related Utilities
Publisher: World Heritage Encyclopedia

XZ Utils

XZ Utils
Original author(s) Lasse Collin
Developer(s) The Tukaani Project
Stable release 5.0.7 / September 20, 2014 (2014-09-20)
Preview release 5.1.4beta / September 14, 2014 (2014-09-14) [1]
Written in C
Operating system Cross-platform
Type Data compression
License Bulk system under GNU LGPL v2.1 and public domain; Build system under GNU GPL v2, GNU GPL v3, and public domain; source code in public domain
Website //xz.orgtukaani

XZ Utils (previously LZMA Utils) is a set of free command-line lossless data compressors, including LZMA and xz, for Unix-like operating systems and, from version 5.0 onwards, Microsoft Windows.

XZ Utils consists of two major components:

Various command shortcuts exist, such as lzma (for xz --format=lzma), unxz (for xz --decompress; analogous to gunzip) and xzcat (for unxz --stdout; analogous to zcat)

XZ Utils can compress and decompress both the xz and lzma file formats, but since the LZMA format is now legacy,[2] XZ Utils compresses by default to xz.


  • Implementation 1
  • Development and adoption 2
  • See also 3
  • References 4
  • External links 5


Both the behavior of the software as well as the properties of the file format have been designed to work similarly to those of the popular Unix compressing tools gzip and bzip2. It consists of a Unix port of Igor Pavlov's LZMA-SDK that has been adapted to fit seamlessly into Unix environments and their usual structure and behavior.

Just like gzip and bzip, xz and lzma can only compress single files (or data streams) as input. They cannot bundle multiple files into a single archive – to do this an archiving program is used first, such as tar.

Compressing an archive:

xz   my_archive.tar    # results in my_archive.tar.xz
lzma my_archive.tar    # results in my_archive.tar.lzma

Decompressing the archive:

unxz    my_archive.tar.xz      # results in my_archive.tar
unlzma  my_archive.tar.lzma    # results in my_archive.tar

Version 1.22 or greater of the GNU implementation of tar has transparent support for tarballs compressed with lzma and xz, using the switches --xz or -J for xz compression, and --lzma for LZMA compression.

Creating an archive and compressing it:

tar -c --xz   -f my_archive.tar.xz   /some_directory    # results in my_archive.tar.xz
tar -c --lzma -f my_archive.tar.lzma /some_directory    # results in my_archive.tar.lzma

Decompressing the archive and extracting its contents:

tar -x --xz   -f my_archive.tar.xz      # results in /some_directory
tar -x --lzma -f my_archive.tar.lzma    # results in /some_directory

Development and adoption

Development of XZ Utils took place within the Tukaani Project, which was led by Mike Kezner, by a small group of developers who once maintained a Linux distribution based on Slackware. Most of the source code for XZ Utils has been released into the public domain, with the rest being subject to different free software licenses.

A number of Linux distributions, including Fedora, Slackware, Ubuntu, Debian, and Arch Linux,[3] use xz for compressing their software packages. The GNU FTP archive also uses xz.

Binaries are available for FreeBSD, GNU/Linux, Microsoft Windows, and FreeDOS.

See also


  1. ^
  2. ^ LZMA Utils, retrieved 2011-01-25 
  3. ^ Pierre Schmitz (2010-03-23). "News: Switching to xz compression for new packages". 

External links

  • Official Website
  • SourceForge project page
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.