source: chapter06/gzip.xml@ b8913f42

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since b8913f42 was b8913f42, checked in by Matthew Burgess <matthew@…>, 17 years ago

Upgrade to Gzip-1.3.10. Fixes #1924.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7898 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 7.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-gzip" role="wrap">
9 <?dbhtml filename="gzip.html"?>
10
11 <title>Gzip-&gzip-version;</title>
12
13 <indexterm zone="ch-system-gzip">
14 <primary sortas="a-Gzip">Gzip</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Gzip package contains programs for compressing and decompressing
21 files.</para>
22
23 <segmentedlist>
24 <segtitle>&buildtime;</segtitle>
25 <segtitle>&diskspace;</segtitle>
26
27 <seglistitem>
28 <seg>&gzip-ch6-sbu;</seg>
29 <seg>&gzip-ch6-du;</seg>
30 </seglistitem>
31 </segmentedlist>
32
33 </sect2>
34
35 <sect2 role="installation">
36 <title>Installation of Gzip</title>
37
38 <para>Prepare Gzip for compilation:</para>
39
40<screen><userinput>./configure --prefix=/usr</userinput></screen>
41
42 <para>Compile the package:</para>
43
44<screen><userinput>make</userinput></screen>
45
46 <para>To test the results, issue:
47 <userinput>make check</userinput>.</para>
48
49 <para>Install the package:</para>
50
51<screen><userinput>make install</userinput></screen>
52
53 <para>Move the <command>gzip</command> program to the <filename
54 class="directory">/bin</filename> directory and create some commonly used
55 symlinks to it:</para>
56
57<screen><userinput>mv -v /usr/bin/gzip /bin
58rm -v /usr/bin/{gunzip,zcat}
59ln -sv gzip /bin/gunzip
60ln -sv gzip /bin/zcat
61ln -sv gzip /bin/compress
62ln -sv gunzip /bin/uncompress</userinput></screen>
63
64 </sect2>
65
66 <sect2 id="contents-gzip" role="content">
67 <title>Contents of Gzip</title>
68
69 <segmentedlist>
70 <segtitle>Installed programs</segtitle>
71
72 <seglistitem>
73 <seg>compress (link to gzip), gunzip (link to gzip), gzexe, gzip,
74 uncompress (link to gunzip), zcat (link to gzip), zcmp, zdiff,
75 zegrep, zfgrep, zforce, zgrep, zless, zmore, and znew</seg>
76 </seglistitem>
77 </segmentedlist>
78
79 <variablelist>
80 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
81 <?dbfo list-presentation="list"?>
82 <?dbhtml list-presentation="table"?>
83
84 <varlistentry id="compress">
85 <term><command>compress</command></term>
86 <listitem>
87 <para>Compresses and decompresses files</para>
88 <indexterm zone="ch-system-gzip compress">
89 <primary sortas="b-compress">compress</primary>
90 </indexterm>
91 </listitem>
92 </varlistentry>
93
94 <varlistentry id="gunzip">
95 <term><command>gunzip</command></term>
96 <listitem>
97 <para>Decompresses gzipped files</para>
98 <indexterm zone="ch-system-gzip gunzip">
99 <primary sortas="b-gunzip">gunzip</primary>
100 </indexterm>
101 </listitem>
102 </varlistentry>
103
104 <varlistentry id="gzexe">
105 <term><command>gzexe</command></term>
106 <listitem>
107 <para>Creates self-decompressing executable files</para>
108 <indexterm zone="ch-system-gzip gzexe">
109 <primary sortas="b-gzexe">gzexe</primary>
110 </indexterm>
111 </listitem>
112 </varlistentry>
113
114 <varlistentry id="gzip">
115 <term><command>gzip</command></term>
116 <listitem>
117 <para>Compresses the given files using Lempel-Ziv (LZ77) coding</para>
118 <indexterm zone="ch-system-gzip gzip">
119 <primary sortas="b-gzip">gzip</primary>
120 </indexterm>
121 </listitem>
122 </varlistentry>
123
124 <varlistentry id="uncompress">
125 <term><command>uncompress</command></term>
126 <listitem>
127 <para>Decompresses compressed files</para>
128 <indexterm zone="ch-system-gzip uncompress">
129 <primary sortas="b-uncompress">uncompress</primary>
130 </indexterm>
131 </listitem>
132 </varlistentry>
133
134 <varlistentry id="zcat">
135 <term><command>zcat</command></term>
136 <listitem>
137 <para>Decompresses the given gzipped files to standard output</para>
138 <indexterm zone="ch-system-gzip zcat">
139 <primary sortas="b-zcat">zcat</primary>
140 </indexterm>
141 </listitem>
142 </varlistentry>
143
144 <varlistentry id="zcmp">
145 <term><command>zcmp</command></term>
146 <listitem>
147 <para>Runs <command>cmp</command> on gzipped files</para>
148 <indexterm zone="ch-system-gzip zcmp">
149 <primary sortas="b-zcmp">zcmp</primary>
150 </indexterm>
151 </listitem>
152 </varlistentry>
153
154 <varlistentry id="zdiff">
155 <term><command>zdiff</command></term>
156 <listitem>
157 <para>Runs <command>diff</command> on gzipped files</para>
158 <indexterm zone="ch-system-gzip zdiff">
159 <primary sortas="b-zdiff">zdiff</primary>
160 </indexterm>
161 </listitem>
162 </varlistentry>
163
164 <varlistentry id="zegrep">
165 <term><command>zegrep</command></term>
166 <listitem>
167 <para>Runs <command>egrep</command> on gzipped files</para>
168 <indexterm zone="ch-system-gzip zegrep">
169 <primary sortas="b-zegrep">zegrep</primary>
170 </indexterm>
171 </listitem>
172 </varlistentry>
173
174 <varlistentry id="zfgrep">
175 <term><command>zfgrep</command></term>
176 <listitem>
177 <para>Runs <command>fgrep</command> on gzipped files</para>
178 <indexterm zone="ch-system-gzip zfgrep">
179 <primary sortas="b-zfgrep">zfgrep</primary>
180 </indexterm>
181 </listitem>
182 </varlistentry>
183
184 <varlistentry id="zforce">
185 <term><command>zforce</command></term>
186 <listitem>
187 <para>Forces a <filename class="extension">.gz</filename> extension on
188 all given files that are gzipped files, so that <command>gzip</command>
189 will not compress them again; this can be useful when file names were
190 truncated during a file transfer</para>
191 <indexterm zone="ch-system-gzip zforce">
192 <primary sortas="b-zforce">zforce</primary>
193 </indexterm>
194 </listitem>
195 </varlistentry>
196
197 <varlistentry id="zgrep">
198 <term><command>zgrep</command></term>
199 <listitem>
200 <para>Runs <command>grep</command> on gzipped files</para>
201 <indexterm zone="ch-system-gzip zgrep">
202 <primary sortas="b-zgrep">zgrep</primary>
203 </indexterm>
204 </listitem>
205 </varlistentry>
206
207 <varlistentry id="zless">
208 <term><command>zless</command></term>
209 <listitem>
210 <para>Runs <command>less</command> on gzipped files</para>
211 <indexterm zone="ch-system-gzip zless">
212 <primary sortas="b-zless">zless</primary>
213 </indexterm>
214 </listitem>
215 </varlistentry>
216
217 <varlistentry id="zmore">
218 <term><command>zmore</command></term>
219 <listitem>
220 <para>Runs <command>more</command> on gzipped files</para>
221 <indexterm zone="ch-system-gzip zmore">
222 <primary sortas="b-zmore">zmore</primary>
223 </indexterm>
224 </listitem>
225 </varlistentry>
226
227 <varlistentry id="znew">
228 <term><command>znew</command></term>
229 <listitem>
230 <para>Re-compresses files from <command>compress</command> format to
231 <command>gzip</command> format&mdash;<filename
232 class="extension">.Z</filename> to <filename
233 class="extension">.gz</filename></para>
234 <indexterm zone="ch-system-gzip znew">
235 <primary sortas="b-znew">znew</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 </variablelist>
241
242 </sect2>
243
244</sect1>
Note: See TracBrowser for help on using the repository browser.