source: chapter06/gzip.xml@ efca30a

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 8.3 8.3-rc1 8.3-rc2 8.4 8.4-rc1 9.0 9.0-rc1 9.1 9.1-rc1 cross-chap5 ml-11.0 multilib old-trunk trunk xry111/git-transition xry111/glibc-2.34 xry111/tester-nohack xry111/usr-move
Last change on this file since efca30a was efca30a, checked in by Bruce Dubbs <bdubbs@…>, 3 years ago

Update to glibc-2.28.
Update to gdbm-1.17.
Update to linux-4.17.11.
Update to man-db-2.8.4.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11443 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>First, make some fixes required by glibc-2.28:</para>
45
46<screen><userinput remap="pre">sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c
47echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h</userinput></screen>
48
49 <para>Prepare Gzip for compilation:</para>
50
51<screen><userinput remap="configure">./configure --prefix=/usr</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>Two tests are known to fail in the LFS environment:
62 help-version and zmore.</para>
63
64 <para>Install the package:</para>
65
66<screen><userinput remap="install">make install</userinput></screen>
67
68 <para>Move a program that needs to be on the root filesystem:</para>
69
70<screen><userinput remap="install">mv -v /usr/bin/gzip /bin</userinput></screen>
71
72 </sect2>
73
74 <sect2 id="contents-gzip" role="content">
75 <title>Contents of Gzip</title>
76
77 <segmentedlist>
78 <segtitle>Installed programs</segtitle>
79
80 <seglistitem>
81 <seg>gunzip, gzexe, gzip, uncompress (hard link with gunzip), zcat, zcmp,
82 zdiff, zegrep, zfgrep, zforce, zgrep, zless, zmore, and znew</seg>
83 </seglistitem>
84 </segmentedlist>
85
86 <variablelist>
87 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
88 <?dbfo list-presentation="list"?>
89 <?dbhtml list-presentation="table"?>
90
91 <varlistentry id="gunzip">
92 <term><command>gunzip</command></term>
93 <listitem>
94 <para>Decompresses gzipped files</para>
95 <indexterm zone="ch-system-gzip gunzip">
96 <primary sortas="b-gunzip">gunzip</primary>
97 </indexterm>
98 </listitem>
99 </varlistentry>
100
101 <varlistentry id="gzexe">
102 <term><command>gzexe</command></term>
103 <listitem>
104 <para>Creates self-decompressing executable files</para>
105 <indexterm zone="ch-system-gzip gzexe">
106 <primary sortas="b-gzexe">gzexe</primary>
107 </indexterm>
108 </listitem>
109 </varlistentry>
110
111 <varlistentry id="gzip">
112 <term><command>gzip</command></term>
113 <listitem>
114 <para>Compresses the given files using Lempel-Ziv (LZ77) coding</para>
115 <indexterm zone="ch-system-gzip gzip">
116 <primary sortas="b-gzip">gzip</primary>
117 </indexterm>
118 </listitem>
119 </varlistentry>
120
121 <varlistentry id="uncompress">
122 <term><command>uncompress</command></term>
123 <listitem>
124 <para>Decompresses compressed files</para>
125 <indexterm zone="ch-system-gzip uncompress">
126 <primary sortas="b-uncompress">uncompress</primary>
127 </indexterm>
128 </listitem>
129 </varlistentry>
130
131 <varlistentry id="zcat">
132 <term><command>zcat</command></term>
133 <listitem>
134 <para>Decompresses the given gzipped files to standard output</para>
135 <indexterm zone="ch-system-gzip zcat">
136 <primary sortas="b-zcat">zcat</primary>
137 </indexterm>
138 </listitem>
139 </varlistentry>
140
141 <varlistentry id="zcmp">
142 <term><command>zcmp</command></term>
143 <listitem>
144 <para>Runs <command>cmp</command> on gzipped files</para>
145 <indexterm zone="ch-system-gzip zcmp">
146 <primary sortas="b-zcmp">zcmp</primary>
147 </indexterm>
148 </listitem>
149 </varlistentry>
150
151 <varlistentry id="zdiff">
152 <term><command>zdiff</command></term>
153 <listitem>
154 <para>Runs <command>diff</command> on gzipped files</para>
155 <indexterm zone="ch-system-gzip zdiff">
156 <primary sortas="b-zdiff">zdiff</primary>
157 </indexterm>
158 </listitem>
159 </varlistentry>
160
161 <varlistentry id="zegrep">
162 <term><command>zegrep</command></term>
163 <listitem>
164 <para>Runs <command>egrep</command> on gzipped files</para>
165 <indexterm zone="ch-system-gzip zegrep">
166 <primary sortas="b-zegrep">zegrep</primary>
167 </indexterm>
168 </listitem>
169 </varlistentry>
170
171 <varlistentry id="zfgrep">
172 <term><command>zfgrep</command></term>
173 <listitem>
174 <para>Runs <command>fgrep</command> on gzipped files</para>
175 <indexterm zone="ch-system-gzip zfgrep">
176 <primary sortas="b-zfgrep">zfgrep</primary>
177 </indexterm>
178 </listitem>
179 </varlistentry>
180
181 <varlistentry id="zforce">
182 <term><command>zforce</command></term>
183 <listitem>
184 <para>Forces a <filename class="extension">.gz</filename> extension on
185 all given files that are gzipped files, so that <command>gzip</command>
186 will not compress them again; this can be useful when file names were
187 truncated during a file transfer</para>
188 <indexterm zone="ch-system-gzip zforce">
189 <primary sortas="b-zforce">zforce</primary>
190 </indexterm>
191 </listitem>
192 </varlistentry>
193
194 <varlistentry id="zgrep">
195 <term><command>zgrep</command></term>
196 <listitem>
197 <para>Runs <command>grep</command> on gzipped files</para>
198 <indexterm zone="ch-system-gzip zgrep">
199 <primary sortas="b-zgrep">zgrep</primary>
200 </indexterm>
201 </listitem>
202 </varlistentry>
203
204 <varlistentry id="zless">
205 <term><command>zless</command></term>
206 <listitem>
207 <para>Runs <command>less</command> on gzipped files</para>
208 <indexterm zone="ch-system-gzip zless">
209 <primary sortas="b-zless">zless</primary>
210 </indexterm>
211 </listitem>
212 </varlistentry>
213
214 <varlistentry id="zmore">
215 <term><command>zmore</command></term>
216 <listitem>
217 <para>Runs <command>more</command> on gzipped files</para>
218 <indexterm zone="ch-system-gzip zmore">
219 <primary sortas="b-zmore">zmore</primary>
220 </indexterm>
221 </listitem>
222 </varlistentry>
223
224 <varlistentry id="znew">
225 <term><command>znew</command></term>
226 <listitem>
227 <para>Re-compresses files from <command>compress</command> format to
228 <command>gzip</command> format&mdash;<filename
229 class="extension">.Z</filename> to <filename
230 class="extension">.gz</filename></para>
231 <indexterm zone="ch-system-gzip znew">
232 <primary sortas="b-znew">znew</primary>
233 </indexterm>
234 </listitem>
235 </varlistentry>
236
237 </variablelist>
238
239 </sect2>
240
241</sect1>
Note: See TracBrowser for help on using the repository browser.