:: Re: [DNG] How to unarchive an .xz
Etusivu
Poista viesti
Vastaa
Lähettäjä: Adam Borowski
Päiväys:  
Vastaanottaja: dng
Aihe: Re: [DNG] How to unarchive an .xz
On Sat, Oct 20, 2018 at 12:39:39PM -0400, Steve Litt wrote:
> I want to make a VM from devuan_ascii_2.0.0_amd64_qemu.qcow2.xz
>
> After 15 minutes googling and reading Devuan docs, I have nothing that
> works. How do I unarchive the file? Could you please put the method in
> the README file?


Uhm, you do know that xz-utils/liblzma has been Essential since March 2010?

But, if an experienced person like you lacks this part of knowledge, lemme
provide some info for the sake of readers of this list:

Among mainstream compression algorithms, only three have a reason to be
used (other than for compat purposes):
* xz: slow memory-hungry strong compression, for most compress-once
transmit-multiple purposes (such as release tarballs, etc)
* zstd: balanced speed-vs-ratio, for most local purposes
* lz4: memory-bandwidth-speed, for stuff that doesn't even hit the disk

There are three things to look at when comparing compression algorithms:
strength, speed, and memory use. The latter rarely matters, so it's mostly
about strength-to-speed envelope. Most algorithms take a "level" parameter:
xz is faster-(but better)-than-gzip at its lowest setting; zstd beats
the stuffing out of competition for a big range from lzop-like at the lowest
setting to mid-xz at the highest, etc.

Anything else has been obsoleted and should be deprecated:
* gzip is venerable and had seen so much use in the past that it won't ever
go away. But you shouldn't use it: it's speed is same as xz at level 2.5
but compression ratio is drastically worse.
* bzip2 is drastically slower (esp. at decompression) than xz and zstd; it
needs to die.
* lzop had a good run but zstd is much stronger at same speed while lz4 is
much faster.
* lzip is a worse alternative to xz, peddled by a couple of trolls that send
untruthful propaganda to projects, hoping people won't do research between
accepting its use. Just say no and use xz.
* ncompress is completely dead by now.
* zip is used by Windows folks only, similar to gzip.
* rar is unfree.
* 7z is similar but incompatible to xz; also a container rather than a pure
compressor.

The above info has been greatly simplified, but should give an idea.


Meow!
--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢰⠒⠀⣿⡁ 10 people enter a bar: 1 who understands binary,
⢿⡄⠘⠷⠚⠋⠀ 1 who doesn't, D who prefer to write it as hex,
⠈⠳⣄⠀⠀⠀⠀ and 1 who narrowly avoided an off-by-one error.