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