2004-05-03 11:59:46 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2006-02-10 19:05:30 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
2004-05-03 11:59:46 +01:00
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2006-02-10 19:05:30 +00:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<sect1 id="ch-system-tar" role="wrap">
|
2006-02-10 19:05:30 +00:00
|
|
|
<?dbhtml filename="tar.html"?>
|
|
|
|
|
|
|
|
<title>Tar-&tar-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="ch-system-tar">
|
|
|
|
<primary sortas="a-Tar">Tar</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title/>
|
|
|
|
|
|
|
|
<para>The Tar package contains an archiving program.</para>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
|
|
<segtitle>&diskspace;</segtitle>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<seglistitem>
|
|
|
|
<seg>0.2 SBU</seg>
|
|
|
|
<seg>12.7 MB</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
</sect2>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Tar</title>
|
|
|
|
|
|
|
|
<para>Apply a patch to fix some issues with the test suite when using
|
|
|
|
GCC-&gcc-version;:</para>
|
2005-09-09 21:34:44 +01:00
|
|
|
|
|
|
|
<screen><userinput>patch -Np1 -i ../&tar-gcc4_fix-patch;</userinput></screen>
|
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<para>Tar has a bug when the <parameter>-S</parameter> option is used
|
|
|
|
with files larger than 4 GB. The following patch properly fixes this
|
|
|
|
issue:</para>
|
2005-03-20 04:58:47 +00:00
|
|
|
|
2005-05-23 21:07:49 +01:00
|
|
|
<screen><userinput>patch -Np1 -i ../&tar-sparse_fix-patch;</userinput></screen>
|
2005-03-20 04:58:47 +00:00
|
|
|
|
2006-04-20 19:25:32 +01:00
|
|
|
<para>Recent versions of Tar are vulnerable to a buffer overflow from
|
2006-04-14 20:23:22 +01:00
|
|
|
specially crafted archives. The following patch addresses this:</para>
|
|
|
|
|
|
|
|
<screen><userinput>patch -Np1 -i ../&tar-security_fixes-patch;</userinput></screen>
|
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<para>Prepare Tar for compilation:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-02-09 22:44:26 +00:00
|
|
|
<screen><userinput>./configure --prefix=/usr --bindir=/bin --libexecdir=/usr/sbin</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<para>Compile the package:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>make</userinput></screen>
|
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<para>To test the results, issue:
|
|
|
|
<userinput>make check</userinput>.</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<para>Install the package:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>make install</userinput></screen>
|
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
</sect2>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<sect2 id="contents-tar" role="content">
|
|
|
|
<title>Contents of Tar</title>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed programs</segtitle>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<seglistitem>
|
|
|
|
<seg>rmt and tar</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<varlistentry id="rmt">
|
|
|
|
<term><command>rmt</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Remotely manipulates a magnetic
|
|
|
|
tape drive through an interprocess communication connection</para>
|
|
|
|
<indexterm zone="ch-system-tar rmt">
|
|
|
|
<primary sortas="b-rmt">rmt</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<varlistentry id="tar">
|
|
|
|
<term><command>tar</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Creates, extracts files from, and lists the contents of archives,
|
|
|
|
also known as tarballs</para>
|
|
|
|
<indexterm zone="ch-system-tar tar">
|
|
|
|
<primary sortas="b-tar">tar</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
</variablelist>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|