source: chapter06/gzip.xml@ 742cc9ae

Last change on this file since 742cc9ae was 2cddf7e4, checked in by Jeremy Huntwork <jhuntwork@…>, 17 years ago

Fix broken loops

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

  • Property mode set to 100644
File size: 7.4 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 <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>The version of the function <quote>futimens</quote> used
39 by Gzip is incompatible with the version that current
40 Glibc provides, so we'll rename the function:</para>
41
42<screen><userinput>for file in gzip.c lib/utimens.{c,h} ; do \
43 cp -v $file{,.orig}
44 sed 's/futimens/gl_&amp;/' $file.orig &gt; $file
45done</userinput></screen>
46
47 <para>Prepare Gzip for compilation:</para>
48
49<screen><userinput>./configure --prefix=/usr --bindir=/bin</userinput></screen>
50
51 <para>Compile the package:</para>
52
53<screen><userinput>make</userinput></screen>
54
55 <para>To test the results, issue:
56 <userinput>make check</userinput>.</para>
57
58 <para>Install the package:</para>
59
60<screen><userinput>make install</userinput></screen>
61
62 <para>Move some programs that do not need to be on the root filesystem:</para>
63
64<screen><userinput>mv -v /bin/{gzexe,uncompress,zcmp,zdiff,zegrep} /usr/bin
65mv -v /bin/{zfgrep,zforce,zgrep,zless,zmore,znew} /usr/bin</userinput></screen>
66
67 </sect2>
68
69 <sect2 id="contents-gzip" role="content">
70 <title>Contents of Gzip</title>
71
72 <segmentedlist>
73 <segtitle>Installed programs</segtitle>
74
75 <seglistitem>
76 <seg>gunzip, gzexe, gzip, uncompress, zcat, zcmp, zdiff, zegrep, zfgrep,
77 zforce, zgrep, zless, zmore, and znew</seg>
78 </seglistitem>
79 </segmentedlist>
80
81 <variablelist>
82 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
83 <?dbfo list-presentation="list"?>
84 <?dbhtml list-presentation="table"?>
85
86 <varlistentry id="gunzip">
87 <term><command>gunzip</command></term>
88 <listitem>
89 <para>Decompresses gzipped files</para>
90 <indexterm zone="ch-system-gzip gunzip">
91 <primary sortas="b-gunzip">gunzip</primary>
92 </indexterm>
93 </listitem>
94 </varlistentry>
95
96 <varlistentry id="gzexe">
97 <term><command>gzexe</command></term>
98 <listitem>
99 <para>Creates self-decompressing executable files</para>
100 <indexterm zone="ch-system-gzip gzexe">
101 <primary sortas="b-gzexe">gzexe</primary>
102 </indexterm>
103 </listitem>
104 </varlistentry>
105
106 <varlistentry id="gzip">
107 <term><command>gzip</command></term>
108 <listitem>
109 <para>Compresses the given files using Lempel-Ziv (LZ77) coding</para>
110 <indexterm zone="ch-system-gzip gzip">
111 <primary sortas="b-gzip">gzip</primary>
112 </indexterm>
113 </listitem>
114 </varlistentry>
115
116 <varlistentry id="uncompress">
117 <term><command>uncompress</command></term>
118 <listitem>
119 <para>Decompresses compressed files</para>
120 <indexterm zone="ch-system-gzip uncompress">
121 <primary sortas="b-uncompress">uncompress</primary>
122 </indexterm>
123 </listitem>
124 </varlistentry>
125
126 <varlistentry id="zcat">
127 <term><command>zcat</command></term>
128 <listitem>
129 <para>Decompresses the given gzipped files to standard output</para>
130 <indexterm zone="ch-system-gzip zcat">
131 <primary sortas="b-zcat">zcat</primary>
132 </indexterm>
133 </listitem>
134 </varlistentry>
135
136 <varlistentry id="zcmp">
137 <term><command>zcmp</command></term>
138 <listitem>
139 <para>Runs <command>cmp</command> on gzipped files</para>
140 <indexterm zone="ch-system-gzip zcmp">
141 <primary sortas="b-zcmp">zcmp</primary>
142 </indexterm>
143 </listitem>
144 </varlistentry>
145
146 <varlistentry id="zdiff">
147 <term><command>zdiff</command></term>
148 <listitem>
149 <para>Runs <command>diff</command> on gzipped files</para>
150 <indexterm zone="ch-system-gzip zdiff">
151 <primary sortas="b-zdiff">zdiff</primary>
152 </indexterm>
153 </listitem>
154 </varlistentry>
155
156 <varlistentry id="zegrep">
157 <term><command>zegrep</command></term>
158 <listitem>
159 <para>Runs <command>egrep</command> on gzipped files</para>
160 <indexterm zone="ch-system-gzip zegrep">
161 <primary sortas="b-zegrep">zegrep</primary>
162 </indexterm>
163 </listitem>
164 </varlistentry>
165
166 <varlistentry id="zfgrep">
167 <term><command>zfgrep</command></term>
168 <listitem>
169 <para>Runs <command>fgrep</command> on gzipped files</para>
170 <indexterm zone="ch-system-gzip zfgrep">
171 <primary sortas="b-zfgrep">zfgrep</primary>
172 </indexterm>
173 </listitem>
174 </varlistentry>
175
176 <varlistentry id="zforce">
177 <term><command>zforce</command></term>
178 <listitem>
179 <para>Forces a <filename class="extension">.gz</filename> extension on
180 all given files that are gzipped files, so that <command>gzip</command>
181 will not compress them again; this can be useful when file names were
182 truncated during a file transfer</para>
183 <indexterm zone="ch-system-gzip zforce">
184 <primary sortas="b-zforce">zforce</primary>
185 </indexterm>
186 </listitem>
187 </varlistentry>
188
189 <varlistentry id="zgrep">
190 <term><command>zgrep</command></term>
191 <listitem>
192 <para>Runs <command>grep</command> on gzipped files</para>
193 <indexterm zone="ch-system-gzip zgrep">
194 <primary sortas="b-zgrep">zgrep</primary>
195 </indexterm>
196 </listitem>
197 </varlistentry>
198
199 <varlistentry id="zless">
200 <term><command>zless</command></term>
201 <listitem>
202 <para>Runs <command>less</command> on gzipped files</para>
203 <indexterm zone="ch-system-gzip zless">
204 <primary sortas="b-zless">zless</primary>
205 </indexterm>
206 </listitem>
207 </varlistentry>
208
209 <varlistentry id="zmore">
210 <term><command>zmore</command></term>
211 <listitem>
212 <para>Runs <command>more</command> on gzipped files</para>
213 <indexterm zone="ch-system-gzip zmore">
214 <primary sortas="b-zmore">zmore</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
219 <varlistentry id="znew">
220 <term><command>znew</command></term>
221 <listitem>
222 <para>Re-compresses files from <command>compress</command> format to
223 <command>gzip</command> format&mdash;<filename
224 class="extension">.Z</filename> to <filename
225 class="extension">.gz</filename></para>
226 <indexterm zone="ch-system-gzip znew">
227 <primary sortas="b-znew">znew</primary>
228 </indexterm>
229 </listitem>
230 </varlistentry>
231
232 </variablelist>
233
234 </sect2>
235
236</sect1>
Note: See TracBrowser for help on using the repository browser.