How can I unzip a .xz file? Archive utility failed. Is there an app that I should get to do it? (Mac Pro, OS X Yosemite 10.10.5)
In Mavericks (10.9.5), you can use
gunzip in a terminal to extract
.xz files - so it is sure to also work on Yosemite.
Note: The library
liblzma is required to extract
Prior to Mavericks,
.xz can not be extracted by the native gunzip on OS X because this library is not present. For example, OS X Mountain Lion does not have
/usr/lib/liblzma.5.dylib, see this post and the table from this post.
This post states:
Also of interest, from this post:
Found some info about OS X and libarchive versions. According to this: https://opensource.apple.com/
OS X 10.6.x shipped with libarchive 2.6.2. And OS X 10.7.x shipped with libarchive 2.8.3.
(2.8.3 is still used in Mojave, albeit with various, minor-looking, darwin-specific patches accumulated over the years if I understand correctly. For example, see libarchive.plist from macOS Mojave 10.14.5 for details.)
For more information, read this thread: XZ compression support #8