source: chapter06/gzip.xml@ 307348a

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.1 6.1.1 6.3 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 307348a was 45992ae, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Removed the package name from the dependencies titles.

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

  • Property mode set to 100644
File size: 6.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<sect1 id="ch-system-gzip" role="wrap">
7<title>Gzip-&gzip-version;</title>
8<?dbhtml filename="gzip.html"?>
9
10<indexterm zone="ch-system-gzip"><primary sortas="a-Gzip">Gzip</primary></indexterm>
11
12<sect2 role="package"><title/>
13<para>The Gzip package contains programs for compressing and decompressing
14files.</para>
15
16<segmentedlist>
17<segtitle>&buildtime;</segtitle>
18<segtitle>&diskspace;</segtitle>
19<seglistitem><seg>0.1 SBU</seg><seg>2.6 MB</seg></seglistitem>
20</segmentedlist>
21
22<segmentedlist>
23<segtitle>&dependencies;</segtitle>
24<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
25GCC, Glibc, Grep, Make, and Sed</seg></seglistitem>
26</segmentedlist>
27</sect2>
28
29<sect2 role="installation">
30<title>Installation of Gzip</title>
31
32<para>Prepare Gzip for compilation:</para>
33
34<screen><userinput>./configure --prefix=/usr</userinput></screen>
35
36<para>The <command>gzexe</command> script has the location of the
37<command>gzip</command> binary hard-wired into it. Because the
38location of the binary is changed later, the following command ensures
39that the new location gets placed into the script:</para>
40
41<screen><userinput>sed -i 's@"BINDIR"@/bin@g' gzexe.in</userinput></screen>
42
43<para>Compile the package:</para>
44
45<screen><userinput>make</userinput></screen>
46
47<para>Install the package:</para>
48
49<screen><userinput>make install</userinput></screen>
50
51<para>Move the programs to the <filename class="directory">/bin</filename> directory:</para>
52
53<screen><userinput>mv /usr/bin/gzip /bin
54rm /usr/bin/{gunzip,zcat}
55ln -s gzip /bin/gunzip
56ln -s gzip /bin/zcat
57ln -s gunzip /bin/uncompress</userinput></screen>
58
59</sect2>
60
61
62<sect2 id="contents-gzip" role="content"><title>Contents of Gzip</title>
63
64<segmentedlist>
65<segtitle>Installed programs</segtitle>
66<seglistitem><seg>gunzip (link to gzip), gzexe,
67gzip, uncompress (link to gunzip), zcat (link to gzip), zcmp, zdiff,
68zegrep, zfgrep, zforce, zgrep, zless, zmore, and znew</seg></seglistitem>
69</segmentedlist>
70
71<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
72<?dbfo list-presentation="list"?>
73<?dbhtml list-presentation="table"?>
74
75<varlistentry id="gunzip">
76<term><command>gunzip</command></term>
77<listitem>
78<para>Decompresses gzipped files</para>
79<indexterm zone="ch-system-gzip gunzip"><primary sortas="b-gunzip">gunzip</primary></indexterm>
80</listitem>
81</varlistentry>
82
83<varlistentry id="gzexe">
84<term><command>gzexe</command></term>
85<listitem>
86<para>Creates self-uncompressing executable files</para>
87<indexterm zone="ch-system-gzip gzexe"><primary sortas="b-gzexe">gzexe</primary></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"><primary sortas="b-gzip">gzip</primary></indexterm>
96</listitem>
97</varlistentry>
98
99<varlistentry id="uncompress">
100<term><command>uncompress</command></term>
101<listitem>
102<para>Decompresses compressed files</para>
103<indexterm zone="ch-system-gzip uncompress"><primary sortas="b-uncompress">uncompress</primary></indexterm>
104</listitem>
105</varlistentry>
106
107<varlistentry id="zcat">
108<term><command>zcat</command></term>
109<listitem>
110<para>Uncompresses the given gzipped files to standard output</para>
111<indexterm zone="ch-system-gzip zcat"><primary sortas="b-zcat">zcat</primary></indexterm>
112</listitem>
113</varlistentry>
114
115<varlistentry id="zcmp">
116<term><command>zcmp</command></term>
117<listitem>
118<para>Runs <command>cmp</command> on gzipped files</para>
119<indexterm zone="ch-system-gzip zcmp"><primary sortas="b-zcmp">zcmp</primary></indexterm>
120</listitem>
121</varlistentry>
122
123<varlistentry id="zdiff">
124<term><command>zdiff</command></term>
125<listitem>
126<para>Runs <command>diff</command> on gzipped files</para>
127<indexterm zone="ch-system-gzip zdiff"><primary sortas="b-zdiff">zdiff</primary></indexterm>
128</listitem>
129</varlistentry>
130
131<varlistentry id="zegrep">
132<term><command>zegrep</command></term>
133<listitem>
134<para>Runs <command>egrep</command> on gzipped files</para>
135<indexterm zone="ch-system-gzip zegrep"><primary sortas="b-zegrep">zegrep</primary></indexterm>
136</listitem>
137</varlistentry>
138
139<varlistentry id="zfgrep">
140<term><command>zfgrep</command></term>
141<listitem>
142<para>Runs <command>fgrep</command> on gzipped files</para>
143<indexterm zone="ch-system-gzip zfgrep"><primary sortas="b-zfgrep">zfgrep</primary></indexterm>
144</listitem>
145</varlistentry>
146
147<varlistentry id="zforce">
148<term><command>zforce</command></term>
149<listitem>
150<para>Forces a <filename class="extension">.gz</filename> extension on all given files
151that are gzipped files, so that <command>gzip</command> will not compress them again; this can be
152useful when file names were truncated during a file transfer</para>
153<indexterm zone="ch-system-gzip zforce"><primary sortas="b-zforce">zforce</primary></indexterm>
154</listitem>
155</varlistentry>
156
157<varlistentry id="zgrep">
158<term><command>zgrep</command></term>
159<listitem>
160<para>Runs <command>grep</command> on gzipped files</para>
161<indexterm zone="ch-system-gzip zgrep"><primary sortas="b-zgrep">zgrep</primary></indexterm>
162</listitem>
163</varlistentry>
164
165<varlistentry id="zless">
166<term><command>zless</command></term>
167<listitem>
168<para>Runs <command>less</command> on gzipped files</para>
169<indexterm zone="ch-system-gzip zless"><primary sortas="b-zless">zless</primary></indexterm>
170</listitem>
171</varlistentry>
172
173<varlistentry id="zmore">
174<term><command>zmore</command></term>
175<listitem>
176<para>Runs <command>more</command> on gzipped files</para>
177<indexterm zone="ch-system-gzip zmore"><primary sortas="b-zmore">zmore</primary></indexterm>
178</listitem>
179</varlistentry>
180
181<varlistentry id="znew">
182<term><command>znew</command></term>
183<listitem>
184<para>Re-compresses files from <command>compress</command> format to
185<command>gzip</command> format&mdash;<filename class="extension">.Z</filename>
186to <filename class="extension">.gz</filename></para>
187<indexterm zone="ch-system-gzip znew"><primary sortas="b-znew">znew</primary></indexterm>
188</listitem>
189</varlistentry>
190</variablelist>
191
192</sect2>
193
194</sect1>
195
Note: See TracBrowser for help on using the repository browser.