• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..10-Feb-2022-

build-aux/H10-Feb-2022-13,91310,966

debug/H10-Feb-2022-1,191849

doc/man/H03-May-2022-

dos/H10-Feb-2022-523300

extra/H10-Feb-2022-203105

lib/H10-Feb-2022-2,2961,508

m4/H10-Feb-2022-10,5989,612

po/H07-May-2022-1,105944

src/H10-Feb-2022-41,56625,610

tests/H07-May-2022-2,8231,960

windows/H10-Feb-2022-633365

ABOUT-NLSH A D10-Feb-202277.7 KiB1,1021,055

AUTHORSH A D10-Feb-20221 KiB2819

COPYINGH A D10-Feb-20222.7 KiB6647

COPYING.GPLv2H A D10-Feb-202217.6 KiB340281

COPYING.GPLv3H A D10-Feb-202234.3 KiB675553

COPYING.LGPLv2.1H A D10-Feb-202225.8 KiB505418

ChangeLogH A D10-Feb-2022283.6 KiB7,0425,549

Doxyfile.inH A D10-Feb-202249.3 KiB1,235877

INSTALLH A D10-Feb-202213.5 KiB340249

INSTALL.genericH A D10-Feb-202211.6 KiB303227

Makefile.amH A D10-Feb-20221.8 KiB8161

Makefile.inH A D10-Feb-202227.5 KiB888786

PACKAGERSH A D10-Feb-202210.4 KiB280207

READMEH A D10-Feb-20228.9 KiB218162

THANKSH A D10-Feb-20221,023 4842

TODOH A D10-Feb-20221.6 KiB5736

aclocal.m4H A D10-Feb-202236.3 KiB1,028926

autogen.shH A D10-Feb-2022650 237

config.h.inH A D10-Feb-202211.2 KiB405287

configureH A D10-Feb-2022653 KiB22,98418,679

configure.acH A D10-Feb-202218.6 KiB650552

version.shH A D10-Feb-2022781 258

README

