tar.xml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. <para>Again, fix a bug that was inserted into the latest code release:</para>
  33. <screen><userinput remap="pre">sed -i /SIGPIPE/d src/tar.c</userinput></screen>
  34. <para>Also, fix a bug that causes a buffer overflow when creating a new
  35. tar file. This fix is needed when building with gcc-4.5 and later.</para>
  36. <screen><userinput remap="pre">patch -Np1 -i ../&tar-overflow-patch;</userinput></screen>
  37. <para>Prepare Tar for compilation:</para>
  38. <screen><userinput remap="configure">./configure --prefix=/usr --bindir=/bin --libexecdir=/usr/sbin</userinput></screen>
  39. <para>Compile the package:</para>
  40. <screen><userinput remap="make">make</userinput></screen>
  41. <para>To test the results (about 1 SBU), issue:</para>
  42. <screen><userinput remap="test">sed -i '35 i\
  43. AT_UNPRIVILEGED_PREREQ' tests/remfiles01.at
  44. make check</userinput></screen>
  45. <para>Install the package:</para>
  46. <screen><userinput remap="install">make install</userinput></screen>
  47. </sect2>
  48. <sect2 id="contents-tar" role="content">
  49. <title>Contents of Tar</title>
  50. <segmentedlist>
  51. <segtitle>Installed programs</segtitle>
  52. <seglistitem>
  53. <seg>rmt and tar</seg>
  54. </seglistitem>
  55. </segmentedlist>
  56. <variablelist>
  57. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  58. <?dbfo list-presentation="list"?>
  59. <?dbhtml list-presentation="table"?>
  60. <varlistentry id="rmt">
  61. <term><command>rmt</command></term>
  62. <listitem>
  63. <para>Remotely manipulates a magnetic
  64. tape drive through an interprocess communication connection</para>
  65. <indexterm zone="ch-system-tar rmt">
  66. <primary sortas="b-rmt">rmt</primary>
  67. </indexterm>
  68. </listitem>
  69. </varlistentry>
  70. <varlistentry id="tar">
  71. <term><command>tar</command></term>
  72. <listitem>
  73. <para>Creates, extracts files from, and lists the contents of archives,
  74. also known as tarballs</para>
  75. <indexterm zone="ch-system-tar tar">
  76. <primary sortas="b-tar">tar</primary>
  77. </indexterm>
  78. </listitem>
  79. </varlistentry>
  80. </variablelist>
  81. </sect2>
  82. </sect1>