tar.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?xml version="1.0" encoding="UTF-8"?>
  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. <sect1 id="ch-system-tar" role="wrap">
  8. <?dbhtml filename="tar.html"?>
  9. <sect1info condition="script">
  10. <productname>tar</productname>
  11. <productnumber>&tar-version;</productnumber>
  12. <address>&tar-url;</address>
  13. </sect1info>
  14. <title>Tar-&tar-version;</title>
  15. <indexterm zone="ch-system-tar">
  16. <primary sortas="a-Tar">Tar</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>Tar 软件包包含一个归档程序。</para>
  21. <segmentedlist>
  22. <segtitle>&buildtime;</segtitle>
  23. <segtitle>&diskspace;</segtitle>
  24. <seglistitem>
  25. <seg>&tar-ch6-sbu;</seg>
  26. <seg>&tar-ch6-du;</seg>
  27. </seglistitem>
  28. </segmentedlist>
  29. </sect2>
  30. <sect2 role="installation">
  31. <title>安装 Tar</title>
  32. <!--
  33. <para>Add a program that generates a man page for tar from the source code:</para>
  34. <screen><userinput remap="pre">patch -Np1 -i ../&tar-manpage-patch;</userinput></screen>
  35. -->
  36. <para>准备安装 Tar:</para>
  37. <screen><userinput remap="configure">FORCE_UNSAFE_CONFIGURE=1 \
  38. ./configure --prefix=/usr \
  39. --bindir=/bin</userinput></screen>
  40. <variablelist>
  41. <title>配置选项的含义:</title>
  42. <varlistentry>
  43. <term><envar>FORCE_UNSAFE_CONFIGURE=1</envar></term>
  44. <listitem>
  45. <para>该选项强制以 root 用户身份运行 <function>mknod</function>
  46. 测试。一般认为以 root 用户身份运行该测试是危险的,
  47. 不过由于是在仅仅部分构建好的系统上运行测试,
  48. 可以覆盖掉这个安全措施。
  49. </para>
  50. </listitem>
  51. </varlistentry>
  52. </variablelist>
  53. <para>编译该软件包:</para>
  54. <screen><userinput remap="make">make</userinput></screen>
  55. <para>执行以下命令测试编译结果(需要约 3 SBU):</para>
  56. <screen><userinput remap="test">make check</userinput></screen>
  57. <para>已知一项名为 link mismatch 的测试可能失败。</para>
  58. <para>安装该软件包:</para>
  59. <screen><userinput remap="install">make install
  60. make -C doc install-html docdir=/usr/share/doc/tar-&tar-version;</userinput></screen>
  61. </sect2>
  62. <sect2 id="contents-tar" role="content">
  63. <title>Tar 的内容</title>
  64. <segmentedlist>
  65. <segtitle>安装的程序</segtitle>
  66. <segtitle>安装的目录</segtitle>
  67. <seglistitem>
  68. <seg>tar</seg>
  69. <seg>/usr/share/doc/tar-&tar-version;</seg>
  70. </seglistitem>
  71. </segmentedlist>
  72. <variablelist>
  73. <bridgehead renderas="sect3">简要描述</bridgehead>
  74. <?dbfo list-presentation="list"?>
  75. <?dbhtml list-presentation="table"?>
  76. <varlistentry id="tar">
  77. <term><command>tar</command></term>
  78. <listitem>
  79. <para>创建称为 tarball 的档案文件,从档案文件中提取文件,
  80. 或列出档案文件内容</para>
  81. <indexterm zone="ch-system-tar tar">
  82. <primary sortas="b-tar">tar</primary>
  83. </indexterm>
  84. </listitem>
  85. </varlistentry>
  86. </variablelist>
  87. </sect2>
  88. </sect1>