source: chapter06/gzip.xml@ 0868461

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 0868461 was 673b0d8, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Merged newxml into HEAD

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

  • Property mode set to 100644
File size: 4.4 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">
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<para>The Gzip package contains programs for compressing and decompressing
13files.</para>
14
15<screen>&buildtime; 0.1 SBU
16&diskspace; 2.6 MB</screen>
17
18<para>Gzip installation depends on: Bash, Binutils, Coreutils, Diffutils,
19GCC, Glibc, Grep, Make, Sed.</para>
20
21
22
23<sect2>
24<title>Installation of Gzip</title>
25
26<para>Prepare Gzip for compilation:</para>
27
28<screen><userinput>./configure --prefix=/usr</userinput></screen>
29
30<para>The <command>gzexe</command> script has the location of the
31<command>gzip</command> binary hard-wired into it. Because we later change
32the location of the binary, the following command ensures that the new
33location gets placed into the script:</para>
34
35<screen><userinput>cp gzexe.in{,.backup}
36sed 's%"BINDIR"%/bin%' gzexe.in.backup &gt; gzexe.in</userinput></screen>
37
38<para>Compile the package:</para>
39
40<screen><userinput>make</userinput></screen>
41
42<para>Install the package:</para>
43
44<screen><userinput>make install</userinput></screen>
45
46<para>Move the programs to the <filename class="directory">/bin</filename> directory:</para>
47
48<screen><userinput>mv /usr/bin/gzip /bin
49rm /usr/bin/{gunzip,zcat}
50ln -s gzip /bin/gunzip
51ln -s gzip /bin/zcat
52ln -s gunzip /bin/uncompress</userinput></screen>
53
54</sect2>
55
56
57<sect2 id="contents-gzip"><title>Contents of Gzip</title>
58
59<para><emphasis>Installed programs</emphasis>: gunzip (link to gzip), gzexe,
60gzip, uncompress (link to gunzip), zcat (link to gzip), zcmp, zdiff,
61zegrep, zfgrep, zforce, zgrep, zless, zmore and znew</para>
62
63</sect2>
64
65<sect2><title>Short descriptions</title>
66
67<indexterm zone="ch-system-gzip gunzip"><primary sortas="b-gunzip">gunzip</primary></indexterm>
68<para id="gunzip"><command>gunzip</command> decompresses gzipped files.</para>
69
70<indexterm zone="ch-system-gzip gzexe"><primary sortas="b-gzexe">gzexe</primary></indexterm>
71<para id="gzexe"><command>gzexe</command> is used to create self-uncompressing
72executable files.</para>
73
74<indexterm zone="ch-system-gzip gzip"><primary sortas="b-gzip">gzip</primary></indexterm>
75<para id="gzip"><command>gzip</command> compresses the given files, using
76Lempel-Ziv (LZ77) coding.</para>
77
78<indexterm zone="ch-system-gzip zcat"><primary sortas="b-zcat">zcat</primary></indexterm>
79<para id="zcat"><command>zcat</command> uncompresses the given gzipped files to
80standard output.</para>
81
82<indexterm zone="ch-system-gzip zcmp"><primary sortas="b-zcmp">zcmp</primary></indexterm>
83<para id="zcmp"><command>zcmp</command> runs cmp on gzipped files.</para>
84
85<indexterm zone="ch-system-gzip zdiff"><primary sortas="b-zdiff">zdiff</primary></indexterm>
86<para id="zdiff"><command>zdiff</command> runs diff on gzipped files.</para>
87
88<indexterm zone="ch-system-gzip zegrep"><primary sortas="b-zegrep">zegrep</primary></indexterm>
89<para id="zegrep"><command>zegrep</command> runs egrep on gzipped files.</para>
90
91<indexterm zone="ch-system-gzip zfgrep"><primary sortas="b-zfgrep">zfgrep</primary></indexterm>
92<para id="zfgrep"><command>zfgrep</command> runs fgrep on gzipped files.</para>
93
94<indexterm zone="ch-system-gzip zforce"><primary sortas="b-zforce">zforce</primary></indexterm>
95<para id="zforce"><command>zforce</command> forces a .gz extension on all given files
96that are gzipped files, so that gzip will not compress them again. This can be
97useful when file names were truncated during a file transfer.</para>
98
99<indexterm zone="ch-system-gzip zgrep"><primary sortas="b-zgrep">zgrep</primary></indexterm>
100<para id="zgrep"><command>zgrep</command> runs grep on gzipped files.</para>
101
102<indexterm zone="ch-system-gzip zless"><primary sortas="b-zless">zless</primary></indexterm>
103<para id="zless"><command>zless</command> runs less on gzipped files.</para>
104
105<indexterm zone="ch-system-gzip zmore"><primary sortas="b-zmore">zmore</primary></indexterm>
106<para id="zmore"><command>zmore</command> runs more on gzipped files.</para>
107
108<indexterm zone="ch-system-gzip znew"><primary sortas="b-znew">znew</primary></indexterm>
109<para id="znew"><command>znew</command> re-compresses files from compress format
110to gzip format -- .Z to .gz.</para>
111
112</sect2>
113
114
115
116</sect1>
Note: See TracBrowser for help on using the repository browser.