source: chapter06/gzip.xml@ b43488e

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.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 b43488e was b417b18, checked in by Matthew Burgess <matthew@…>, 15 years ago

Upgrade to Gzip-1.3.13. Fixes #2500.

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

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