source: chapter06/gzip.xml@ c6cb3aa

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.0 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 c6cb3aa was c6cb3aa, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

HEAD: Retagged the Contents of ... sections.

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

  • Property mode set to 100644
File size: 5.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<sect1 id="ch-system-gzip" xreflabel="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>Gzip installation depends on</segtitle>
24<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
25GCC, Glibc, Grep, Make, 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 we later change
38the location of the binary, the following command ensures that the new
39location gets placed into the script:</para>
40
41<screen><userinput>sed -i 's%"BINDIR"%/bin%' 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><title>Short descriptions</title>
72
73<varlistentry>
74<term id="gunzip"><command>gunzip</command></term>
75<listitem>
76<indexterm zone="ch-system-gzip gunzip"><primary sortas="b-gunzip">gunzip</primary></indexterm>
77<para>decompresses gzipped files.</para>
78</listitem>
79</varlistentry>
80
81<varlistentry>
82<term id="gzexe"><command>gzexe</command></term>
83<listitem>
84<indexterm zone="ch-system-gzip gzexe"><primary sortas="b-gzexe">gzexe</primary></indexterm>
85<para>is used to create self-uncompressing executable files.</para>
86</listitem>
87</varlistentry>
88
89<varlistentry>
90<term id="gzip"><command>gzip</command></term>
91<listitem>
92<indexterm zone="ch-system-gzip gzip"><primary sortas="b-gzip">gzip</primary></indexterm>
93<para>compresses the given files, using Lempel-Ziv (LZ77) coding.</para>
94</listitem>
95</varlistentry>
96
97<varlistentry>
98<term id="zcat"><command>zcat</command></term>
99<listitem>
100<indexterm zone="ch-system-gzip zcat"><primary sortas="b-zcat">zcat</primary></indexterm>
101<para>uncompresses the given gzipped files to standard output.</para>
102</listitem>
103</varlistentry>
104
105<varlistentry>
106<term id="zcmp"><command>zcmp</command></term>
107<listitem>
108<indexterm zone="ch-system-gzip zcmp"><primary sortas="b-zcmp">zcmp</primary></indexterm>
109<para>runs cmp on gzipped files.</para>
110</listitem>
111</varlistentry>
112
113<varlistentry>
114<term id="zdiff"><command>zdiff</command></term>
115<listitem>
116<indexterm zone="ch-system-gzip zdiff"><primary sortas="b-zdiff">zdiff</primary></indexterm>
117<para>runs diff on gzipped files.</para>
118</listitem>
119</varlistentry>
120
121<varlistentry>
122<term id="zegrep"><command>zegrep</command></term>
123<listitem>
124<indexterm zone="ch-system-gzip zegrep"><primary sortas="b-zegrep">zegrep</primary></indexterm>
125<para>runs egrep on gzipped files.</para>
126</listitem>
127</varlistentry>
128
129<varlistentry>
130<term id="zfgrep"><command>zfgrep</command></term>
131<listitem>
132<indexterm zone="ch-system-gzip zfgrep"><primary sortas="b-zfgrep">zfgrep</primary></indexterm>
133<para>runs fgrep on gzipped files.</para>
134</listitem>
135</varlistentry>
136
137<varlistentry>
138<term id="zforce"><command>zforce</command></term>
139<listitem>
140<indexterm zone="ch-system-gzip zforce"><primary sortas="b-zforce">zforce</primary></indexterm>
141<para>forces a .gz extension on all given files
142that are gzipped files, so that gzip will not compress them again. This can be
143useful when file names were truncated during a file transfer.</para>
144</listitem>
145</varlistentry>
146
147<varlistentry>
148<term id="zgrep"><command>zgrep</command></term>
149<listitem>
150<indexterm zone="ch-system-gzip zgrep"><primary sortas="b-zgrep">zgrep</primary></indexterm>
151<para>runs grep on gzipped files.</para>
152</listitem>
153</varlistentry>
154
155<varlistentry>
156<term id="zless"><command>zless</command></term>
157<listitem>
158<indexterm zone="ch-system-gzip zless"><primary sortas="b-zless">zless</primary></indexterm>
159<para>runs less on gzipped files.</para>
160</listitem>
161</varlistentry>
162
163<varlistentry>
164<term id="zmore"><command>zmore</command></term>
165<listitem>
166<indexterm zone="ch-system-gzip zmore"><primary sortas="b-zmore">zmore</primary></indexterm>
167<para>runs more on gzipped files.</para>
168</listitem>
169</varlistentry>
170
171<varlistentry>
172<term id="znew"><command>znew</command></term>
173<listitem>
174<indexterm zone="ch-system-gzip znew"><primary sortas="b-znew">znew</primary></indexterm>
175<para>re-compresses files from compress format to gzip format -- .Z to .gz.</para>
176</listitem>
177</varlistentry>
178</variablelist>
179
180</sect2>
181
182</sect1>
Note: See TracBrowser for help on using the repository browser.