[02095ae] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[c439b8a] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[02095ae] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-system-gzip" role="wrap">
|
---|
| 9 | <?dbhtml filename="gzip.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Gzip-&gzip-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-system-gzip">
|
---|
| 14 | <primary sortas="a-Gzip">Gzip</primary>
|
---|
| 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
| 19 |
|
---|
| 20 | <para>The Gzip package contains programs for compressing and decompressing
|
---|
| 21 | files.</para>
|
---|
| 22 |
|
---|
| 23 | </sect2>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="installation">
|
---|
| 26 | <title>Installation of Gzip</title>
|
---|
| 27 |
|
---|
[9568bd5] | 28 | <para os="s1">The following command renames the internal implementation of
|
---|
| 29 | futimens to gl_futimens as newer versions of Glibc provide an incompatible
|
---|
| 30 | version:</para>
|
---|
| 31 |
|
---|
[eb170af] | 32 | <screen os="s2"><userinput>for file in $(grep -lr futimens *); do
|
---|
| 33 | cp -v ${file}{,.orig}
|
---|
| 34 | sed -e "s/futimens/gl_&/" ${file}.orig > ${file}
|
---|
| 35 | done</userinput></screen>
|
---|
[9568bd5] | 36 |
|
---|
[02095ae] | 37 | <para os="a">Prepare Gzip for compilation:</para>
|
---|
| 38 |
|
---|
[cee2ca2] | 39 | <screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
|
---|
[6ae0bf6] | 40 | --prefix=/usr --bindir=/bin</userinput></screen>
|
---|
[02095ae] | 41 |
|
---|
[5811db8] | 42 | <para os="c">Compile the package:</para>
|
---|
[02095ae] | 43 |
|
---|
[5811db8] | 44 | <screen os="d"><userinput>make</userinput></screen>
|
---|
[02095ae] | 45 |
|
---|
[5811db8] | 46 | <para os="e">Install the package:</para>
|
---|
[02095ae] | 47 |
|
---|
[5811db8] | 48 | <screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
|
---|
[02095ae] | 49 |
|
---|
[6ae0bf6] | 50 | <para os="g">Now we will move some of utilities to /usr/bin to meet FHS compliance:</para>
|
---|
[02095ae] | 51 |
|
---|
[a074923] | 52 | <screen os="h"><userinput>mv ${CLFS}/bin/z{egrep,cmp,diff,fgrep,force,grep,less,more,new} \
|
---|
| 53 | ${CLFS}/usr/bin</userinput></screen>
|
---|
[02095ae] | 54 |
|
---|
| 55 | </sect2>
|
---|
| 56 |
|
---|
| 57 | <sect2 id="contents-gzip" role="content">
|
---|
| 58 | <title>Contents of Gzip</title>
|
---|
| 59 |
|
---|
| 60 | <segmentedlist>
|
---|
| 61 | <segtitle>Installed programs</segtitle>
|
---|
| 62 |
|
---|
| 63 | <seglistitem>
|
---|
[11eafaa] | 64 | <seg>gunzip, gzexe, gzip, uncompress, zcat, zcmp, zdiff,
|
---|
[02095ae] | 65 | zegrep, zfgrep, zforce, zgrep, zless, zmore, and znew</seg>
|
---|
| 66 | </seglistitem>
|
---|
| 67 | </segmentedlist>
|
---|
| 68 |
|
---|
| 69 | <variablelist>
|
---|
| 70 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 71 | <?dbfo list-presentation="list"?>
|
---|
| 72 | <?dbhtml list-presentation="table"?>
|
---|
| 73 |
|
---|
| 74 | <varlistentry id="gunzip">
|
---|
| 75 | <term><command>gunzip</command></term>
|
---|
| 76 | <listitem>
|
---|
| 77 | <para>Decompresses gzipped files</para>
|
---|
| 78 | <indexterm zone="ch-system-gzip gunzip">
|
---|
| 79 | <primary sortas="b-gunzip">gunzip</primary>
|
---|
| 80 | </indexterm>
|
---|
| 81 | </listitem>
|
---|
| 82 | </varlistentry>
|
---|
| 83 |
|
---|
| 84 | <varlistentry id="gzexe">
|
---|
| 85 | <term><command>gzexe</command></term>
|
---|
| 86 | <listitem>
|
---|
| 87 | <para>Creates self-decompressing executable files</para>
|
---|
| 88 | <indexterm zone="ch-system-gzip gzexe">
|
---|
| 89 | <primary sortas="b-gzexe">gzexe</primary>
|
---|
| 90 | </indexterm>
|
---|
| 91 | </listitem>
|
---|
| 92 | </varlistentry>
|
---|
| 93 |
|
---|
| 94 | <varlistentry id="gzip">
|
---|
| 95 | <term><command>gzip</command></term>
|
---|
| 96 | <listitem>
|
---|
| 97 | <para>Compresses the given files using Lempel-Ziv (LZ77) coding</para>
|
---|
| 98 | <indexterm zone="ch-system-gzip gzip">
|
---|
| 99 | <primary sortas="b-gzip">gzip</primary>
|
---|
| 100 | </indexterm>
|
---|
| 101 | </listitem>
|
---|
| 102 | </varlistentry>
|
---|
| 103 |
|
---|
| 104 | <varlistentry id="uncompress">
|
---|
| 105 | <term><command>uncompress</command></term>
|
---|
| 106 | <listitem>
|
---|
| 107 | <para>Decompresses compressed files</para>
|
---|
| 108 | <indexterm zone="ch-system-gzip uncompress">
|
---|
| 109 | <primary sortas="b-uncompress">uncompress</primary>
|
---|
| 110 | </indexterm>
|
---|
| 111 | </listitem>
|
---|
| 112 | </varlistentry>
|
---|
| 113 |
|
---|
| 114 | <varlistentry id="zcat">
|
---|
| 115 | <term><command>zcat</command></term>
|
---|
| 116 | <listitem>
|
---|
| 117 | <para>Decompresses the given gzipped files to standard output</para>
|
---|
| 118 | <indexterm zone="ch-system-gzip zcat">
|
---|
| 119 | <primary sortas="b-zcat">zcat</primary>
|
---|
| 120 | </indexterm>
|
---|
| 121 | </listitem>
|
---|
| 122 | </varlistentry>
|
---|
| 123 |
|
---|
| 124 | <varlistentry id="zcmp">
|
---|
| 125 | <term><command>zcmp</command></term>
|
---|
| 126 | <listitem>
|
---|
| 127 | <para>Runs <command>cmp</command> on gzipped files</para>
|
---|
| 128 | <indexterm zone="ch-system-gzip zcmp">
|
---|
| 129 | <primary sortas="b-zcmp">zcmp</primary>
|
---|
| 130 | </indexterm>
|
---|
| 131 | </listitem>
|
---|
| 132 | </varlistentry>
|
---|
| 133 |
|
---|
| 134 | <varlistentry id="zdiff">
|
---|
| 135 | <term><command>zdiff</command></term>
|
---|
| 136 | <listitem>
|
---|
| 137 | <para>Runs <command>diff</command> on gzipped files</para>
|
---|
| 138 | <indexterm zone="ch-system-gzip zdiff">
|
---|
| 139 | <primary sortas="b-zdiff">zdiff</primary>
|
---|
| 140 | </indexterm>
|
---|
| 141 | </listitem>
|
---|
| 142 | </varlistentry>
|
---|
| 143 |
|
---|
| 144 | <varlistentry id="zegrep">
|
---|
| 145 | <term><command>zegrep</command></term>
|
---|
| 146 | <listitem>
|
---|
| 147 | <para>Runs <command>egrep</command> on gzipped files</para>
|
---|
| 148 | <indexterm zone="ch-system-gzip zegrep">
|
---|
| 149 | <primary sortas="b-zegrep">zegrep</primary>
|
---|
| 150 | </indexterm>
|
---|
| 151 | </listitem>
|
---|
| 152 | </varlistentry>
|
---|
| 153 |
|
---|
| 154 | <varlistentry id="zfgrep">
|
---|
| 155 | <term><command>zfgrep</command></term>
|
---|
| 156 | <listitem>
|
---|
| 157 | <para>Runs <command>fgrep</command> on gzipped files</para>
|
---|
| 158 | <indexterm zone="ch-system-gzip zfgrep">
|
---|
| 159 | <primary sortas="b-zfgrep">zfgrep</primary>
|
---|
| 160 | </indexterm>
|
---|
| 161 | </listitem>
|
---|
| 162 | </varlistentry>
|
---|
| 163 |
|
---|
| 164 | <varlistentry id="zforce">
|
---|
| 165 | <term><command>zforce</command></term>
|
---|
| 166 | <listitem>
|
---|
| 167 | <para>Forces a <filename class="extension">.gz</filename> extension on
|
---|
| 168 | all given files that are gzipped files, so that <command>gzip</command>
|
---|
| 169 | will not compress them again; this can be useful when file names were
|
---|
| 170 | truncated during a file transfer</para>
|
---|
| 171 | <indexterm zone="ch-system-gzip zforce">
|
---|
| 172 | <primary sortas="b-zforce">zforce</primary>
|
---|
| 173 | </indexterm>
|
---|
| 174 | </listitem>
|
---|
| 175 | </varlistentry>
|
---|
| 176 |
|
---|
| 177 | <varlistentry id="zgrep">
|
---|
| 178 | <term><command>zgrep</command></term>
|
---|
| 179 | <listitem>
|
---|
| 180 | <para>Runs <command>grep</command> on gzipped files</para>
|
---|
| 181 | <indexterm zone="ch-system-gzip zgrep">
|
---|
| 182 | <primary sortas="b-zgrep">zgrep</primary>
|
---|
| 183 | </indexterm>
|
---|
| 184 | </listitem>
|
---|
| 185 | </varlistentry>
|
---|
| 186 |
|
---|
| 187 | <varlistentry id="zless">
|
---|
| 188 | <term><command>zless</command></term>
|
---|
| 189 | <listitem>
|
---|
| 190 | <para>Runs <command>less</command> on gzipped files</para>
|
---|
| 191 | <indexterm zone="ch-system-gzip zless">
|
---|
| 192 | <primary sortas="b-zless">zless</primary>
|
---|
| 193 | </indexterm>
|
---|
| 194 | </listitem>
|
---|
| 195 | </varlistentry>
|
---|
| 196 |
|
---|
| 197 | <varlistentry id="zmore">
|
---|
| 198 | <term><command>zmore</command></term>
|
---|
| 199 | <listitem>
|
---|
| 200 | <para>Runs <command>more</command> on gzipped files</para>
|
---|
| 201 | <indexterm zone="ch-system-gzip zmore">
|
---|
| 202 | <primary sortas="b-zmore">zmore</primary>
|
---|
| 203 | </indexterm>
|
---|
| 204 | </listitem>
|
---|
| 205 | </varlistentry>
|
---|
| 206 |
|
---|
| 207 | <varlistentry id="znew">
|
---|
| 208 | <term><command>znew</command></term>
|
---|
| 209 | <listitem>
|
---|
| 210 | <para>Re-compresses files from <command>compress</command> format to
|
---|
| 211 | <command>gzip</command> format—<filename
|
---|
| 212 | class="extension">.Z</filename> to <filename
|
---|
| 213 | class="extension">.gz</filename></para>
|
---|
| 214 | <indexterm zone="ch-system-gzip znew">
|
---|
| 215 | <primary sortas="b-znew">znew</primary>
|
---|
| 216 | </indexterm>
|
---|
| 217 | </listitem>
|
---|
| 218 | </varlistentry>
|
---|
| 219 |
|
---|
| 220 | </variablelist>
|
---|
| 221 |
|
---|
| 222 | </sect2>
|
---|
| 223 |
|
---|
| 224 | </sect1>
|
---|