source: BOOK/final-system/common/gzip.xml@ 6c349a1

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 6c349a1 was 67fe7f4, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Make command verbose.

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