source: chapter06/gzip.xml@ c076370

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.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 c076370 was c24424c, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Typo

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

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