tar.xml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.4/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. <title>Tar-&tar-version;</title>
  10. <indexterm zone="ch-system-tar">
  11. <primary sortas="a-Tar">Tar</primary>
  12. </indexterm>
  13. <sect2 role="package">
  14. <title/>
  15. <para>The Tar package contains an archiving program.</para>
  16. <segmentedlist>
  17. <segtitle>&buildtime;</segtitle>
  18. <segtitle>&diskspace;</segtitle>
  19. <seglistitem>
  20. <seg>&tar-ch6-sbu;</seg>
  21. <seg>&tar-ch6-du;</seg>
  22. </seglistitem>
  23. </segmentedlist>
  24. </sect2>
  25. <sect2 role="installation">
  26. <title>Installation of Tar</title>
  27. <para>Apply a patch to fix some issues with the test suite when using
  28. GCC-&gcc-version;:</para>
  29. <screen><userinput>patch -Np1 -i ../&tar-gcc4_fix-patch;</userinput></screen>
  30. <para>Tar has a bug when the <parameter>-S</parameter> option is used
  31. with files larger than 4 GB. The following patch properly fixes this
  32. issue:</para>
  33. <screen><userinput>patch -Np1 -i ../&tar-sparse_fix-patch;</userinput></screen>
  34. <para>Recent versions of Tar are vulnerable to a buffer overflow from
  35. specially crafted archives. The following patch addresses this:</para>
  36. <screen><userinput>patch -Np1 -i ../&tar-security_fixes-patch;</userinput></screen>
  37. <para>Prepare Tar for compilation:</para>
  38. <screen><userinput>./configure --prefix=/usr --bindir=/bin --libexecdir=/usr/sbin</userinput></screen>
  39. <para>Compile the package:</para>
  40. <screen><userinput>make</userinput></screen>
  41. <para>To test the results, issue:
  42. <userinput>make check</userinput>.</para>
  43. <para>Install the package:</para>
  44. <screen><userinput>make install</userinput></screen>
  45. </sect2>
  46. <sect2 id="contents-tar" role="content">
  47. <title>Contents of Tar</title>
  48. <segmentedlist>
  49. <segtitle>Installed programs</segtitle>
  50. <seglistitem>
  51. <seg>rmt and tar</seg>
  52. </seglistitem>
  53. </segmentedlist>
  54. <variablelist>
  55. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  56. <?dbfo list-presentation="list"?>
  57. <?dbhtml list-presentation="table"?>
  58. <varlistentry id="rmt">
  59. <term><command>rmt</command></term>
  60. <listitem>
  61. <para>Remotely manipulates a magnetic
  62. tape drive through an interprocess communication connection</para>
  63. <indexterm zone="ch-system-tar rmt">
  64. <primary sortas="b-rmt">rmt</primary>
  65. </indexterm>
  66. </listitem>
  67. </varlistentry>
  68. <varlistentry id="tar">
  69. <term><command>tar</command></term>
  70. <listitem>
  71. <para>Creates, extracts files from, and lists the contents of archives,
  72. also known as tarballs</para>
  73. <indexterm zone="ch-system-tar tar">
  74. <primary sortas="b-tar">tar</primary>
  75. </indexterm>
  76. </listitem>
  77. </varlistentry>
  78. </variablelist>
  79. </sect2>
  80. </sect1>