source: chapter06/gzip.xml@ 90bfa70

Last change on this file since 90bfa70 was 6a0e6f3, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Remove the spurious <info> tags that I thought were necessary but evidently aren't

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

  • Property mode set to 100644
File size: 5.9 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE section [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<section xmlns="http://docbook.org/docbook-ng"
7 xml:id="ch-system-gzip" xreflabel="Gzip" role="wrap">
8<title>Gzip-&gzip-version;</title>
9<?dbhtml filename="gzip.html"?>
10
11<indexterm zone="ch-system-gzip"><primary sortas="a-Gzip">Gzip</primary></indexterm>
12
13<section role="package"><title/>
14<para>The Gzip package contains programs for compressing and decompressing
15files.</para>
16
17<segmentedlist>
18<segtitle>&buildtime;</segtitle>
19<segtitle>&diskspace;</segtitle>
20<seglistitem><seg>0.1 SBU</seg><seg>2.6 MB</seg></seglistitem>
21</segmentedlist>
22
23<segmentedlist>
24<segtitle>Gzip installation depends on</segtitle>
25<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
26GCC, Glibc, Grep, Make, Sed</seg></seglistitem>
27</segmentedlist>
28</section>
29
30<section role="installation">
31<title>Installation of Gzip</title>
32
33<para>Prepare Gzip for compilation:</para>
34
35<screen><userinput>./configure --prefix=/usr</userinput></screen>
36
37<para>The <command>gzexe</command> script has the location of the
38<command>gzip</command> binary hard-wired into it. Because we later change
39the location of the binary, the following command ensures that the new
40location gets placed into the script:</para>
41
42<screen><userinput>sed -i 's@"BINDIR"@/bin@g' gzexe.in</userinput></screen>
43
44<para>Compile the package:</para>
45
46<screen><userinput>make</userinput></screen>
47
48<para>Install the package:</para>
49
50<screen><userinput>make install</userinput></screen>
51
52<para>Move the programs to the <filename class="directory">/bin</filename> directory:</para>
53
54<screen><userinput>mv /usr/bin/gzip /bin
55rm /usr/bin/{gunzip,zcat}
56ln -s gzip /bin/gunzip
57ln -s gzip /bin/zcat
58ln -s gunzip /bin/uncompress</userinput></screen>
59
60</section>
61
62
63<section xml:id="contents-gzip" role="content"><title>Contents of Gzip</title>
64
65<segmentedlist>
66<segtitle>Installed programs</segtitle>
67<seglistitem><seg>gunzip (link to gzip), gzexe,
68gzip, uncompress (link to gunzip), zcat (link to gzip), zcmp, zdiff,
69zegrep, zfgrep, zforce, zgrep, zless, zmore and znew</seg></seglistitem>
70</segmentedlist>
71
72<variablelist><title>Short descriptions</title>
73
74<varlistentry xml:id="gunzip">
75<term><command>gunzip</command></term>
76<listitem>
77<indexterm zone="ch-system-gzip gunzip"><primary sortas="b-gunzip">gunzip</primary></indexterm>
78<para>decompresses gzipped files.</para>
79</listitem>
80</varlistentry>
81
82<varlistentry xml:id="gzexe">
83<term><command>gzexe</command></term>
84<listitem>
85<indexterm zone="ch-system-gzip gzexe"><primary sortas="b-gzexe">gzexe</primary></indexterm>
86<para>is used to create self-uncompressing executable files.</para>
87</listitem>
88</varlistentry>
89
90<varlistentry xml:id="gzip">
91<term><command>gzip</command></term>
92<listitem>
93<indexterm zone="ch-system-gzip gzip"><primary sortas="b-gzip">gzip</primary></indexterm>
94<para>compresses the given files, using Lempel-Ziv (LZ77) coding.</para>
95</listitem>
96</varlistentry>
97
98<varlistentry xml:id="zcat">
99<term><command>zcat</command></term>
100<listitem>
101<indexterm zone="ch-system-gzip zcat"><primary sortas="b-zcat">zcat</primary></indexterm>
102<para>uncompresses the given gzipped files to standard output.</para>
103</listitem>
104</varlistentry>
105
106<varlistentry xml:id="zcmp">
107<term><command>zcmp</command></term>
108<listitem>
109<indexterm zone="ch-system-gzip zcmp"><primary sortas="b-zcmp">zcmp</primary></indexterm>
110<para>runs <command>cmp</command> on gzipped files.</para>
111</listitem>
112</varlistentry>
113
114<varlistentry xml:id="zdiff">
115<term><command>zdiff</command></term>
116<listitem>
117<indexterm zone="ch-system-gzip zdiff"><primary sortas="b-zdiff">zdiff</primary></indexterm>
118<para>runs <command>diff</command> on gzipped files.</para>
119</listitem>
120</varlistentry>
121
122<varlistentry xml:id="zegrep">
123<term><command>zegrep</command></term>
124<listitem>
125<indexterm zone="ch-system-gzip zegrep"><primary sortas="b-zegrep">zegrep</primary></indexterm>
126<para>runs <command>egrep</command> on gzipped files.</para>
127</listitem>
128</varlistentry>
129
130<varlistentry xml:id="zfgrep">
131<term><command>zfgrep</command></term>
132<listitem>
133<indexterm zone="ch-system-gzip zfgrep"><primary sortas="b-zfgrep">zfgrep</primary></indexterm>
134<para>runs <command>fgrep</command> on gzipped files.</para>
135</listitem>
136</varlistentry>
137
138<varlistentry xml:id="zforce">
139<term><command>zforce</command></term>
140<listitem>
141<indexterm zone="ch-system-gzip zforce"><primary sortas="b-zforce">zforce</primary></indexterm>
142<para>forces a <filename class="extension">.gz</filename> extension on all given files
143that are gzipped files, so that <command>gzip</command> will not compress them again. This can be
144useful when file names were truncated during a file transfer.</para>
145</listitem>
146</varlistentry>
147
148<varlistentry xml:id="zgrep">
149<term><command>zgrep</command></term>
150<listitem>
151<indexterm zone="ch-system-gzip zgrep"><primary sortas="b-zgrep">zgrep</primary></indexterm>
152<para>runs <command>grep</command> on gzipped files.</para>
153</listitem>
154</varlistentry>
155
156<varlistentry xml:id="zless">
157<term><command>zless</command></term>
158<listitem>
159<indexterm zone="ch-system-gzip zless"><primary sortas="b-zless">zless</primary></indexterm>
160<para>runs <command>less</command> on gzipped files.</para>
161</listitem>
162</varlistentry>
163
164<varlistentry xml:id="zmore">
165<term><command>zmore</command></term>
166<listitem>
167<indexterm zone="ch-system-gzip zmore"><primary sortas="b-zmore">zmore</primary></indexterm>
168<para>runs <command>more</command> on gzipped files.</para>
169</listitem>
170</varlistentry>
171
172<varlistentry xml:id="znew">
173<term><command>znew</command></term>
174<listitem>
175<indexterm zone="ch-system-gzip znew"><primary sortas="b-znew">znew</primary></indexterm>
176<para>re-compresses files from <command>compress</command> format to <command>gzip</command> format
177-- <filename class="extension">.Z</filename> to <filename class="extension">.gz</filename>.</para>
178</listitem>
179</varlistentry>
180</variablelist>
181
182</section>
183
184</section>
Note: See TracBrowser for help on using the repository browser.