xzdec, lzmadec - Small .xz and .lzma decompressors
is a liblzma-based decompression-only tool for .xz
) files. xzdec
is intended to work as a drop-in replacement
(1) in the most common situations where a script has been written
to use xz --decompress --stdout
(and possibly a few other commonly used
options) to decompress .xz
is identical to
except that lzmadec
files instead of
To reduce the size of the executable, xzdec
multithreading or localization, and doesn't read options from
environment variables. xzdec
doesn't support displaying intermediate progress information: sending
does nothing, but sending SIGUSR1
terminates the process instead of displaying progress information.
- -d, --decompress, --uncompress
- Ignored for xz(1) compatibility. xzdec supports only
- -k, --keep
- Ignored for xz(1) compatibility. xzdec never creates or
removes any files.
- -c, --stdout, --to-stdout
- Ignored for xz(1) compatibility. xzdec always writes the
decompressed data to standard output.
- -q, --quiet
- Specifying this once does nothing since xzdec never displays any
warnings or notices. Specify this twice to suppress errors.
- -Q, --no-warn
- Ignored for xz(1) compatibility. xzdec never uses the exit
- -h, --help
- Display a help message and exit successfully.
- -V, --version
- Display the version number of xzdec and liblzma.
- All was good.
- An error occurred.
doesn't have any warning messages like xz
(1) has, thus the
exit status 2 is not used by xzdec
(1) instead of xzdec
for normal everyday
are meant only for situations where it is
important to have a smaller decompressor than the full-featured xz
are not really that small. The size can be
reduced further by dropping features from liblzma at compile time, but that
shouldn't usually be done for executables distributed in typical non-embedded
operating system distributions. If you need a truly small .xz
decompressor, consider using XZ Embedded.
XZ Embedded: <https://tukaani.org/xz/embedded.html>