| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 | <?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [  <!ENTITY % general-entities SYSTEM "../general.ent">  %general-entities;]><sect1 id="ch-system-gzip" xreflabel="Gzip" role="wrap"><title>Gzip-&gzip-version;</title><?dbhtml filename="gzip.html"?><indexterm zone="ch-system-gzip"><primary sortas="a-Gzip">Gzip</primary></indexterm><sect2 role="package"><title/><para>The Gzip package contains programs for compressing and decompressingfiles.</para><segmentedlist><segtitle>&buildtime;</segtitle><segtitle>&diskspace;</segtitle><seglistitem><seg>0.1 SBU</seg><seg>2.6 MB</seg></seglistitem></segmentedlist><segmentedlist><segtitle>Gzip installation depends on</segtitle><seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,GCC, Glibc, Grep, Make, Sed</seg></seglistitem></segmentedlist></sect2><sect2 role="installation"><title>Installation of Gzip</title><para>Prepare Gzip for compilation:</para><screen><userinput>./configure --prefix=/usr</userinput></screen><para>The <command>gzexe</command> script has the location of the<command>gzip</command> binary hard-wired into it. Because we later changethe location of the binary, the following command ensures that the newlocation gets placed into the script:</para><screen><userinput>sed -i 's%"BINDIR"%/bin%' gzexe.in</userinput></screen><para>Compile the package:</para><screen><userinput>make</userinput></screen><para>Install the package:</para><screen><userinput>make install</userinput></screen><para>Move the programs to the <filename class="directory">/bin</filename> directory:</para><screen><userinput>mv /usr/bin/gzip /binrm /usr/bin/{gunzip,zcat}ln -s gzip /bin/gunzipln -s gzip /bin/zcatln -s gunzip /bin/uncompress</userinput></screen></sect2><sect2 id="contents-gzip" role="content"><title>Contents of Gzip</title><segmentedlist><segtitle>Installed programs</segtitle><seglistitem><seg>gunzip (link to gzip), gzexe,gzip, uncompress (link to gunzip), zcat (link to gzip), zcmp, zdiff,zegrep, zfgrep, zforce, zgrep, zless, zmore and znew</seg></seglistitem></segmentedlist><variablelist><title>Short descriptions</title><varlistentry><term id="gunzip"><command>gunzip</command></term><listitem><indexterm zone="ch-system-gzip gunzip"><primary sortas="b-gunzip">gunzip</primary></indexterm><para>decompresses gzipped files.</para></listitem></varlistentry><varlistentry><term id="gzexe"><command>gzexe</command></term><listitem><indexterm zone="ch-system-gzip gzexe"><primary sortas="b-gzexe">gzexe</primary></indexterm><para>is used to create self-uncompressing executable files.</para></listitem></varlistentry><varlistentry><term id="gzip"><command>gzip</command></term><listitem><indexterm zone="ch-system-gzip gzip"><primary sortas="b-gzip">gzip</primary></indexterm><para>compresses the given files, using Lempel-Ziv (LZ77) coding.</para></listitem></varlistentry><varlistentry><term id="zcat"><command>zcat</command></term><listitem><indexterm zone="ch-system-gzip zcat"><primary sortas="b-zcat">zcat</primary></indexterm><para>uncompresses the given gzipped files to standard output.</para></listitem></varlistentry><varlistentry><term id="zcmp"><command>zcmp</command></term><listitem><indexterm zone="ch-system-gzip zcmp"><primary sortas="b-zcmp">zcmp</primary></indexterm><para>runs cmp on gzipped files.</para></listitem></varlistentry><varlistentry><term id="zdiff"><command>zdiff</command></term><listitem><indexterm zone="ch-system-gzip zdiff"><primary sortas="b-zdiff">zdiff</primary></indexterm><para>runs diff on gzipped files.</para></listitem></varlistentry><varlistentry><term id="zegrep"><command>zegrep</command></term><listitem><indexterm zone="ch-system-gzip zegrep"><primary sortas="b-zegrep">zegrep</primary></indexterm><para>runs egrep on gzipped files.</para></listitem></varlistentry><varlistentry><term id="zfgrep"><command>zfgrep</command></term><listitem><indexterm zone="ch-system-gzip zfgrep"><primary sortas="b-zfgrep">zfgrep</primary></indexterm><para>runs fgrep on gzipped files.</para></listitem></varlistentry><varlistentry><term id="zforce"><command>zforce</command></term><listitem><indexterm zone="ch-system-gzip zforce"><primary sortas="b-zforce">zforce</primary></indexterm><para>forces a .gz extension on all given filesthat are gzipped files, so that gzip will not compress them again. This can beuseful when file names were truncated during a file transfer.</para></listitem></varlistentry><varlistentry><term id="zgrep"><command>zgrep</command></term><listitem><indexterm zone="ch-system-gzip zgrep"><primary sortas="b-zgrep">zgrep</primary></indexterm><para>runs grep on gzipped files.</para></listitem></varlistentry><varlistentry><term id="zless"><command>zless</command></term><listitem><indexterm zone="ch-system-gzip zless"><primary sortas="b-zless">zless</primary></indexterm><para>runs less on gzipped files.</para></listitem></varlistentry><varlistentry><term id="zmore"><command>zmore</command></term><listitem><indexterm zone="ch-system-gzip zmore"><primary sortas="b-zmore">zmore</primary></indexterm><para>runs more on gzipped files.</para></listitem></varlistentry><varlistentry><term id="znew"><command>znew</command></term><listitem><indexterm zone="ch-system-gzip znew"><primary sortas="b-znew">znew</primary></indexterm><para>re-compresses files from compress format to gzip format -- .Z to .gz.</para></listitem></varlistentry></variablelist></sect2></sect1>
 |