source: chapter06/gzip.xml@ 0b960a2

Last change on this file since 0b960a2 was a0e1913, 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/branches/multi-arch/BOOK@4691 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 6.2 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[c2133bc]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
[673b0d8]3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
[752f4e5]6<sect1 id="ch-system-gzip" role="wrap">
[673b0d8]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>
[6370fa6]11
[a001133]12<sect2 role="package"><title/>
[5888299]13<para>The Gzip package contains programs for compressing and decompressing
14files.</para>
15
[a001133]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>
[673b0d8]21
[a001133]22<segmentedlist>
[a0e1913]23<segtitle>&dependencies;</segtitle>
[a001133]24<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
[69993f4]25GCC, Glibc, Grep, Make, and Sed</seg></seglistitem>
[a001133]26</segmentedlist>
27</sect2>
[3554fa3a]28
[a001133]29<sect2 role="installation">
[73aedd1d]30<title>Installation of Gzip</title>
31
32<para>Prepare Gzip for compilation:</para>
33
34<screen><userinput>./configure --prefix=/usr</userinput></screen>
35
[90e3cb3]36<para>The <command>gzexe</command> script has the location of the
[ef13657]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>
[73aedd1d]40
[2ec4b60]41<screen><userinput>sed -i 's@"BINDIR"@/bin@g' gzexe.in</userinput></screen>
[73aedd1d]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
[673b0d8]51<para>Move the programs to the <filename class="directory">/bin</filename> directory:</para>
[73aedd1d]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
[b48b8c5]59
[73aedd1d]60</sect2>
[6370fa6]61
[5888299]62
[c6cb3aa]63<sect2 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,
[69993f4]69zegrep, zfgrep, zforce, zgrep, zless, zmore, and znew</seg></seglistitem>
[c6cb3aa]70</segmentedlist>
[673b0d8]71
[2256873]72<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
[3ed279f]73<?dbfo list-presentation="list"?>
[c5f9180]74<?dbhtml list-presentation="table"?>
[673b0d8]75
[b8a819f]76<varlistentry id="gunzip">
77<term><command>gunzip</command></term>
[c6cb3aa]78<listitem>
[853917c]79<para>Decompresses gzipped files</para>
[3ed279f]80<indexterm zone="ch-system-gzip gunzip"><primary sortas="b-gunzip">gunzip</primary></indexterm>
[c6cb3aa]81</listitem>
82</varlistentry>
[673b0d8]83
[b8a819f]84<varlistentry id="gzexe">
85<term><command>gzexe</command></term>
[c6cb3aa]86<listitem>
[853917c]87<para>Creates self-uncompressing executable files</para>
[3ed279f]88<indexterm zone="ch-system-gzip gzexe"><primary sortas="b-gzexe">gzexe</primary></indexterm>
[c6cb3aa]89</listitem>
90</varlistentry>
[673b0d8]91
[b8a819f]92<varlistentry id="gzip">
93<term><command>gzip</command></term>
[c6cb3aa]94<listitem>
[853917c]95<para>Compresses the given files using Lempel-Ziv (LZ77) coding</para>
[3ed279f]96<indexterm zone="ch-system-gzip gzip"><primary sortas="b-gzip">gzip</primary></indexterm>
[c6cb3aa]97</listitem>
98</varlistentry>
[673b0d8]99
[2256873]100<varlistentry id="uncompress">
101<term><command>uncompress</command></term>
102<listitem>
103<para>Decompresses compressed files</para>
[853917c]104<indexterm zone="ch-system-gzip uncompress"><primary sortas="b-uncompress">uncompress</primary></indexterm>
[2256873]105</listitem>
106</varlistentry>
107
[b8a819f]108<varlistentry id="zcat">
109<term><command>zcat</command></term>
[c6cb3aa]110<listitem>
[853917c]111<para>Uncompresses the given gzipped files to standard output</para>
[3ed279f]112<indexterm zone="ch-system-gzip zcat"><primary sortas="b-zcat">zcat</primary></indexterm>
[c6cb3aa]113</listitem>
114</varlistentry>
[673b0d8]115
[b8a819f]116<varlistentry id="zcmp">
117<term><command>zcmp</command></term>
[c6cb3aa]118<listitem>
[853917c]119<para>Runs <command>cmp</command> on gzipped files</para>
[3ed279f]120<indexterm zone="ch-system-gzip zcmp"><primary sortas="b-zcmp">zcmp</primary></indexterm>
[c6cb3aa]121</listitem>
122</varlistentry>
[673b0d8]123
[b8a819f]124<varlistentry id="zdiff">
125<term><command>zdiff</command></term>
[c6cb3aa]126<listitem>
[853917c]127<para>Runs <command>diff</command> on gzipped files</para>
[3ed279f]128<indexterm zone="ch-system-gzip zdiff"><primary sortas="b-zdiff">zdiff</primary></indexterm>
[c6cb3aa]129</listitem>
130</varlistentry>
[73aedd1d]131
[b8a819f]132<varlistentry id="zegrep">
133<term><command>zegrep</command></term>
[c6cb3aa]134<listitem>
[853917c]135<para>Runs <command>egrep</command> on gzipped files</para>
[3ed279f]136<indexterm zone="ch-system-gzip zegrep"><primary sortas="b-zegrep">zegrep</primary></indexterm>
[c6cb3aa]137</listitem>
138</varlistentry>
[673b0d8]139
[b8a819f]140<varlistentry id="zfgrep">
141<term><command>zfgrep</command></term>
[c6cb3aa]142<listitem>
[853917c]143<para>Runs <command>fgrep</command> on gzipped files</para>
[3ed279f]144<indexterm zone="ch-system-gzip zfgrep"><primary sortas="b-zfgrep">zfgrep</primary></indexterm>
[c6cb3aa]145</listitem>
146</varlistentry>
[673b0d8]147
[b8a819f]148<varlistentry id="zforce">
149<term><command>zforce</command></term>
[c6cb3aa]150<listitem>
[853917c]151<para>Forces a <filename class="extension">.gz</filename> extension on all given files
[2256873]152that are gzipped files, so that <command>gzip</command> will not compress them again; this can be
153useful when file names were truncated during a file transfer</para>
[3ed279f]154<indexterm zone="ch-system-gzip zforce"><primary sortas="b-zforce">zforce</primary></indexterm>
[c6cb3aa]155</listitem>
156</varlistentry>
[673b0d8]157
[b8a819f]158<varlistentry id="zgrep">
159<term><command>zgrep</command></term>
[c6cb3aa]160<listitem>
[853917c]161<para>Runs <command>grep</command> on gzipped files</para>
[3ed279f]162<indexterm zone="ch-system-gzip zgrep"><primary sortas="b-zgrep">zgrep</primary></indexterm>
[c6cb3aa]163</listitem>
164</varlistentry>
[673b0d8]165
[b8a819f]166<varlistentry id="zless">
167<term><command>zless</command></term>
[c6cb3aa]168<listitem>
[853917c]169<para>Runs <command>less</command> on gzipped files</para>
[3ed279f]170<indexterm zone="ch-system-gzip zless"><primary sortas="b-zless">zless</primary></indexterm>
[c6cb3aa]171</listitem>
172</varlistentry>
[673b0d8]173
[b8a819f]174<varlistentry id="zmore">
175<term><command>zmore</command></term>
[c6cb3aa]176<listitem>
[853917c]177<para>Runs <command>more</command> on gzipped files</para>
[3ed279f]178<indexterm zone="ch-system-gzip zmore"><primary sortas="b-zmore">zmore</primary></indexterm>
[c6cb3aa]179</listitem>
180</varlistentry>
[673b0d8]181
[b8a819f]182<varlistentry id="znew">
183<term><command>znew</command></term>
[c6cb3aa]184<listitem>
[853917c]185<para>Re-compresses files from <command>compress</command> format to
[69993f4]186<command>gzip</command> format&mdash;<filename class="extension">.Z</filename>
[2256873]187to <filename class="extension">.gz</filename></para>
[3ed279f]188<indexterm zone="ch-system-gzip znew"><primary sortas="b-znew">znew</primary></indexterm>
[c6cb3aa]189</listitem>
190</varlistentry>
191</variablelist>
[673b0d8]192
193</sect2>
194
195</sect1>
[ef13657]196
Note: See TracBrowser for help on using the repository browser.