source: chapter06/gzip.xml@ 615a565

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 615a565 was 0445a3d, checked in by Manuel Canales Esparcia <manuel@…>, 17 years ago

Added remap attributes to userinput tags in packages pages.

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

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