[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[6426122] | 7 | <!ENTITY cpio-download-http "http://ftp.gnu.org/pub/gnu/cpio/cpio-&cpio-version;.tar.bz2">
|
---|
| 8 | <!ENTITY cpio-download-ftp "ftp://ftp.gnu.org/pub/gnu/cpio/cpio-&cpio-version;.tar.bz2">
|
---|
[156b4f7] | 9 | <!ENTITY cpio-md5sum "e387abfdae3a0b9a8a5f762db653a96d">
|
---|
| 10 | <!ENTITY cpio-size "758 KB">
|
---|
[6426122] | 11 | <!ENTITY cpio-buildsize "10 MB">
|
---|
| 12 | <!ENTITY cpio-time "0.2 SBU">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[1df9017f] | 15 | <sect1 id="cpio" xreflabel="cpio-&cpio-version;">
|
---|
[35f3cb4] | 16 | <?dbhtml filename="cpio.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
[a2ae800] | 23 | <title>cpio-&cpio-version;</title>
|
---|
[35f3cb4] | 24 |
|
---|
| 25 | <indexterm zone="cpio">
|
---|
| 26 | <primary sortas="a-Cpio">Cpio</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
[4e82a189] | 29 | <sect2 role="package">
|
---|
[a2ae800] | 30 | <title>Introduction to cpio</title>
|
---|
[35f3cb4] | 31 |
|
---|
| 32 | <para>The <application>cpio</application> package contains
|
---|
| 33 | tools for archiving.</para>
|
---|
| 34 |
|
---|
| 35 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing="compact">
|
---|
| 37 | <listitem>
|
---|
| 38 | <para>Download (HTTP): <ulink url="&cpio-download-http;"/></para>
|
---|
| 39 | </listitem>
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (FTP): <ulink url="&cpio-download-ftp;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download MD5 sum: &cpio-md5sum;</para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download size: &cpio-size;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Estimated disk space required: &cpio-buildsize;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated build time: &cpio-time;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | </itemizedlist>
|
---|
| 56 |
|
---|
[156b4f7] | 57 | <!-- <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
[82941804] | 58 | <itemizedlist spacing="compact">
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>Required Patch: <ulink
|
---|
[308400f] | 61 | url="&patch-root;/cpio-&cpio-version;-upstream_fixes-1.patch"/></para>
|
---|
[82941804] | 62 | </listitem>
|
---|
[156b4f7] | 63 | </itemizedlist> -->
|
---|
[82941804] | 64 |
|
---|
[1039de3] | 65 | <para condition="html" role="usernotes">User Notes:
|
---|
| 66 | <ulink url="&blfs-wiki;/cpio"/></para>
|
---|
| 67 |
|
---|
[35f3cb4] | 68 | </sect2>
|
---|
| 69 |
|
---|
| 70 | <sect2 role="installation">
|
---|
[a2ae800] | 71 | <title>Installation of cpio</title>
|
---|
[35f3cb4] | 72 |
|
---|
[4e82a189] | 73 | <para>Install <application>cpio</application> by running the following
|
---|
[35f3cb4] | 74 | commands:</para>
|
---|
| 75 |
|
---|
[156b4f7] | 76 | <screen><userinput>./configure CPIO_MT_PROG=mt \
|
---|
[6426122] | 77 | --prefix=/usr \
|
---|
| 78 | --bindir=/bin \
|
---|
| 79 | --libexecdir=/tmp \
|
---|
| 80 | --with-rmt=/usr/sbin/rmt &&
|
---|
[35f3cb4] | 81 | make</userinput></screen>
|
---|
[6587e936] | 82 |
|
---|
[f2cae5f] | 83 | <para>If you have <xref linkend="tetex"/> installed and wish to create
|
---|
| 84 | alternate forms of the documentation, issue the any or all of the following
|
---|
| 85 | commands:</para>
|
---|
| 86 |
|
---|
| 87 | <screen><userinput>make -C doc pdf &&
|
---|
| 88 | make -C doc ps &&
|
---|
| 89 | texi2html -o doc/cpio.html doc/cpio.texi &&
|
---|
| 90 | makeinfo --plaintext -o doc/cpio.txt doc/cpio.texi</userinput></screen>
|
---|
| 91 |
|
---|
[6426122] | 92 | <para>To test the results, issue <command>make check</command></para>
|
---|
[bccbdaea] | 93 |
|
---|
[35f3cb4] | 94 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[6587e936] | 95 |
|
---|
[35f3cb4] | 96 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[0882c90] | 97 |
|
---|
[f2cae5f] | 98 | <para>If you built any of the alternate forms of documentation, install it
|
---|
| 99 | by issuing the following commands as the
|
---|
| 100 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 101 |
|
---|
| 102 | <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/cpio-&cpio-version; &&
|
---|
| 103 | install -v -m644 doc/cpio.{pdf,ps,dvi,html,txt} \
|
---|
| 104 | /usr/share/doc/cpio-&cpio-version;</userinput></screen>
|
---|
| 105 |
|
---|
[35f3cb4] | 106 | </sect2>
|
---|
[52d29f7] | 107 |
|
---|
[35f3cb4] | 108 | <sect2 role="commands">
|
---|
| 109 | <title>Command Explanations</title>
|
---|
[0882c90] | 110 |
|
---|
[4e82a189] | 111 | <para><parameter>CPIO_MT_PROG=mt</parameter>: This parameter forces the
|
---|
[35f3cb4] | 112 | building and installation of the <command>mt</command> program.</para>
|
---|
[0882c90] | 113 |
|
---|
[4e82a189] | 114 | <para><parameter>--bindir=/bin</parameter>: This parameter installs
|
---|
[5ee44e37] | 115 | <command>cpio</command> to <filename class="directory">/bin</filename>
|
---|
| 116 | instead of <filename class="directory">/usr/bin</filename> as recommended
|
---|
| 117 | by the FHS guidelines.</para>
|
---|
[0882c90] | 118 |
|
---|
[4e82a189] | 119 | <para><parameter>--libexecdir=/tmp</parameter>: This parameter is used so
|
---|
[5ee44e37] | 120 | that <filename class='directory'>/usr/libexec</filename> is not
|
---|
| 121 | created.</para>
|
---|
[0882c90] | 122 |
|
---|
[5ee44e37] | 123 | <para><parameter>--with-rmt=/usr/sbin/rmt</parameter>: This parameter
|
---|
| 124 | inhibits building the <command>rmt</command> program as it is already
|
---|
| 125 | installed by the <application>Tar</application> package in LFS.</para>
|
---|
[0882c90] | 126 |
|
---|
[35f3cb4] | 127 | </sect2>
|
---|
[52d29f7] | 128 |
|
---|
[35f3cb4] | 129 | <sect2 role="content">
|
---|
| 130 | <title>Contents</title>
|
---|
[0882c90] | 131 |
|
---|
[35f3cb4] | 132 | <segmentedlist>
|
---|
| 133 | <segtitle>Installed Programs</segtitle>
|
---|
| 134 | <segtitle>Installed Libraries</segtitle>
|
---|
| 135 | <segtitle>Installed Directories</segtitle>
|
---|
[6587e936] | 136 |
|
---|
[35f3cb4] | 137 | <seglistitem>
|
---|
| 138 | <seg>cpio and mt</seg>
|
---|
| 139 | <seg>None</seg>
|
---|
| 140 | <seg>None</seg>
|
---|
| 141 | </seglistitem>
|
---|
| 142 | </segmentedlist>
|
---|
[6587e936] | 143 |
|
---|
[35f3cb4] | 144 | <variablelist>
|
---|
| 145 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 146 | <?dbfo list-presentation="list"?>
|
---|
| 147 | <?dbhtml list-presentation="table"?>
|
---|
[6587e936] | 148 |
|
---|
[35f3cb4] | 149 | <varlistentry id="cpio-prog">
|
---|
| 150 | <term><command>cpio</command></term>
|
---|
| 151 | <listitem>
|
---|
| 152 | <para>copies files to and from archives.</para>
|
---|
| 153 | <indexterm zone="cpio cpio-prog">
|
---|
| 154 | <primary sortas="b-cpio">cpio</primary>
|
---|
| 155 | </indexterm>
|
---|
| 156 | </listitem>
|
---|
| 157 | </varlistentry>
|
---|
[6587e936] | 158 |
|
---|
[35f3cb4] | 159 | <varlistentry id="mt">
|
---|
| 160 | <term><command>mt</command></term>
|
---|
| 161 | <listitem>
|
---|
| 162 | <para>controls magnetic tape drive operations.</para>
|
---|
| 163 | <indexterm zone="cpio mt">
|
---|
| 164 | <primary sortas="b-mt">mt</primary>
|
---|
| 165 | </indexterm>
|
---|
| 166 | </listitem>
|
---|
| 167 | </varlistentry>
|
---|
[0882c90] | 168 |
|
---|
[35f3cb4] | 169 | </variablelist>
|
---|
| 170 |
|
---|
| 171 | </sect2>
|
---|
[1df9017f] | 172 |
|
---|
| 173 | </sect1>
|
---|