source: clfs-sysroot/BOOK/final-system/common/gzip.xml@ 9db6797

Last change on this file since 9db6797 was fef8487, checked in by Joe Ciccone <jciccone@…>, 15 years ago

Even More Text Updates.

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