LinuxCommandLibrary

unlzma

Decompress LZMA compressed files

TLDR

Decompress file

$ unlzma [file.lzma]
copy
Keep original
$ unlzma -k [file.lzma]
copy
To stdout
$ unlzma -c [file.lzma]
copy
Force overwrite
$ unlzma -f [file.lzma]
copy
Verbose
$ unlzma -v [file.lzma]
copy

SYNOPSIS

unlzma [-k] [-c] [-f] [options] files

DESCRIPTION

unlzma decompresses files that were compressed with the LZMA (Lempel-Ziv-Markov chain Algorithm) compression format. It is functionally equivalent to running xz --format=lzma --decompress and is provided as a convenience command within the xz-utils package.
By default, unlzma replaces the compressed .lzma file with the decompressed output, removing the original. The -k flag preserves the original compressed file, and -c writes the decompressed data to standard output for piping to other commands.
The LZMA format is a legacy compression format that has been largely superseded by the XZ format, which uses the improved LZMA2 algorithm with better multi-threading support. unlzma remains useful for decompressing older archives and for compatibility with systems that still use the .lzma format.

PARAMETERS

-k

Keep original.
-c
Write to stdout.
-f
Force overwrite.
-v
Verbose mode.
-q
Quiet mode.

CAVEATS

Legacy format. Use xz for new files. Part of xz-utils.

HISTORY

unlzma is part of xz-utils, providing decompression for the legacy LZMA format.

SEE ALSO

xz(1), lzma(1), unxz(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community