[2180f912] | 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 |
|
---|
[20a27fc] | 7 | <!ENTITY pax-download-http "http://pub.allbsd.org/MirOS/dist/mir/cpio/paxmirabilis-&pax-version;.cpio.gz">
|
---|
[2180f912] | 8 | <!ENTITY pax-download-ftp " ">
|
---|
[20a27fc] | 9 | <!ENTITY pax-md5sum "51172547aa7447244ba1db5768cdcdfd">
|
---|
| 10 | <!ENTITY pax-size "152 KB">
|
---|
| 11 | <!ENTITY pax-buildsize "920 KB">
|
---|
[2180f912] | 12 | <!ENTITY pax-time "less than 0.1 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="pax" xreflabel="Pax-&pax-version;">
|
---|
| 16 | <?dbhtml filename="pax.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>Pax-&pax-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="pax">
|
---|
| 26 | <primary sortas="a-pax">pax</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Pax</title>
|
---|
| 31 |
|
---|
| 32 | <para>
|
---|
| 33 | <application>pax</application> is an archiving utility created by POSIX
|
---|
| 34 | and defined by the POSIX.1-2001 standard. Rather than sort out the
|
---|
| 35 | incompatible options that have crept up between
|
---|
| 36 | <application>tar</application> and <application>cpio</application>,
|
---|
| 37 | along with their implementations across various versions of UNIX, the
|
---|
| 38 | IEEE designed a new archive utility. The name <quote>pax</quote> is
|
---|
| 39 | an acronym for portable archive exchange. Furthermore,
|
---|
| 40 | <quote>pax</quote> means <quote>peace</quote> in Latin, so its name
|
---|
| 41 | implies that it shall create peace between the
|
---|
| 42 | <application>tar</application> and <application>cpio</application>
|
---|
| 43 | format supporters. The command invocation and command structure is
|
---|
| 44 | somewhat a unification of both <application>tar</application> and
|
---|
| 45 | <application>cpio</application>.
|
---|
| 46 | </para>
|
---|
| 47 | <para>
|
---|
| 48 | <application>pax</application> has been required to be present in LSB
|
---|
| 49 | conformant systems since LSB version 3.0.
|
---|
| 50 | </para>
|
---|
| 51 |
|
---|
[43b1dad3] | 52 | &lfs83_checked;
|
---|
[2180f912] | 53 |
|
---|
| 54 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 55 | <itemizedlist spacing="compact">
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>
|
---|
| 58 | Download (HTTP): <ulink url="&pax-download-http;"/>
|
---|
| 59 | </para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>
|
---|
| 63 | Download (FTP): <ulink url="&pax-download-ftp;"/>
|
---|
| 64 | </para>
|
---|
| 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
| 67 | <para>
|
---|
| 68 | Download MD5 sum: &pax-md5sum;
|
---|
| 69 | </para>
|
---|
| 70 | </listitem>
|
---|
| 71 | <listitem>
|
---|
| 72 | <para>
|
---|
| 73 | Download size: &pax-size;
|
---|
| 74 | </para>
|
---|
| 75 | </listitem>
|
---|
| 76 | <listitem>
|
---|
| 77 | <para>
|
---|
| 78 | Estimated disk space required: &pax-buildsize;
|
---|
| 79 | </para>
|
---|
| 80 | </listitem>
|
---|
| 81 | <listitem>
|
---|
| 82 | <para>
|
---|
| 83 | Estimated build time: &pax-time;
|
---|
| 84 | </para>
|
---|
| 85 | </listitem>
|
---|
| 86 | </itemizedlist>
|
---|
| 87 |
|
---|
[20a27fc] | 88 | <bridgehead renderas="sect3">Pax Dependencies</bridgehead>
|
---|
| 89 |
|
---|
| 90 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 91 | <para role="required">
|
---|
| 92 | <xref linkend="cpio"/></para>
|
---|
| 93 |
|
---|
[2180f912] | 94 | <para condition="html" role="usernotes">
|
---|
| 95 | User Notes: <ulink url="&blfs-wiki;/pax"/>
|
---|
| 96 | </para>
|
---|
| 97 | </sect2>
|
---|
| 98 |
|
---|
| 99 | <sect2 role="installation">
|
---|
| 100 | <title>Installation of Pax</title>
|
---|
| 101 |
|
---|
| 102 | <para>
|
---|
| 103 | This package has somewhat unusual installation instructions, because
|
---|
| 104 | <application>pax</application> is part of a larger set of utilities
|
---|
[20a27fc] | 105 | included in the same tarball. Issue the following commands to
|
---|
| 106 | unpack and build the application:
|
---|
[2180f912] | 107 | </para>
|
---|
| 108 |
|
---|
[20a27fc] | 109 | <screen><userinput>gzip -dck paxmirabilis-20161104.cpio.gz | cpio -mid &&
|
---|
| 110 | cd pax &&
|
---|
| 111 |
|
---|
| 112 | sed -i '/stat.h/a #include <sys/sysmacros.h>' cpio.c gen_subs.c tar.c &&
|
---|
[96ed758] | 113 |
|
---|
[20a27fc] | 114 | cc -O2 -DLONG_OFF_T -o pax -DPAX_SAFE_PATH=\"/bin\" *.c</userinput></screen>
|
---|
[2180f912] | 115 |
|
---|
| 116 | <para>
|
---|
| 117 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 118 | </para>
|
---|
| 119 |
|
---|
[20a27fc] | 120 | <screen role="root"><userinput>install -v pax /bin &&
|
---|
| 121 | install -v pax.1 /usr/share/man/man1</userinput></screen>
|
---|
[2180f912] | 122 | </sect2>
|
---|
| 123 |
|
---|
| 124 | <sect2 role="commands">
|
---|
| 125 | <title>Command Explanations</title>
|
---|
| 126 |
|
---|
| 127 | <para>
|
---|
[20a27fc] | 128 | <command>sed ...</command>: This eliminates some irritating warnings.
|
---|
[2180f912] | 129 | </para>
|
---|
| 130 |
|
---|
| 131 | </sect2>
|
---|
| 132 |
|
---|
| 133 | <sect2 role="content">
|
---|
| 134 | <title>Contents</title>
|
---|
| 135 |
|
---|
| 136 | <segmentedlist>
|
---|
| 137 | <segtitle>Installed Program</segtitle>
|
---|
| 138 |
|
---|
| 139 | <seglistitem>
|
---|
| 140 | <seg>
|
---|
[e6fb085] | 141 | pax
|
---|
[2180f912] | 142 | </seg>
|
---|
| 143 | </seglistitem>
|
---|
| 144 | </segmentedlist>
|
---|
| 145 |
|
---|
| 146 | <variablelist>
|
---|
| 147 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 148 | <?dbfo list-presentation="list"?>
|
---|
| 149 | <?dbhtml list-presentation="table"?>
|
---|
| 150 |
|
---|
| 151 | <varlistentry id="pax-prog">
|
---|
| 152 | <term><command>pax</command></term>
|
---|
| 153 | <listitem>
|
---|
| 154 | <para>
|
---|
| 155 | copies files to and from archives in several formats.
|
---|
| 156 | </para>
|
---|
| 157 | <indexterm zone="pax pax-prog">
|
---|
| 158 | <primary sortas="b-pax">pax</primary>
|
---|
| 159 | </indexterm>
|
---|
| 160 | </listitem>
|
---|
| 161 | </varlistentry>
|
---|
| 162 | </variablelist>
|
---|
| 163 | </sect2>
|
---|
| 164 | </sect1>
|
---|