⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bzip2.html

📁 CLFS(Cross-Compiled Linux From Scratch)的文档 Version CLFS-SVN-20060417
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml">  <head>    <meta http-equiv="Content-Type" content=    "application/xhtml+xml; charset=iso-8859-1" />    <title>      10.36.&nbsp;Bzip2-1.0.3    </title>    <link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" />    <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" />    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=    "text/css" media="print" />  </head>  <body id="lfs" class="CLFS-SVN-20060417-MIPS">    <div class="navheader">      <div class="headertitles">        <h4>          Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS        </h4>        <h3>          Chapter&nbsp;10.&nbsp;Installing Basic System Software        </h3>      </div>      <ul class="headerlinks">        <li class="prev">          <a accesskey="p" href="libtool.html" title=          "Libtool-1.5.22">Prev</a>          <p>            Libtool-1.5.22          </p>        </li>        <li class="next">          <a accesskey="n" href="diffutils.html" title=          "Diffutils-2.8.7">Next</a>          <p>            Diffutils-2.8.7          </p>        </li>        <li class="up">          <a accesskey="u" href="chapter.html" title=          "Chapter&nbsp;10.&nbsp;Installing Basic System Software">Up</a>.        </li>        <li class="home">          <a accesskey="h" href="../index.html" title=          "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS">          Home</a>        </li>      </ul>    </div>    <div class="wrap" lang="en" xml:lang="en">      <div class="titlepage">        <h1 class="sect1">          10.36. Bzip2-1.0.3        </h1>      </div>      <div class="package" lang="en" xml:lang="en">        <p>          The Bzip2 package contains programs for compressing and          decompressing files. Compressing text files with          <span><strong class="command">bzip2</strong></span> yields a much          better compression percentage than with the traditional          <span><strong class="command">gzip</strong></span>.        </p>        <div class="segmentedlist">          <div class="seglistitem">            <div class="seg">              <strong><span class="segtitle">Installation depends              on:</span></strong> <span class="seg">Bash, Binutils,              Coreutils, Diffutils, GCC, Glibc, Make, and Patch</span>            </div>          </div>        </div>      </div>      <div class="installation" lang="en" xml:lang="en">        <div class="titlepage">          <h2 class="sect2">            10.36.1. Installation of Bzip2          </h2>        </div>        <p>          Apply a patch to install the documentation for this package:        </p>        <pre class="userinput"><kbd class="command">patch -Np1 -i ../bzip2-1.0.3-install_docs-1.patch</kbd></pre>        <p>          The <span><strong class="command">bzgrep</strong></span> command          does not escape '|' and '&amp;' in filenames passed to it. This          allows arbitrary commands to be executed with the privileges of the          user running <span><strong class="command">bzgrep</strong></span>.          Apply the following patch to address this:        </p>        <pre class="userinput"><kbd class="command">patch -Np1 -i ../bzip2-1.0.3-bzgrep_security-1.patch</kbd></pre>        <p>          The <span><strong class="command">bzdiff</strong></span> script          depends on tempfile. We remove that dependency with this patch:        </p>        <pre class="userinput"><kbd class="command">patch -Np1 -i ../bzip2-1.0.3-remove_tempfile-1.patch</kbd></pre>        <p>          The Bzip2 package does not contain a <span><strong class=          "command">configure</strong></span> script. Compile it with:        </p>        <pre class="userinput"><kbd class="command">make -f Makefile-libbz2_somake clean</kbd></pre>        <p>          The <em class="parameter"><tt>-f</tt></em> flag will cause Bzip2 to          be built using a different <tt class="filename">Makefile</tt> file,          in this case the <tt class="filename">Makefile-libbz2_so</tt> file,          which creates a dynamic <tt class="filename">libbz2.so</tt> library          and links the Bzip2 utilities against it.        </p>        <p>          Recompile the package using a non-shared library and test it.        </p>        <pre class="userinput"><kbd class="command">make</kbd></pre>        <p>          If reinstalling Bzip2, perform <strong class="userinput"><tt>rm -vf          /usr/bin/bz*</tt></strong> first, otherwise the following          <span><strong class="command">make install</strong></span> will          fail.        </p>        <p>          Install the programs:        </p>        <pre class="userinput"><kbd class="command">make install</kbd></pre>        <p>          Install the shared <span><strong class=          "command">bzip2</strong></span> binary into the <tt class=          "filename">/bin</tt> directory, make some necessary symbolic links,          and clean up:        </p>        <pre class="userinput"><kbd class="command">cp -v bzip2-shared /bin/bzip2cp -av libbz2.so* /libln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.sorm -v /usr/bin/{bunzip2,bzcat,bzip2}ln -sv bzip2 /bin/bunzip2ln -sv bzip2 /bin/bzcat</kbd></pre>      </div>      <div class="content" lang="en" xml:lang="en">        <div class="titlepage">          <a id="contents-bzip2" name="contents-bzip2"></a>          <h2 class="sect2">            10.36.2. Contents of Bzip2          </h2>        </div>        <div class="segmentedlist">          <div class="seglistitem">            <div class="seg">              <strong><span class="segtitle">Installed              programs:</span></strong> <span class="seg">bunzip2 (link to              bzip2), bzcat (link to bzip2), bzcmp, bzdiff, bzegrep, bzfgrep,              bzgrep, bzip2, bzip2recover, bzless, and bzmore</span>            </div>            <div class="seg">              <strong><span class="segtitle">Installed              libraries:</span></strong> <span class="seg">libbz2.a,              libbz2.so (link to libbz2.so.1.0), libbz2.so.1.0 (link to              libbz2.so.1.0.3), and libbz2.so.1.0.3</span>            </div>          </div>        </div>        <div class="variablelist">          <h3>            <a id="id3680590" name="id3680590"></a>Short Descriptions          </h3>          <table border="0">            <col align="left" valign="top" />            <tbody>              <tr>                <td>                  <a id="bunzip2" name="bunzip2"></a><span class=                  "term"><span><strong class=                  "command">bunzip2</strong></span></span>                </td>                <td>                  <p>                    Decompresses bzipped files                  </p>                </td>              </tr>              <tr>                <td>                  <a id="bzcat" name="bzcat"></a><span class=                  "term"><span><strong class=                  "command">bzcat</strong></span></span>                </td>                <td>                  <p>                    Decompresses to standard output                  </p>                </td>              </tr>              <tr>                <td>                  <a id="bzcmp" name="bzcmp"></a><span class=                  "term"><span><strong class=                  "command">bzcmp</strong></span></span>                </td>                <td>                  <p>                    Runs <span><strong class="command">cmp</strong></span> on                    bzipped files                  </p>                </td>              </tr>              <tr>                <td>                  <a id="bzdiff" name="bzdiff"></a><span class=                  "term"><span><strong class=                  "command">bzdiff</strong></span></span>                </td>                <td>                  <p>                    Runs <span><strong class="command">diff</strong></span>                    on bzipped files                  </p>                </td>              </tr>              <tr>                <td>                  <a id="bzgrep" name="bzgrep"></a><span class=                  "term"><span><strong class=                  "command">bzgrep</strong></span></span>                </td>                <td>                  <p>                    Runs <span><strong class="command">grep</strong></span>                    on bzipped files                  </p>                </td>              </tr>              <tr>                <td>                  <a id="bzegrep" name="bzegrep"></a><span class=                  "term"><span><strong class=                  "command">bzegrep</strong></span></span>                </td>                <td>                  <p>                    Runs <span><strong class="command">egrep</strong></span>                    on bzipped files                  </p>                </td>              </tr>              <tr>                <td>                  <a id="bzfgrep" name="bzfgrep"></a><span class=                  "term"><span><strong class=                  "command">bzfgrep</strong></span></span>                </td>                <td>                  <p>                    Runs <span><strong class="command">fgrep</strong></span>                    on bzipped files                  </p>                </td>              </tr>              <tr>                <td>                  <a id="bzip2" name="bzip2"></a><span class=                  "term"><span><strong class=                  "command">bzip2</strong></span></span>                </td>                <td>                  <p>                    Compresses files using the Burrows-Wheeler block sorting                    text compression algorithm with Huffman coding; the                    compression rate is better than that achieved by more                    conventional compressors using &ldquo;<span class=                    "quote">Lempel-Ziv</span>&rdquo; algorithms, like                    <span><strong class="command">gzip</strong></span>                  </p>                </td>              </tr>              <tr>                <td>                  <a id="bzip2recover" name="bzip2recover"></a><span class=                  "term"><span><strong class=                  "command">bzip2recover</strong></span></span>                </td>                <td>                  <p>                    Tries to recover data from damaged bzipped files                  </p>                </td>              </tr>              <tr>                <td>                  <a id="bzless" name="bzless"></a><span class=                  "term"><span><strong class=                  "command">bzless</strong></span></span>                </td>                <td>                  <p>                    Runs <span><strong class="command">less</strong></span>                    on bzipped files                  </p>                </td>              </tr>              <tr>                <td>                  <a id="bzmore" name="bzmore"></a><span class=                  "term"><span><strong class=                  "command">bzmore</strong></span></span>                </td>                <td>                  <p>                    Runs <span><strong class="command">more</strong></span>                    on bzipped files                  </p>                </td>              </tr>              <tr>                <td>                  <a id="libbz2" name="libbz2"></a><span class=                  "term"><tt class="filename">libbz2*</tt></span>                </td>                <td>                  <p>                    The library implementing lossless, block-sorting data                    compression, using the Burrows-Wheeler algorithm                  </p>                </td>              </tr>            </tbody>          </table>        </div>      </div>    </div>    <div class="navfooter">      <ul>        <li class="prev">          <a accesskey="p" href="libtool.html" title=          "Libtool-1.5.22">Prev</a>          <p>            Libtool-1.5.22          </p>        </li>        <li class="next">          <a accesskey="n" href="diffutils.html" title=          "Diffutils-2.8.7">Next</a>          <p>            Diffutils-2.8.7          </p>        </li>        <li class="up">          <a accesskey="u" href="chapter.html" title=          "Chapter&nbsp;10.&nbsp;Installing Basic System Software">Up</a>.        </li>        <li class="home">          <a accesskey="h" href="../index.html" title=          "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS">          Home</a>.        </li>      </ul>    </div>  </body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -