source: BOOK/final-system/common/gzip.xml@ 1dd716e

clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 1dd716e was eaafb59, checked in by Joe Ciccone <jciccone@…>, 14 years ago

Updated Gzip to 1.4.

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