1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00
This is an archive of xz repository, as it stood @ 2024-04-04T10:36:00Z. See https://tukaani.org/xz-backdoor/ as for what happened. Repository is frozen and will not be updated. https://tukaani.org/xz-backdoor/
Find a file
Lasse Collin 71f18e8a06 Make --enable-dynamic a tristate option.
Some programs will by default be linked against static
liblzma and some against shared liblzma. --enable-dynamic
now allows overriding the default to both directions
(all dynamic or all static) even when building both
shared and static liblzma.

This is quite messy compared to how simple thing it is supposed
to be. The complexity is mostly due to Windows support.
2009-08-13 15:00:21 +03:00
debug Fix @variables@ to $(variables) in Makefile.am files. 2009-06-26 14:47:31 +03:00
doc A few more spelling fixes. Released the .xz spec 1.0.3. 2009-06-05 13:46:26 +03:00
dos Rename process.[hc] to coder.[hc] and io.[hc] to file_io.[hc] 2009-06-26 20:49:54 +03:00
extra remove trailing blanks from all but .xz files 2009-01-26 20:01:51 +02:00
lib Put the interesting parts of XZ Utils into the public domain. 2009-04-13 11:27:40 +03:00
m4 Major update to the xzgrep and other scripts based on 2009-07-05 22:25:17 +03:00
po Updated .gitignore files. 2009-07-24 12:00:40 +03:00
src Fix xz Makefile.am for the man page. 2009-08-13 12:56:47 +03:00
tests Use static liblzma by default also for tests. 2009-06-30 17:14:39 +03:00
windows Moved the Windows resource files outside the windows directory 2009-06-27 17:28:01 +03:00
.gitignore Updated .gitignore files. 2009-07-24 12:00:40 +03:00
AUTHORS Major documentation update. 2009-07-19 13:14:20 +03:00
autogen.sh Added a comment about "autoconf -fi" to autogen.sh. 2009-06-29 22:19:51 +03:00
ChangeLog Major documentation update. 2009-07-19 13:14:20 +03:00
configure.ac Make --enable-dynamic a tristate option. 2009-08-13 15:00:21 +03:00
COPYING Minor improvements to COPYING. 2009-07-24 11:34:02 +03:00
COPYING.GPLv2 Imported to git. 2007-12-09 00:42:33 +02:00
COPYING.GPLv3 Imported to git. 2007-12-09 00:42:33 +02:00
COPYING.LGPLv2.1 Imported to git. 2007-12-09 00:42:33 +02:00
Doxyfile.in GPLv2+ not GPLv2 for Doxyfile.in is probably OK. 2009-08-09 20:57:46 +03:00
INSTALL Major documentation update. 2009-07-19 13:14:20 +03:00
INSTALL.generic Major documentation update. 2009-07-19 13:14:20 +03:00
Makefile.am Add xz man page to manfiles in toplevel Makefile.am. 2009-08-13 09:37:21 +03:00
NEWS Imported to git. 2007-12-09 00:42:33 +02:00
PACKAGERS Major documentation update. 2009-07-19 13:14:20 +03:00
README Major documentation update. 2009-07-19 13:14:20 +03:00
THANKS Updated THANKS. 2009-08-02 00:11:37 +03:00
TODO Updated TODO. 2009-08-02 00:10:22 +03:00
version.sh Portability improvement to version.sh. 2009-07-08 23:05:29 +03:00

XZ Utils
========

    0. Overview
    1. Documentation
       1.1. Overall documentation
       1.2. Documentation for command line tools
       1.3. Documentation for liblzma
    2. Version numbering
    3. Other implementations of the .xz format
    4. Contact information


