1
0

tar.xml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. <para>准备编译 Tar:</para>
  33. <screen><userinput remap="configure">FORCE_UNSAFE_CONFIGURE=1 \
  34. ./configure --prefix=/usr \
  35. --bindir=/bin</userinput></screen>
  36. <variablelist>
  37. <title>配置选项的含义:</title>
  38. <varlistentry>
  39. <term><envar>FORCE_UNSAFE_CONFIGURE=1</envar></term>
  40. <listitem>
  41. <para>该选项强制以 root 用户身份运行 <function>mknod</function>
  42. 测试。一般认为以 root 用户身份运行该测试是危险的,
  43. 不过由于是在仅仅部分构建好的系统上运行测试,
  44. 可以覆盖掉这个安全措施。
  45. </para>
  46. </listitem>
  47. </varlistentry>
  48. </variablelist>
  49. <para>编译该软件包:</para>
  50. <screen><userinput remap="make">make</userinput></screen>
  51. <para>执行以下命令测试编译结果(需要约 3 SBU):</para>
  52. <screen><userinput remap="test">make check</userinput></screen>
  53. <!-- Seems to pass for version 1.31. Keeping as a comment just in case...
  54. <para>已知一项名为 link mismatch 的测试可能失败。</para>
  55. -->
  56. <para>安装该软件包:</para>
  57. <screen><userinput remap="install">make install
  58. make -C doc install-html docdir=/usr/share/doc/tar-&tar-version;</userinput></screen>
  59. </sect2>
  60. <sect2 id="contents-tar" role="content">
  61. <title>Tar 的内容</title>
  62. <segmentedlist>
  63. <segtitle>安装的程序</segtitle>
  64. <segtitle>安装的目录</segtitle>
  65. <seglistitem>
  66. <seg>tar</seg>
  67. <seg>/usr/share/doc/tar-&tar-version;</seg>
  68. </seglistitem>
  69. </segmentedlist>
  70. <variablelist>
  71. <bridgehead renderas="sect3">简要描述</bridgehead>
  72. <?dbfo list-presentation="list"?>
  73. <?dbhtml list-presentation="table"?>
  74. <varlistentry id="tar">
  75. <term><command>tar</command></term>
  76. <listitem>
  77. <para>创建称为 tarball 的档案文件,从档案文件中提取文件,
  78. 或列出档案文件内容</para>
  79. <indexterm zone="ch-system-tar tar">
  80. <primary sortas="b-tar">tar</primary>
  81. </indexterm>
  82. </listitem>
  83. </varlistentry>
  84. </variablelist>
  85. </sect2>
  86. </sect1>