source: BOOK/final-system/common/bzip2.xml @ bcc6b66

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since bcc6b66 was bcc6b66, checked in by Jim Gifford <clfs@…>, 15 years ago

Fixed wording on Bzip2 Sed for symlinks

  • Property mode set to 100644
File size: 7.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4  <!ENTITY % general-entities SYSTEM "../../general.ent">
5  %general-entities;
6]>
7
8<sect1 id="ch-system-bzip2" role="wrap">
9  <?dbhtml filename="bzip2.html"?>
10
11  <title>Bzip2-&bzip2-version;</title>
12
13  <indexterm zone="ch-system-bzip2">
14    <primary sortas="a-Bzip2">Bzip2</primary>
15  </indexterm>
16
17  <sect2 role="package">
18    <title/>
19
20    <para>The Bzip2 package contains programs for compressing and
21    decompressing files. Compressing text files with <command>bzip2</command>
22    yields a much better compression percentage than with the traditional
23    <command>gzip</command>.</para>
24
25  </sect2>
26
27  <sect2 role="installation">
28    <title>Installation of Bzip2</title>
29
30    <para os="s1">By Default bzip2 installs some programs using absolute-links. The following sed
31    will change them into relative-links:</para>
32
33<screen os="s2"><userinput>sed -i -e 's:ln -s -f $(PREFIX)/bin/:ln -s :' Makefile</userinput></screen>
34
35    <para os="a">The Bzip2 package does not contain a <command>configure</command>
36    script. Compile it with:</para>
37
38<screen os="b"><userinput>make -f Makefile-libbz2_so
39make clean</userinput></screen>
40
41    <para os="c">The <parameter>-f</parameter> flag will cause Bzip2 to be built
42    using a different <filename>Makefile</filename> file, in this case the
43    <filename>Makefile-libbz2_so</filename> file, which creates a dynamic
44    <filename class="libraryfile">libbz2.so</filename> library and links the
45    Bzip2 utilities against it.</para>
46
47    <para os="d">Recompile the package using a non-shared library and test it:</para>
48
49<screen os="e"><userinput>make</userinput></screen>
50
51    <para os="g">Install the programs:</para>
52
53<screen os="h"><userinput>make PREFIX=/usr install</userinput></screen>
54
55    <para os="i">Install the shared <command>bzip2</command> binary into the
56    <filename class="directory">/bin</filename> directory, make
57    some necessary symbolic links, and clean up:</para>
58
59<screen os="j"><userinput>cp -v bzip2-shared /bin/bzip2
60cp -av libbz2.so* /lib
61ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
62rm -v /usr/bin/{bunzip2,bzcat,bzip2}
63ln -sv bzip2 /bin/bunzip2
64ln -sv bzip2 /bin/bzcat</userinput></screen>
65
66  </sect2>
67
68  <sect2 id="contents-bzip2" role="content">
69    <title>Contents of Bzip2</title>
70
71    <segmentedlist>
72      <segtitle>Installed programs</segtitle>
73      <segtitle>Installed libraries</segtitle>
74
75      <seglistitem>
76        <seg>bunzip2 (link to bzip2), bzcat (link to bzip2), bzcmp, bzdiff,
77        bzegrep, bzfgrep, bzgrep, bzip2, bzip2recover, bzless, and bzmore</seg>
78        <seg>libbz2.a, libbz2.so (link to libbz2.so.1.0), libbz2.so.1.0 (link to
79        libbz2.so.&bzip2-version;), and libbz2.so.&bzip2-version;</seg>
80      </seglistitem>
81    </segmentedlist>
82
83    <variablelist>
84      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
85      <?dbfo list-presentation="list"?>
86      <?dbhtml list-presentation="table"?>
87
88      <varlistentry id="bunzip2">
89        <term><command>bunzip2</command></term>
90        <listitem>
91          <para>Decompresses bzipped files</para>
92          <indexterm zone="ch-system-bzip2 bunzip2">
93            <primary sortas="b-bunzip2">bunzip2</primary>
94          </indexterm>
95        </listitem>
96      </varlistentry>
97
98      <varlistentry id="bzcat">
99        <term><command>bzcat</command></term>
100        <listitem>
101          <para>Decompresses to standard output</para>
102          <indexterm zone="ch-system-bzip2 bzcat">
103            <primary sortas="b-bzcat">bzcat</primary>
104          </indexterm>
105        </listitem>
106      </varlistentry>
107
108      <varlistentry id="bzcmp">
109        <term><command>bzcmp</command></term>
110        <listitem>
111          <para>Runs <command>cmp</command> on bzipped files</para>
112          <indexterm zone="ch-system-bzip2 bzcmp">
113            <primary sortas="b-bzcmp">bzcmp</primary>
114          </indexterm>
115        </listitem>
116      </varlistentry>
117
118      <varlistentry id="bzdiff">
119        <term><command>bzdiff</command></term>
120        <listitem>
121          <para>Runs <command>diff</command> on bzipped files</para>
122          <indexterm zone="ch-system-bzip2 bzdiff">
123            <primary sortas="b-bzdiff">bzdiff</primary>
124          </indexterm>
125        </listitem>
126      </varlistentry>
127
128      <varlistentry id="bzgrep">
129        <term><command>bzgrep</command></term>
130        <listitem>
131          <para>Runs <command>grep</command> on bzipped files</para>
132          <indexterm zone="ch-system-bzip2 bzgrep">
133            <primary sortas="b-bzgrep">bzgrep</primary>
134          </indexterm>
135        </listitem>
136      </varlistentry>
137
138      <varlistentry id="bzegrep">
139        <term><command>bzegrep</command></term>
140        <listitem>
141          <para>Runs <command>egrep</command> on bzipped files</para>
142          <indexterm zone="ch-system-bzip2 bzegrep">
143            <primary sortas="b-bzegrep">bzegrep</primary>
144          </indexterm>
145        </listitem>
146      </varlistentry>
147
148      <varlistentry id="bzfgrep">
149        <term><command>bzfgrep</command></term>
150        <listitem>
151          <para>Runs <command>fgrep</command> on bzipped files</para>
152          <indexterm zone="ch-system-bzip2 bzfgrep">
153            <primary sortas="b-bzfgrep">bzfgrep</primary>
154          </indexterm>
155        </listitem>
156      </varlistentry>
157
158      <varlistentry id="bzip2">
159        <term><command>bzip2</command></term>
160        <listitem>
161          <para>Compresses files using the Burrows-Wheeler block sorting text
162          compression algorithm with Huffman coding; the compression rate is
163          better than that achieved by more conventional compressors using
164          <quote>Lempel-Ziv</quote> algorithms, like <command>gzip</command></para>
165          <indexterm zone="ch-system-bzip2 bzip2">
166            <primary sortas="b-bzip2">bzip2</primary>
167          </indexterm>
168        </listitem>
169      </varlistentry>
170
171      <varlistentry id="bzip2recover">
172        <term><command>bzip2recover</command></term>
173        <listitem>
174          <para>Tries to recover data from damaged bzipped files</para>
175          <indexterm zone="ch-system-bzip2 bzip2recover">
176            <primary sortas="b-bzip2recover">bzip2recover</primary>
177          </indexterm>
178        </listitem>
179      </varlistentry>
180
181      <varlistentry id="bzless">
182        <term><command>bzless</command></term>
183        <listitem>
184          <para>Runs <command>less</command> on bzipped files</para>
185          <indexterm zone="ch-system-bzip2 bzless">
186            <primary sortas="b-bzless">bzless</primary>
187          </indexterm>
188        </listitem>
189      </varlistentry>
190
191      <varlistentry id="bzmore">
192        <term><command>bzmore</command></term>
193        <listitem>
194          <para>Runs <command>more</command> on bzipped files</para>
195          <indexterm zone="ch-system-bzip2 bzmore">
196            <primary sortas="b-bzmore">bzmore</primary>
197          </indexterm>
198        </listitem>
199      </varlistentry>
200
201      <varlistentry id="libbz2">
202        <term><filename class="libraryfile">libbz2*</filename></term>
203        <listitem>
204          <para>The library implementing lossless, block-sorting data
205          compression, using the Burrows-Wheeler algorithm</para>
206          <indexterm zone="ch-system-bzip2 libbz2">
207            <primary sortas="c-libbz2*">libbz2*</primary>
208          </indexterm>
209        </listitem>
210      </varlistentry>
211
212    </variablelist>
213
214  </sect2>
215
216</sect1>
Note: See TracBrowser for help on using the repository browser.