Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
zorked
· 10y ago · 0 comments
Tar does not implement decompression. If you don't have xz installed it won't work.
Comments
[–]
masklinn
10y ago
That doesn't seem correct, on osx 10.11 `tar xf` can extract `.tar.xz` yet doesn't fork an xz. AFAIK 10.11 doesn't even come with xz.
[–]
jessaustin
10y ago
tar can link the xz lib without forking.
[–]
masklinn
10y ago
So tar does "implement decompression" (and compression, by delegating the work to libarchive) and it can work even "if you don't have xz installed".
[–]
jessaustin
10y ago
It would require liblzma, but you are correct that the library is a separate thing from the executable xz.
[–]
killercup
10y ago
IIRC bsdtar (e.g. on OS X) includes xz.