Lzd

lzip logo

Introduction

Lzd is a simplified decompressor for the lzip format with an educational purpose. Studying its source code is a good first step to understand how lzip works. Lzd is written in C++.

The source code of lzd is used in the lzip manual as a reference decompressor in the description of the lzip file format. Reading the lzip manual will help you understand the source code. Lzd is compliant with the lzip specification; it checks the 3 integrity factors.

The source code of lzd is also used as a reference in the description of the media type application/lzip.

Lzd decompresses from standard input to standard output. It accepts (and ignores) the option '-d' for compatibility with other lzip tools. In particular, accepting the option '-d' allows lzd to be used as argument to the option '--lz' of the tools from the zutils package.

Lzd correctly decompresses the concatenation of two or more compressed files. The result is the concatenation of the corresponding decompressed data. Integrity of such concatenated compressed input is also checked.

Documentation

Lzd only includes a README file. For information about the lzip file format see the online manual of lzip below.

The manual is available in the info system of the GNU Operating System. Use info to access the top level info page. Use info lzip to access the lzip section directly.

An online manual for lzip can be found here.

Download

The latest released version of lzd can be found at http://download.savannah.gnu.org/releases/lzip/lzd/. You may also subscribe to lzip-bug and receive an email every time a new version is released.

You may compile and optionally install lzd by running the following commands:

tar -xf lzd[version].tar.gz
cd lzd[version] && ./configure && make check

then (as root) type:

make install

Once lzd is installed, the files from archive "foo.tar.lz" can be extracted using the command "lzd < foo.tar.lz | tar -xf -".

How to get help

For general discussion of bugs in lzd the mailing list lzip-bug@nongnu.org is the most appropriate forum. Please send messages as plain text. Please do not send messages encoded as HTML nor encoded as base64 MIME nor included as multiple formats. Please include a descriptive subject line. If all of the subject are "bug in lzd" it is impossible to differentiate them.

An archive of the bug report mailing list is available at http://lists.gnu.org/mailman/listinfo/lzip-bug.

How to help

To contact the author, either to report a bug or to contribute fixes or improvements, send mail to lzip-bug@nongnu.org. Please send messages as plain text. If posting patches they should be in unified diff format against the latest version. They should include a text description.

See also the lzip project page at Savannah.

Licensing

Lzd is free software distributed under a 2-clause BSD license.

Valid HTML 4.01 Strict


Copyright © 2023 Antonio Diaz Diaz
Lzip logo Copyright © 2013 Sonia Diaz Pacheco

You are free to copy, modify, and distribute all or part of this article without limitation.

Updated: 2023-12-21

This page does not use javascript.