XZ - 03 Mac OS
XZ - 03 Mac OS
XZ Utils is free general-purpose data compression software with a highcompression ratio. XZ Utils were written for POSIX-like systems,but also work on some not-so-POSIX systems.XZ Utils are the successor to LZMA Utils.
The core of the XZ Utils compression code is based onLZMA SDK, but it has been modifiedquite a lot to be suitable for XZ Utils. The primary compressionalgorithm is currently LZMA2, which is used inside the .xz container format.With typical files, XZ Utils create 30 % smaller output than gzip and15 % smaller output than bzip2.
The maximum version of Mac OS X, OS X, or macOS supported by each G3 and later Mac follows. For complete specs on a particular system, click the name of the Mac. For all Macs that are compatible with a specifc maximum supported version of Mac OS X - courtesy of EveryMac.com's Ultimate Mac Sort - click the OS of interest. A collection of those pesky SDK folders: MacOSX10.1.5.sdk thru MacOSX11.1.sdk - phracker/MacOSX-SDKs.
XZ Utils consist of several components:
- liblzma is a compression library with an API similar to that of zlib.
- xz is a command line tool with syntax similar to that of gzip.
- xzdec is a decompression-only tool smaller than the full-featured xz tool.
- A set of shell scripts (xzgrep, xzdiff, etc.) have been adapted from gzip to ease viewing, grepping, and comparing compressed files.
- Emulation of command line tools of LZMA Utils eases transition from LZMA Utils to XZ Utils.
While liblzma has a zlib-like API, liblzma doesn't include any file I/Ofunctions. A separate I/O library is planned, which would abstract handlingof .gz, .bz2, and .xz files with an easy to use API.
Source code
The files have been signed withthis OpenPGP key.
See theNEWSfile for a summary of changes between versions.
Stable
5.2.5 was released on 2020-03-17.
The packages of the stable XZ Utils releases are hosted on Sourceforgeand thus some of the links below redirect to theXZ Utilsfiles section on Sourceforge.This means that if you use a web browser (detected from the user agent),you will see the Sourceforge download page before the download starts.The redirection shouldn't affect users of GNU Wget and similar utilities.
xz-5.2.5.tar.gz (1750 KiB) signature
xz-5.2.5.tar.bz2 (1439 KiB) signature
xz-5.2.5.tar.zst (1156 KiB) signature
xz-5.2.5.tar.xz (1122 KiB) signature
Development
The new APIs, command line options etc. in development releasesshould be considered unstable.Incompatible changes to unstable features may be done beforethey get included in a stable release.
5.3.1alpha was released on 2018-04-29.It adds the lzma_file_info_decoder() API which is a steptowards adding a random access (seeking) API for .xz files.
xz-5.3.1alpha.tar.xz (1036 KiB) signature
Git repository
git clone https://git.tukaani.org/xz.git
Branches:
- master: the latest development code
- v5.2: fixes for the next 5.2.x release
- v5.0: fixes for the next 5.0.x release (unmaintained)
Building the code from the git repository requires GNU Autotools. Here arethe minimum versions that should work with XZ Utils; using thelatest versions is strongly recommended:
- Autoconf 2.69
- Automake 1.12
- gettext 0.19.6 (Note: autopoint depends on cvs!)
- Libtool 2.4
In addition, po4a is needed fortranslated documentation. If po4a is missing, autogen.sh will failat the end but the package can be built normally still; only thetranslated documentation will be missing.
Bindings
Python
Python 3.3 includesbindings for liblzma.A backport of these bindings are available for Python 2 in thebackports.lzmapackage.
lzmaffi isanother Python binding which adds random-access decompression support.
The original Python 2 binding for liblzma isPylibLZMA.
Perl
Perl bindings for liblzma:IO-Compress-LzmaandCompress-Raw-Lzma.
Haskell
Haskell bindings.
Delphi and Free Pascal
Bindings and example programs for Delphi and Free Pascal are availablehere.
Pre-built binaries
Many free software operating systems already provide easy-to-installXZ Utils binaries.It doesn't make sense to provide links to all those here.Instead, binaries or links to websites providing binaries are listed hereonly for operating systems that don't have well-known repositories whereusers would get software like this.
If you have a website that provides up-to-date XZ Utils binaries foran operating system that meets the the criteria above, let me knowand I will include a link here. Note that I won't host the binariesthemselves without a good reason.
Windows
The Windows version of XZ Utils includes binaries for 32-bit and 64-bit x86.The binaries only depend on msvcrt.dll, which is availableon Windows 98 and later out of the box.
- Command line tools: xz, xzdec, lzmadec, lzmainfo
- Shared (DLL) and static liblzma, required C header files, and liblzma.def to create import libraries for non-GNU toolchains (no import library is needed with GNU toolchain)
- Documentation is in plain text (UTF-8) format. The man pages of the command line tools are included also as PDF.
xz-5.2.5-windows.zip (1463 KiB) signature
xz-5.2.5-windows.7z (696 KiB) signature
DOS
The DOS version of XZ Utils includes only the xz command line tooland some documentation.The xz tool should work e.g. on FreeDOS (also in DOSEMU), MS-DOS,and Windows 95/98/98SE/ME.This doesn't necessarily work in DOSBox at all,and at least some problems are expected under Windows XP Command Prompt(signal handling doesn't work).
Since the DOS version is naturally going to get very little testing,it is recommended to use the Windows version instead of the DOS versionif you need xz under Windows 98 or later.It is likely that that the DOS version will be updated only occasionally.
5.2.0 and later have experimental support for 8.3 filenames.See xz-dos.txt in the binary package ordos/README.txt in the source package for details.
xz-5.2.5-dos.zip (255 KiB) signature
The package includes some copylefted code fromDJGPP andCWSDPMI.The relevant source code is available from their home pages,and copies are also available below.
djlsr205.zip (2000 KiB)
djtst205.zip (1061 KiB)
csdpmi7s.zip (88 KiB)
Juan Manuel Guerrero has made a more complete port of XZ Utils to DOS.It also has support for short file names (8.3), but the namingmethod is different from the one found in 5.2.0 and later.It is available fromDJGPP mirrorsunder /current/v2apps (e.g. xz-500b.zip for 5.0.0 binaries).
Old versions
Source and binary packages ofold XZ Utils releasesare available on a separate page.
Xz - 03 Mac Os Operating System
Supported platforms
Below is an incomplete and somewhat vague (version numbers mostly missing)list of operating systems on which XZ Utils should work.The compiler(s) or toolchains are mentioned in parenthesis.GCC refers to GCC 3 or later.If you have additions or corrections, please email them to me.
- GNU/Linux (GCC, LLVM/Clang, ICC, IBM XL C)
- GNU/HURD (GCC)
- DragonflyBSD (GCC)
- FreeBSD (GCC, LLVM/Clang)
- MirBSD (GCC)
- NetBSD (GCC)
- OpenBSD (GCC)
- MINIX 3 (GCC) [1]
- Haiku (GCC4)
- Mac OS X (GCC)
- Solaris 8, 9, 10, 11 (GCC, Sun Studio) [3]
- Solaris 2.6, 7 (GCC)
- HP-UX (GCC, HP ANSI C) [2]
- Tru64 (GCC, Compaq C compiler) [1]
- IRIX (MIPSpro) [1]
- AIX (GCC, IBM XL C)
- z/OS (IBM XL C)
- QNX (compilers?)
- OpenVMS (HP C compiler) [1]
- OpenVOS 17 (GCC)
- Windows 95 and later (GCC/MinGW, GCC/MinGW-w64, GCC/Cygwin, GCC/Interix, Visual Studio (VS can only build liblzma)) [1]
- OS/2, eComStation (GCC)
- DOS e.g. FreeDOS and MS-DOS (GCC/DJGPP) [1]
[1] See also the platform-specific notes in the INSTALL file.
[2] 2010-09-22: HP ANSI C compiler crashes when compiling XZ Utilson PA-RISC. On Itanium there are no problems.
Xz - 03 Mac Os Pro
[3] On Solaris 8 and 9 one may need to passac_cv_prog_cc_c99= to configure if using Sun Studio.
Licensing
The most interesting parts of XZ Utils (e.g. liblzma) are in thepublic domain. You can do whatever you want with the public domain parts.
Some parts of XZ Utils (e.g. build system and some utilities) are underdifferent free software licenses such as GNU LGPLv2.1, GNU GPLv2,or GNU GPLv3.
See the fileCOPYINGfor more details.
Hello,
I've upgraded a mac mini to macOS Sierra (10.12.4) and the Archive Utility cannot uncompress an xz tarball.
In Yosemite, the encoding for xz files in /usr/share/file/magic/compress was 'xz', whereas in Sierra is now 'XZ'.
It's my impression that Archive Utility expects the older encoding, that is the lower case 'xz' whereas the command 'file' prints an 'XZ' when it inspects such a tarball.
Has anyone faced the same problem?
Thanks,
Ev. Drikos
Mac mini, macOS Sierra (10.12.4)
Xz - 03 Mac Os Update
Posted on May 12, 2017 9:33 PM
XZ - 03 Mac OS