XZDEC(1)
π XZDEC β ok bestie, let's talk tiny decompressors π
so this is the manual for xzdec and lzmadec β the little sibling tools from XZ Utils that do exactly one job and do it cute. no cap. π¦
β¨ NAME β¨
xzdec, lzmadec β small .xz and .lzma decompressors π
πΈ SYNOPSIS πΈ
xzdec [option...] [file...]
lzmadec [option...] [file...]
π DESCRIPTION π
okay so. xzdec is a liblzma-based decompression-only tool for .xz files β and only .xz files, don't try it. it's literally designed to be a drop-in replacement for xz(1) in the most common situations where a script was written to use xz --decompress --stdout (and maybe a few other commonly used options) to decompress .xz files. that's the whole assignment. π«Ά
and lzmadec? identical to xzdec in every way except that it supports .lzma files instead of .xz files. twins fr fr. π
now the tea β β to reduce the size of the executable, xzdec does not support:
- multithreading
- localization
- reading options from the
XZ_DEFAULTSandXZ_OPTenvironment variables
and it doesn't support displaying intermediate progress information either. so sending SIGINFO to xzdec does nothing, but sending SIGUSR1 terminates the process instead of displaying progress information. so don't do that unless you want it gone π
π OPTIONS π
-d,--decompress,--uncompressβ ignored, but it's there forxz(1)compatibility.xzdeconly does decompression anyway, so it's giving "sure bestie, whatever you say" πΈ-k,--keepβ also ignored forxz(1)compatibility.xzdecnever creates or removes any files. periodt. π-c,--stdout,--to-stdoutβ ignored forxz(1)compatibility.xzdecalways writes the decompressed data to standard output. that's just the vibe. β¨-q,--quietβ specifying this once does literally nothing, sincexzdecnever displays any warnings or notices. specify it twice to suppress errors. it's giving "double tap to mute" π-Q,--no-warnβ ignored forxz(1)compatibility.xzdecnever uses the exit status 2, so there's nothing to warn about π-h,--helpβ display a help message and exit successfully. slay π-V,--versionβ display the version number ofxzdecandliblzma. iykyk β
π₯ EXIT STATUS π₯
0β all was good. we ate. π1β an error occurred. π
xzdec doesn't have any warning messages like xz(1) has, thus the exit status 2 is not used by xzdec. so if you see a 2, bestie, that's not us π«Ά
π§ NOTES π§
use xz(1) instead of xzdec or lzmadec for normal everyday use. xzdec or lzmadec are meant only for situations where it is important to have a smaller decompressor than the full-featured xz(1). niche queen energy π
now don't get it twisted β xzdec and lzmadec 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. and if you need a truly small .xz decompressor, consider using XZ Embedded. different tool, different vibe. π
π SEE ALSO π
xz(1)- XZ Embedded:
https://tukaani.org/xz/embedded.html
and that's the whole page, bestie!! brought to you by Tukaani π version vibes from XZ Utils, dated 2024-04-08. go decompress something tiny, you got this πβ¨π¦
π¦ where this page comes from
- alpine 3.22: xz-doc 5.8.4-r0 Β· GPL-2.0-or-later AND 0BSD AND Public-Domain AND LGPL-2.1-or-later
- alpine 3.23: xz-doc 5.8.4-r0 Β· GPL-2.0-or-later AND 0BSD AND Public-Domain AND LGPL-2.1-or-later
- alpine 3.24: xz-doc 5.8.4-r0 Β· GPL-2.0-or-later AND 0BSD AND Public-Domain AND LGPL-2.1-or-later
- arch rolling: xz 5.8.4-1 Β· GPL-2.0-or-later AND 0BSD AND LicenseRef-Public-Domain AND LGPL-2.1-or-later
- debian trixie: xzdec 5.8.1-1+deb13u1 Β· 0BSD
- debian trixie: xzdec 5.8.1-1+deb13u2 Β· 0BSD
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: xz 5.8.4
- opensuse-leap 16.0: xz 5.8.1-160000.3.1 Β· 0BSD AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: xz 5.8.1-160000.3.1 Β· 0BSD AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: xz 5.8.1-160000.3.1 Β· 0BSD AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: xz 5.8.1-160000.3.1 Β· 0BSD AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu questing: xzdec 5.8.1-1build2
- ubuntu questing: xzdec 5.8.1-1ubuntu0.1
- ubuntu resolute: xzdec 5.8.3-1 Β· 0BSD
- ubuntu resolute: xzdec 5.8.3-1ubuntu0.1 Β· 0BSD
- ubuntu stonking: xzdec 5.8.3-1 Β· 0BSD
- ubuntu stonking: xzdec 5.8.3-1ubuntu1 Β· 0BSD
- π the page's license: 0BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms