source: vendor/gzip/1.3.11/README@ 3454

Last change on this file since 3454 was 3325, checked in by bird, 18 years ago

gzip 1.3.11

File size: 7.0 KB
Line 
1This is the file README for the gzip distribution.
2
3gzip (GNU zip) is a compression utility designed to be a replacement
4for 'compress'. Its main advantages over compress are much better
5compression and freedom from patented algorithms. The GNU Project
6uses it as the standard compression program for its system.
7
8gzip currently uses by default the LZ77 algorithm used in zip 1.9 (the
9portable pkzip compatible archiver). The gzip format was however
10designed to accommodate several compression algorithms. See below
11for a comparison of zip and gzip.
12
13gunzip can currently decompress files created by gzip, compress or
14pack. The detection of the input format is automatic. For the
15gzip format, gunzip checks a 32 bit CRC. For pack, gunzip checks the
16uncompressed length. The 'compress' format was not designed to allow
17consistency checks. However gunzip is sometimes able to detect a bad
18.Z file because there is some redundancy in the .Z compression format.
19If you get an error when uncompressing a .Z file, do not assume that
20the .Z file is correct simply because the standard uncompress does not
21complain. This generally means that the standard uncompress does not
22check its input, and happily generates garbage output.
23
24gzip produces files with a .gz extension. Previous versions of gzip
25used the .z extension, which was already used by the 'pack'
26Huffman encoder. gunzip is able to decompress .z files (packed
27or gzip'ed).
28
29Several planned features are not yet supported (see the file TODO).
30See the file NEWS for a summary of changes since 0.5. See the file
31INSTALL for installation instructions. Some answers to frequently
32asked questions are given in the file INSTALL, please read it. (In
33particular, please don't ask me once more for an /etc/magic entry.)
34
35WARNING: on several systems, compiler bugs cause gzip to fail, in
36particular when optimization options are on. See the section "Special
37targets" at the end of the INSTALL file for a list of known problems.
38For all machines, use "make check" to check that gzip was compiled
39correctly. Try compiling gzip without any optimization if you have a
40problem.
41
42Please send all comments and bug reports by electronic mail to
43<bug-gzip@gnu.org>.
44
45Bug reports should ideally include:
46
47 * The complete output of "gzip -V" (or the contents of revision.h
48 if you can't get gzip to compile)
49 * The hardware and operating system (try "uname -a")
50 * The compiler used to compile (if it is gcc, use "gcc -v")
51 * A description of the bug behavior
52 * The input to gzip, that triggered the bug
53
54If you send me patches for machines I don't have access to, please test them
55very carefully. gzip is used for backups, it must be extremely reliable.
56
57GNU tar 1.11.2 has a -z option to invoke directly gzip, so you don't have to
58patch it. The package ftp.uu.net:/languages/emacs-lisp/misc/jka-compr19.el.Z
59also supports gzip'ed files.
60
61The znew and gzexe shell scripts provided with gzip benefit from
62(but do not require) the cpmod utility to transfer file attributes.
63It is available in
64ftp://gatekeeper.dec.com/pub/usenet/comp.sources.unix/volume11/cpmod.Z.
65
66The sample programs zread.c, sub.c and add.c in subdirectory sample
67are provided as examples of useful complements to gzip. Read the
68comments inside each source file. The perl script ztouch is also
69provided as example (not installed by default since it relies on perl).
70
71
72gzip is free software, you can redistribute it and/or modify it under
73the terms of the GNU General Public License, a copy of which is
74provided under the name COPYING. The latest version of gzip are always
75available from ftp://ftp.gnu.org/gnu/gzip or in any of the gnu
76mirror sites.
77
78- sources in gzip-*.tar (or .shar or .tar.gz).
79- MSDOS lha self-extracting exe in gzip-msdos-*.exe. Once extracted,
80 copy gzip.exe to gunzip.exe and zcat.exe, or use "gzip -d" to decompress.
81 gzip386.exe runs much faster but only on 386 and above; it was compiled with
82 djgpp 1.10 available in directory omnigate.clarkson.edu:/pub/msdos/djgpp.
83
84A VMS executable is in ftp://ftp.spc.edu/[.macro32.savesets]gzip-1-*.zip
85(use [.macro32]unzip.exe to extract). A PRIMOS executable is available
86in ftp://ftp.lysator.liu.se/pub/primos/run/gzip.run.
87
88Some ftp servers can automatically make a tar.Z from a tar file. If
89you are getting gzip for the first time, you can ask for a tar.Z file
90instead of the much larger tar file.
91
92Many thanks to those who provided me with bug reports and feedback.
93See the files THANKS and ChangeLog for more details.
94
95
96 Note about zip vs. gzip:
97
98The name 'gzip' was a very unfortunate choice, because zip and gzip
99are two really different programs, although the actual compression and
100decompression sources were written by the same persons. A different
101name should have been used for gzip, but it is too late to change now.
102
103zip is an archiver: it compresses several files into a single archive
104file. gzip is a simple compressor: each file is compressed separately.
105Both share the same compression and decompression code for the
106'deflate' method. unzip can also decompress old zip archives
107(implode, shrink and reduce methods). gunzip can also decompress files
108created by compress and pack. zip 1.9 and gzip do not support
109compression methods other than deflation. (zip 1.0 supports shrink and
110implode). Better compression methods may be added in future versions
111of gzip. zip will always stick to absolute compatibility with pkzip,
112it is thus constrained by PKWare, which is a commercial company. The
113gzip header format is deliberately different from that of pkzip to
114avoid such a constraint.
115
116On Unix, gzip is mostly useful in combination with tar. GNU tar
1171.11.2 and later has a -z option to invoke gzip automatically. "tar -z"
118compresses better than zip, since gzip can then take advantage of
119redundancy between distinct files. The drawback is that you must
120scan the whole tar.gz file in order to extract a single file near
121the end; unzip can directly seek to the end of the zip file. There
122is no overhead when you extract the whole archive anyway.
123If a member of a .zip archive is damaged, other files can still
124be recovered. If a .tar.gz file is damaged, files beyond the failure
125point cannot be recovered. (Future versions of gzip will have
126error recovery features.)
127
128gzip and gunzip are distributed as a single program. zip and unzip
129are, for historical reasons, two separate programs, although the
130authors of these two programs work closely together in the info-zip
131team. zip and unzip are not associated with the GNU project.
132See http://www.cdrom.com/pub/infozip/ for more about zip and unzip.
133
134
135========================================================================
136
137Copyright (C) 1999, 2001, 2002, 2006 Free Software Foundation, Inc.
138Copyright (C) 1992, 1993 Jean-loup Gailly
139
140Permission is granted to copy, distribute and/or modify this document
141under the terms of the GNU Free Documentation License, Version 1.2 or
142any later version published by the Free Software Foundation; with no
143Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
144Texts. A copy of the license is included in the ``GNU Free
145Documentation License'' file as part of this distribution.
Note: See TracBrowser for help on using the repository browser.