tar.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. <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>The Tar package contains an archiving program.</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>Installation of 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>Prepare Tar for compilation:</para>
  37. <screen><userinput remap="configure">FORCE_UNSAFE_CONFIGURE=1 \
  38. ./configure --prefix=/usr \
  39. --bindir=/bin</userinput></screen>
  40. <variablelist>
  41. <title>The meaning of the configure options:</title>
  42. <varlistentry>
  43. <term><envar>FORCE_UNSAFE_CONFIGURE=1</envar></term>
  44. <listitem>
  45. <para>This forces the test for <function>mknod</function> to be run
  46. as root. It is generally considered dangerous to run this test as
  47. the root user, but as it is being run on a system that has only been
  48. partially built, overriding it is OK.</para>
  49. </listitem>
  50. </varlistentry>
  51. </variablelist>
  52. <para>Compile the package:</para>
  53. <screen><userinput remap="make">make</userinput></screen>
  54. <para>To test the results (about 1 SBU), issue:</para>
  55. <screen><userinput remap="test">make check</userinput></screen>
  56. <para>Install the package:</para>
  57. <screen><userinput remap="install">make install
  58. make -C doc install-html docdir=/usr/share/doc/tar-&tar-version;</userinput></screen>
  59. <!--
  60. <para>Finally, generate the man page and place it in the proper location:</para>
  61. <screen><userinput remap="install">perl tarman &gt; /usr/share/man/man1/tar.1</userinput></screen>
  62. -->
  63. </sect2>
  64. <sect2 id="contents-tar" role="content">
  65. <title>Contents of Tar</title>
  66. <segmentedlist>
  67. <segtitle>Installed programs</segtitle>
  68. <segtitle>Installed directory</segtitle>
  69. <seglistitem>
  70. <seg>rmt and tar</seg>
  71. <seg>/usr/share/doc/tar-&tar-version;</seg>
  72. </seglistitem>
  73. </segmentedlist>
  74. <variablelist>
  75. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  76. <?dbfo list-presentation="list"?>
  77. <?dbhtml list-presentation="table"?>
  78. <varlistentry id="rmt">
  79. <term><command>rmt</command></term>
  80. <listitem>
  81. <para>Remotely manipulates a magnetic
  82. tape drive through an interprocess communication connection</para>
  83. <indexterm zone="ch-system-tar rmt">
  84. <primary sortas="b-rmt">rmt</primary>
  85. </indexterm>
  86. </listitem>
  87. </varlistentry>
  88. <varlistentry id="tar">
  89. <term><command>tar</command></term>
  90. <listitem>
  91. <para>Creates, extracts files from, and lists the contents of archives,
  92. also known as tarballs</para>
  93. <indexterm zone="ch-system-tar tar">
  94. <primary sortas="b-tar">tar</primary>
  95. </indexterm>
  96. </listitem>
  97. </varlistentry>
  98. </variablelist>
  99. </sect2>
  100. </sect1>