source: chapter06/gzip.xml@ 6a0e6f3

Last change on this file since 6a0e6f3 was 6a0e6f3, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Remove the spurious <info> tags that I thought were necessary but evidently aren't

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

  • Property mode set to 100644
File size: 5.9 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[1fe35e1]2<!DOCTYPE section [
[673b0d8]3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
[1fe35e1]6<section xmlns="http://docbook.org/docbook-ng"
7 xml:id="ch-system-gzip" xreflabel="Gzip" role="wrap">
[6a0e6f3]8<title>Gzip-&gzip-version;</title>
[673b0d8]9<?dbhtml filename="gzip.html"?>
10
11<indexterm zone="ch-system-gzip"><primary sortas="a-Gzip">Gzip</primary></indexterm>
[6370fa6]12
[6a0e6f3]13<section role="package"><title/>
[5888299]14<para>The Gzip package contains programs for compressing and decompressing
15files.</para>
16
[a001133]17<segmentedlist>
18<segtitle>&buildtime;</segtitle>
19<segtitle>&diskspace;</segtitle>
20<seglistitem><seg>0.1 SBU</seg><seg>2.6 MB</seg></seglistitem>
21</segmentedlist>
[673b0d8]22
[a001133]23<segmentedlist>
24<segtitle>Gzip installation depends on</segtitle>
25<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
26GCC, Glibc, Grep, Make, Sed</seg></seglistitem>
27</segmentedlist>
[1fe35e1]28</section>
[3554fa3a]29
[1fe35e1]30<section role="installation">
[6a0e6f3]31<title>Installation of Gzip</title>
[73aedd1d]32
33<para>Prepare Gzip for compilation:</para>
34
35<screen><userinput>./configure --prefix=/usr</userinput></screen>
36
[90e3cb3]37<para>The <command>gzexe</command> script has the location of the
38<command>gzip</command> binary hard-wired into it. Because we later change
[673b0d8]39the location of the binary, the following command ensures that the new
[555fe1c]40location gets placed into the script:</para>
[73aedd1d]41
[2ec4b60]42<screen><userinput>sed -i 's@"BINDIR"@/bin@g' gzexe.in</userinput></screen>
[73aedd1d]43
44<para>Compile the package:</para>
45
46<screen><userinput>make</userinput></screen>
47
48<para>Install the package:</para>
49
50<screen><userinput>make install</userinput></screen>
51
[673b0d8]52<para>Move the programs to the <filename class="directory">/bin</filename> directory:</para>
[73aedd1d]53
54<screen><userinput>mv /usr/bin/gzip /bin
55rm /usr/bin/{gunzip,zcat}
56ln -s gzip /bin/gunzip
57ln -s gzip /bin/zcat
58ln -s gunzip /bin/uncompress</userinput></screen>
59
[1fe35e1]60</section>
[6370fa6]61
[5888299]62
[6a0e6f3]63<section xml:id="contents-gzip" role="content"><title>Contents of Gzip</title>
[673b0d8]64
[c6cb3aa]65<segmentedlist>
66<segtitle>Installed programs</segtitle>
67<seglistitem><seg>gunzip (link to gzip), gzexe,
[673b0d8]68gzip, uncompress (link to gunzip), zcat (link to gzip), zcmp, zdiff,
[c6cb3aa]69zegrep, zfgrep, zforce, zgrep, zless, zmore and znew</seg></seglistitem>
70</segmentedlist>
[673b0d8]71
[c6cb3aa]72<variablelist><title>Short descriptions</title>
[673b0d8]73
[1fe35e1]74<varlistentry xml:id="gunzip">
[b8a819f]75<term><command>gunzip</command></term>
[c6cb3aa]76<listitem>
[673b0d8]77<indexterm zone="ch-system-gzip gunzip"><primary sortas="b-gunzip">gunzip</primary></indexterm>
[c6cb3aa]78<para>decompresses gzipped files.</para>
79</listitem>
80</varlistentry>
[673b0d8]81
[1fe35e1]82<varlistentry xml:id="gzexe">
[b8a819f]83<term><command>gzexe</command></term>
[c6cb3aa]84<listitem>
[673b0d8]85<indexterm zone="ch-system-gzip gzexe"><primary sortas="b-gzexe">gzexe</primary></indexterm>
[c6cb3aa]86<para>is used to create self-uncompressing executable files.</para>
87</listitem>
88</varlistentry>
[673b0d8]89
[1fe35e1]90<varlistentry xml:id="gzip">
[b8a819f]91<term><command>gzip</command></term>
[c6cb3aa]92<listitem>
[673b0d8]93<indexterm zone="ch-system-gzip gzip"><primary sortas="b-gzip">gzip</primary></indexterm>
[c6cb3aa]94<para>compresses the given files, using Lempel-Ziv (LZ77) coding.</para>
95</listitem>
96</varlistentry>
[673b0d8]97
[1fe35e1]98<varlistentry xml:id="zcat">
[b8a819f]99<term><command>zcat</command></term>
[c6cb3aa]100<listitem>
[673b0d8]101<indexterm zone="ch-system-gzip zcat"><primary sortas="b-zcat">zcat</primary></indexterm>
[c6cb3aa]102<para>uncompresses the given gzipped files to standard output.</para>
103</listitem>
104</varlistentry>
[673b0d8]105
[1fe35e1]106<varlistentry xml:id="zcmp">
[b8a819f]107<term><command>zcmp</command></term>
[c6cb3aa]108<listitem>
[673b0d8]109<indexterm zone="ch-system-gzip zcmp"><primary sortas="b-zcmp">zcmp</primary></indexterm>
[ef57e3b]110<para>runs <command>cmp</command> on gzipped files.</para>
[c6cb3aa]111</listitem>
112</varlistentry>
[673b0d8]113
[1fe35e1]114<varlistentry xml:id="zdiff">
[b8a819f]115<term><command>zdiff</command></term>
[c6cb3aa]116<listitem>
[673b0d8]117<indexterm zone="ch-system-gzip zdiff"><primary sortas="b-zdiff">zdiff</primary></indexterm>
[ef57e3b]118<para>runs <command>diff</command> on gzipped files.</para>
[c6cb3aa]119</listitem>
120</varlistentry>
[73aedd1d]121
[1fe35e1]122<varlistentry xml:id="zegrep">
[b8a819f]123<term><command>zegrep</command></term>
[c6cb3aa]124<listitem>
[673b0d8]125<indexterm zone="ch-system-gzip zegrep"><primary sortas="b-zegrep">zegrep</primary></indexterm>
[ef57e3b]126<para>runs <command>egrep</command> on gzipped files.</para>
[c6cb3aa]127</listitem>
128</varlistentry>
[673b0d8]129
[1fe35e1]130<varlistentry xml:id="zfgrep">
[b8a819f]131<term><command>zfgrep</command></term>
[c6cb3aa]132<listitem>
[673b0d8]133<indexterm zone="ch-system-gzip zfgrep"><primary sortas="b-zfgrep">zfgrep</primary></indexterm>
[ef57e3b]134<para>runs <command>fgrep</command> on gzipped files.</para>
[c6cb3aa]135</listitem>
136</varlistentry>
[673b0d8]137
[1fe35e1]138<varlistentry xml:id="zforce">
[b8a819f]139<term><command>zforce</command></term>
[c6cb3aa]140<listitem>
[673b0d8]141<indexterm zone="ch-system-gzip zforce"><primary sortas="b-zforce">zforce</primary></indexterm>
[ef57e3b]142<para>forces a <filename class="extension">.gz</filename> extension on all given files
143that are gzipped files, so that <command>gzip</command> will not compress them again. This can be
[673b0d8]144useful when file names were truncated during a file transfer.</para>
[c6cb3aa]145</listitem>
146</varlistentry>
[673b0d8]147
[1fe35e1]148<varlistentry xml:id="zgrep">
[b8a819f]149<term><command>zgrep</command></term>
[c6cb3aa]150<listitem>
[673b0d8]151<indexterm zone="ch-system-gzip zgrep"><primary sortas="b-zgrep">zgrep</primary></indexterm>
[ef57e3b]152<para>runs <command>grep</command> on gzipped files.</para>
[c6cb3aa]153</listitem>
154</varlistentry>
[673b0d8]155
[1fe35e1]156<varlistentry xml:id="zless">
[b8a819f]157<term><command>zless</command></term>
[c6cb3aa]158<listitem>
[673b0d8]159<indexterm zone="ch-system-gzip zless"><primary sortas="b-zless">zless</primary></indexterm>
[ef57e3b]160<para>runs <command>less</command> on gzipped files.</para>
[c6cb3aa]161</listitem>
162</varlistentry>
[673b0d8]163
[1fe35e1]164<varlistentry xml:id="zmore">
[b8a819f]165<term><command>zmore</command></term>
[c6cb3aa]166<listitem>
[673b0d8]167<indexterm zone="ch-system-gzip zmore"><primary sortas="b-zmore">zmore</primary></indexterm>
[ef57e3b]168<para>runs <command>more</command> on gzipped files.</para>
[c6cb3aa]169</listitem>
170</varlistentry>
[673b0d8]171
[1fe35e1]172<varlistentry xml:id="znew">
[b8a819f]173<term><command>znew</command></term>
[c6cb3aa]174<listitem>
[673b0d8]175<indexterm zone="ch-system-gzip znew"><primary sortas="b-znew">znew</primary></indexterm>
[ef57e3b]176<para>re-compresses files from <command>compress</command> format to <command>gzip</command> format
177-- <filename class="extension">.Z</filename> to <filename class="extension">.gz</filename>.</para>
[c6cb3aa]178</listitem>
179</varlistentry>
180</variablelist>
[673b0d8]181
[1fe35e1]182</section>
[673b0d8]183
[1fe35e1]184</section>
Note: See TracBrowser for help on using the repository browser.