1
2XZ Utils
3========
4
5    0. Overview
6    1. Documentation
7       1.1. Overall documentation
8       1.2. Documentation for command line tools
9       1.3. Documentation for liblzma
10    2. Version numbering
11    3. Reporting bugs
12    4. Other implementations of the .xz format
13    5. Contact information
14
15
160. Overview
17-----------
18
19    XZ Utils provide a general purporse data compression library and
20    command line tools. The native file format is the .xz format, but
21    also the legacy .lzma format is supported. The .xz format supports
22    multiple compression algorithms, which are called "filters" in
23    context of XZ Utils. The primary filter is currently LZMA2. With
24    typical files, XZ Utils create about 30 % smaller files than gzip.
25
26    To ease adapting support for the .xz format into existing applications
27    and scripts, the API of liblzma is somewhat similar to the API of the
28    popular zlib library. For the same reason, the command line tool xz
29    has similar command line syntax than that of gzip.
30
31    When aiming for the highest compression ratio, LZMA2 encoder uses
32    a lot of CPU time and may use, depending on the settings, even
33    hundreds of megabytes of RAM. However, in fast modes, LZMA2 encoder
34    competes with bzip2 in compression speed, RAM usage, and compression
35    ratio.
36
37    LZMA2 is reasonably fast to decompress. It is a little slower than
38    gzip, but a lot faster than bzip2. Being fast to decompress means
39    that the .xz format is especially nice when the same file will be
40    decompressed very many times (usually on different computers), which
41    is the case e.g. when distributing software packages. In such
42    situations, it's not too bad if the compression takes some time,
43    since that needs to be done only once to benefit many people.
44
45    With some file types, combining (or "chaining") LZMA2 with an
46    additional filter can improve compression ratio. A filter chain may
47    contain up to four filters, although usually only one two is used.
48    For example, putting a BCJ (Branch/Call/Jump) filter before LZMA2
49    in the filter chain can improve compression ratio of executable files.
50
51    Since the .xz format allows adding new filter IDs, it is possible that
52    some day there will be a filter that is, for example, much faster to
53    compress than LZMA2 (but probably with worse compression ratio).
54    Similarly, it is possible that some day there is a filter that will
55    compress better than LZMA2.
56
57    XZ Utils doesn't support multithreaded compression or decompression
58    yet. It has been planned though and taken into account when designing
59    the .xz file format.
60
61
621. Documentation
63----------------
64
651.1. Overall documentation
66
67    README              This file
68
69    INSTALL.generic     Generic install instructions for those not familiar
70                        with packages using GNU Autotools
71    INSTALL             Installation instructions specific to XZ Utils
72    PACKAGERS           Information to packagers of XZ Utils
73
74    COPYING             XZ Utils copyright and license information
75    COPYING.GPLv2       GNU General Public License version 2
76    COPYING.GPLv3       GNU General Public License version 3
77    COPYING.LGPLv2.1    GNU Lesser General Public License version 2.1
78
79    AUTHORS             The main authors of XZ Utils
80    THANKS              Incomplete list of people who have helped making
81                        this software
82    NEWS                User-visible changes between XZ Utils releases
83    ChangeLog           Detailed list of changes (commit log)
84
85    Note that only some of the above files are included in binary
86    packages.
87
88
891.2. Documentation for command line tools
90
91    The command line tools are documented as man pages. In source code
92    releases (and possibly also in some binary packages), the man pages
93    are also provided in plain text (ASCII only) and PDF formats in the
94    directory "doc/man" to make the man pages more accessible to those
95    whose operating system doesn't provide an easy way to view man pages.
96
97
981.3. Documentation for liblzma
99
100    The liblzma API headers include short docs about each function
101    and data type as Doxygen tags. These docs should be quite OK as
102    a quick reference.
103
104    I have planned to write a bunch of very well documented example
105    programs, which (due to comments) should work as a tutorial to
106    various features of liblzma. No such example programs have been
107    written yet.
108
109    For now, if you have never used liblzma, libbzip2, or zlib, I
110    recommend learning *basics* of zlib API. Once you know that, it
111    should be easier to learn liblzma.
112
113        http://zlib.net/manual.html
114        http://zlib.net/zlib_how.html
115
116
1172. Version numbering
118--------------------
119
120    The version number format of XZ Utils is X.Y.ZS:
121
122      - X is the major version. When this is incremented, the library
123        API and ABI break.
124
125      - Y is the minor version. It is incremented when new features are
126        added without breaking existing API or ABI. Even Y indicates
127        stable release and odd Y indicates unstable (alpha or beta
128        version).
129
130      - Z is the revision. This has different meaning for stable and
131        unstable releases:
132          * Stable: Z is incremented when bugs get fixed without adding
133            any new features.
134          * Unstable: Z is just a counter. API or ABI of features added
135            in earlier unstable releases having the same X.Y may break.
136
137      - S indicates stability of the release. It is missing from the
138        stable releases where Y is an even number. When Y is odd, S
139        is either "alpha" or "beta" to make it very clear that such
140        versions are not stable releases. The same X.Y.Z combination is
141        not used for more than one stability level i.e. after X.Y.Zalpha,
142        the next version can be X.Y.(Z+1)beta but not X.Y.Zbeta.
143
144
1453. Reporting bugs
146-----------------
147
148    Naturally it is easiest for me if you already know what causes the
149    unexpected behavior. Even better if you have a patch to propose.
150    However, quite often the reason for unexpected behavior is unknown,
151    so here are a few things to do before sending a bug report:
152
153      1. Try to create a small example how to reprocude the issue.
154
155      2. Compile XZ Utils with debugging code using configure switches
156         --enable-debug and, if possible, --disable-shared. If you are
157         using GCC, use CFLAGS='-O0 -ggdb3'. Don't strip the resulting
158         binaries.
159
160      3. Turn on core dumps. The exact command depends on your shell;
161         for example in GNU bash it is done with "ulimit -c unlimited",
162         and in tcsh with "limit coredumpsize unlimited".
163
164      4. Try to reproduce the suspected bug. If you get "assertion failed"
165         message, be sure to include the complete message in your bug
166         report. If the application leaves a coredump, get a backtrace
167         using gdb:
168           $ gdb /path/to/app-binary   # Load the app to the debugger.
169           (gdb) core core   # Open the coredump.
170           (gdb) bt   # Print the backtrace. Copy & paste to bug report.
171           (gdb) quit   # Quit gdb.
172
173    Report your bug via email or IRC (see Contact information below).
174    Don't send core dump files or any executables. If you have a small
175    example file(s) (total size less than 256 KiB), please include
176    it/them as an attachment. If you have bigger test files, put them
177    online somewhere and include an URL to the file(s) in the bug report.
178
179    Always include the exact version number of XZ Utils in the bug report.
180    If you are using a snapshot from the git repository, use "git describe"
181    to get the exact snapshot version. If you are using XZ Utils shipped
182    in an operating system distribution, mention the distribution name,
183    distribution version, and exact xz package version; if you cannot
184    repeat the bug with the code compiled from unpatched source code,
185    you probably need to report a bug to your distribution's bug tracking
186    system.
187
188
1894. Other implementations of the .xz format
190------------------------------------------
191
192    7-Zip and the p7zip port of 7-Zip support the .xz format starting
193    from the version 9.00alpha.
194
195        http://7-zip.org/
196        http://p7zip.sourceforge.net/
197
198    XZ Embedded is a limited implementation written for use in the Linux
199    kernel, but it is also suitable for other embedded use.
200
201        http://tukaani.org/xz/embedded.html
202
203
2045. Contact information
205----------------------
206
207    If you have questions, bug reports, patches etc. related to XZ Utils,
208    contact Lasse Collin <lasse.collin@tukaani.org> (in Finnish or English).
209    tukaani.org uses greylisting to reduce spam, thus when you send your
210    first email, it may get delayed by a few hours. In addition to that,
211    I'm sometimes slow at replying. If you haven't got a reply within two
212    weeks, assume that your email has got lost and resend it or use IRC.
213
214    You can find me also from #tukaani on Freenode; my nick is Larhzu.
215    The channel tends to be pretty quiet, so just ask your question and
216    someone may wake up.
217
218