Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
zorked
on Dec 12, 2015
|
parent
|
context
|
favorite
| on:
Stop using gzip
Tar does not implement decompression. If you don't have xz installed it won't work.
masklinn
on Dec 12, 2015
|
next
[–]
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
on Dec 12, 2015
|
parent
|
next
[–]
tar can link the xz lib without forking.
masklinn
on Dec 12, 2015
|
root
|
parent
|
next
[–]
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
on Dec 12, 2015
|
root
|
parent
|
next
[–]
It would require liblzma, but you are correct that the library is a separate thing from the executable xz.
masklinn
on Dec 12, 2015
|
root
|
parent
|
next
[–]
> It would require liblzma
Yep, in the same way it requires libz and libbz2.
killercup
on Dec 12, 2015
|
prev
[–]
IIRC bsdtar (e.g. on OS X) includes xz.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: