tar.xml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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>0.2 SBU</seg>
  21. <seg>12.7 MB</seg>
  22. </seglistitem>
  23. </segmentedlist>
  24. <segmentedlist>
  25. <segtitle>&dependencies;</segtitle>
  26. <seglistitem>
  27. <seg>Bash, Bzip2, Binutils, Coreutils, Diffutils, GCC, Gettext,
  28. Glibc, Gzip, Grep, Make, Patch, and Sed</seg>
  29. </seglistitem>
  30. </segmentedlist>
  31. </sect2>
  32. <sect2 role="installation">
  33. <title>Installation of Tar</title>
  34. <para>Apply a patch to fix some issues with the test suite when using
  35. GCC-&gcc-version;:</para>
  36. <screen><userinput>patch -Np1 -i ../&tar-gcc4_fix-patch;</userinput></screen>
  37. <para>Tar has a bug when the <parameter>-S</parameter> option is used
  38. with files larger than 4 GB. The following patch properly fixes this
  39. issue:</para>
  40. <screen><userinput>patch -Np1 -i ../&tar-sparse_fix-patch;</userinput></screen>
  41. <para>Recent versions of tar are vulnerable to a buffer overflow from
  42. specially crafted archives. The following patch addresses this:</para>
  43. <screen><userinput>patch -Np1 -i ../&tar-security_fixes-patch;</userinput></screen>
  44. <para>Prepare Tar for compilation:</para>
  45. <screen><userinput>./configure --prefix=/usr --bindir=/bin --libexecdir=/usr/sbin</userinput></screen>
  46. <para>Compile the package:</para>
  47. <screen><userinput>make</userinput></screen>
  48. <para>To test the results, issue:
  49. <userinput>make check</userinput>.</para>
  50. <para>Install the package:</para>
  51. <screen><userinput>make install</userinput></screen>
  52. </sect2>
  53. <sect2 id="contents-tar" role="content">
  54. <title>Contents of Tar</title>
  55. <segmentedlist>
  56. <segtitle>Installed programs</segtitle>
  57. <seglistitem>
  58. <seg>rmt and tar</seg>
  59. </seglistitem>
  60. </segmentedlist>
  61. <variablelist>
  62. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  63. <?dbfo list-presentation="list"?>
  64. <?dbhtml list-presentation="table"?>
  65. <varlistentry id="rmt">
  66. <term><command>rmt</command></term>
  67. <listitem>
  68. <para>Remotely manipulates a magnetic
  69. tape drive through an interprocess communication connection</para>
  70. <indexterm zone="ch-system-tar rmt">
  71. <primary sortas="b-rmt">rmt</primary>
  72. </indexterm>
  73. </listitem>
  74. </varlistentry>
  75. <varlistentry id="tar">
  76. <term><command>tar</command></term>
  77. <listitem>
  78. <para>Creates, extracts files from, and lists the contents of archives,
  79. also known as tarballs</para>
  80. <indexterm zone="ch-system-tar tar">
  81. <primary sortas="b-tar">tar</primary>
  82. </indexterm>
  83. </listitem>
  84. </varlistentry>
  85. </variablelist>
  86. </sect2>
  87. </sect1>