0. Overview
-----------

    XZ Utils provide a general purporse data compression library and
    command line tools. The native file format is the .xz format, but
    also the legacy .lzma format is supported. The .xz format supports
    multiple compression algorithms, which are called "filters" in
    context of XZ Utils. The primary filter is currently LZMA2. With
    typical files, XZ Utils create about 30 % smaller files than gzip.

    To ease adapting support for the .xz format into existing applications
    and scripts, the API of liblzma is somewhat similar to the API of the
    popular zlib library. For the same reason, the command line tool xz
    has similar command line syntax than that of gzip.

    When aiming for the highest compression ratio, LZMA2 encoder uses
    a lot of CPU time and may use, depending on the settings, even
    hundreds of megabytes of RAM. However, in fast modes, LZMA2 encoder
    competes with bzip2 in compression speed, RAM usage, and compression
    ratio.

    LZMA2 is reasonably fast to decompress. It is a little slower than
    gzip, but a lot faster than bzip2. Being fast to decompress means
    that the .xz format is especially nice when the same file will be
    decompressed very many times (usually on different computers), which
    is the case e.g. when distributing software packages. In such
    situations, it's not too bad if the compression takes some time,
    since that needs to be done only once to benefit many people.

    With some file types, combining (or "chaining") LZMA2 with an
    additional filter can improve compression ratio. A filter chain may
    contain up to four filters, although usually only one two is used.
    For example, putting a BCJ (Branch/Call/Jump) filter before LZMA2
    in the filter chain can improve compression ratio of executable files.

    Since the .xz format allows adding new filter IDs, it is possible that
    some day there will be a filter that is, for example, much faster to
    compress than LZMA2 (but probably with worse compression ratio).
    Similarly, it is possible that some day there is a filter that will
    compress better than LZMA2.

    XZ Utils doesn't support multithreaded compression or decompression
    yet. It has been planned though and taken into account when designing
    the .xz file format.


1. Documentation
----------------

1.1. Overall documentation

    README              This file

    INSTALL.generic     Generic install instructions for those not familiar
                        with packages using GNU Autotools
    INSTALL             Installation instructions specific to XZ Utils
    PACKAGERS           Information to packagers of XZ Utils

    COPYING             XZ Utils copyright and license information
    COPYING.GPLv2       GNU General Public License version 2
    COPYING.GPLv3       GNU General Public License version 3
    COPYING.LGPLv2.1    GNU Lesser General Public License version 2.1

    AUTHORS             The main authors of XZ Utils
    THANKS              Incomplete list of people who have helped making
                        this software
    NEWS                User-visible changes between XZ Utils releases
    ChangeLog           Detailed list of changes (commit log)

    Note that only some of the above files are included in binary
    packages.


1.2. Documentation for command line tools

    The command line tools are documented as man pages. In source code
    releases (and possibly also in some binary packages), the man pages
    are also provided in plain text (ASCII only) and PDF formats in the
    directory "doc/man" to make the man pages more accessible to those
    whose operating system doesn't provide an easy way to view man pages.


1.3. Documentation for liblzma

    The liblzma API headers include short docs about each function
    and data type as Doxygen tags. These docs should be quite OK as
    a quick reference.

    I have planned to write a bunch of very well documented example
    programs, which (due to comments) should work as a tutorial to
    various features of liblzma. No such example programs have been
    written yet.

    For now, if you have never used liblzma, libbzip2, or zlib, I
    recommend learning *basics* of zlib API. Once you know that, it
    should be easier to learn liblzma.

        http://zlib.net/manual.html
        http://zlib.net/zlib_how.html


2. Version numbering
--------------------

    The version number format of XZ Utils is X.Y.ZS:

      - X is the major version. When this is incremented, the library
        API and ABI break.

      - Y is the minor version. It is incremented when new features are
        added without breaking existing API or ABI. Even Y indicates
        stable release and odd Y indicates unstable (alpha or beta
        version).

      - Z is the revision. This has different meaning for stable and
        unstable releases:
          * Stable: Z is incremented when bugs get fixed without adding
            any new features.
          * Unstable: Z is just a counter. API or ABI of features added
            in earlier unstable releases having the same X.Y may break.

      - S indicates stability of the release. It is missing from the
        stable releases where Y is an even number. When Y is odd, S
        is either "alpha" or "beta" to make it very clear that such
        versions are not stable releases. The same X.Y.Z combination is
        not used for more than one stability level i.e. after X.Y.Zalpha,
        the next version can be X.Y.(Z+1)beta but not X.Y.Zbeta.


3. Other implementations of the .xz format
------------------------------------------

    7-Zip and the p7zip port of 7-Zip support the .xz format starting
    from the version 9.00alpha.

        http://7-zip.org/
        http://p7zip.sourceforge.net/

    XZ Embedded is a limited implementation written for use in the Linux
    kernel, but it is also suitable for other embedded use.

        http://tukaani.org/xz-embedded/


4. Contact information
----------------------

    If you have questions, bug reports, patches etc. related to XZ Utils,
    contact Lasse Collin <lasse.collin@tukaani.org>. tukaani.org uses
    greylisting to reduce spam, thus when you send your first email, it
    may get delayed by a few hours. In addition to that, I'm sometimes
    slow at replying. If you haven't got a reply within two weeks, assume
    that your email has got lost and resend it or use IRC.

    You can find me also from #tukaani on Freenode; my nick is Larhzu.
    The channel tends to be pretty quiet, so just ask your question and
    someone may wake up.