[57f7cfa] | 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 |
|
---|
[5b38e37] | 7 | <!ENTITY libarchive-download-http "http://www.libarchive.org/downloads/libarchive-&libarchive-version;.tar.gz">
|
---|
[57f7cfa] | 8 | <!ENTITY libarchive-download-ftp " ">
|
---|
[5b38e37] | 9 | <!ENTITY libarchive-md5sum "efad5a503f66329bb9d2f4308b5de98a">
|
---|
| 10 | <!ENTITY libarchive-size "4.4 MB">
|
---|
| 11 | <!ENTITY libarchive-buildsize "60 MB">
|
---|
[40a4d44] | 12 | <!ENTITY libarchive-time "0.5 SBU">
|
---|
[57f7cfa] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="libarchive" xreflabel="libarchive-&libarchive-version;">
|
---|
| 16 | <?dbhtml filename="libarchive.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>libarchive-&libarchive-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="libarchive">
|
---|
| 26 | <primary sortas="a-libarchive">libarchive</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to libarchive</title>
|
---|
| 31 |
|
---|
[5b38e37] | 32 | <para>
|
---|
| 33 | The <application>libarchive</application> library provides a single
|
---|
| 34 | interface for reading/writing various compression formats.
|
---|
| 35 | </para>
|
---|
[57f7cfa] | 36 |
|
---|
[81bd261] | 37 | &lfs76_checked;
|
---|
[57f7cfa] | 38 |
|
---|
| 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
[5b38e37] | 42 | <para>
|
---|
[56605b9] | 43 | Download (HTTP): <ulink url="&libarchive-download-http;"/>
|
---|
| 44 | </para>
|
---|
[57f7cfa] | 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
[5b38e37] | 47 | <para>
|
---|
| 48 | Download (FTP): <ulink url="&libarchive-download-ftp;"/>
|
---|
| 49 | </para>
|
---|
[57f7cfa] | 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
[5b38e37] | 52 | <para>
|
---|
| 53 | Download MD5 sum: &libarchive-md5sum;
|
---|
| 54 | </para>
|
---|
[57f7cfa] | 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
[5b38e37] | 57 | <para>
|
---|
| 58 | Download size: &libarchive-size;
|
---|
| 59 | </para>
|
---|
[57f7cfa] | 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[5b38e37] | 62 | <para>
|
---|
| 63 | Estimated disk space required: &libarchive-buildsize;
|
---|
| 64 | </para>
|
---|
[57f7cfa] | 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
[5b38e37] | 67 | <para>
|
---|
| 68 | Estimated build time: &libarchive-time;
|
---|
| 69 | </para>
|
---|
[57f7cfa] | 70 | </listitem>
|
---|
| 71 | </itemizedlist>
|
---|
| 72 |
|
---|
| 73 | <bridgehead renderas="sect3">libarchive Dependencies</bridgehead>
|
---|
| 74 |
|
---|
[af822af] | 75 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 76 | <para role="optional">
|
---|
[56605b9] | 77 | <xref linkend="libxml2"/>,
|
---|
[652b18b] | 78 | <xref linkend="lzo"/>, and
|
---|
[9efe5ae3] | 79 | <xref linkend="nettle"/> or
|
---|
[5b38e37] | 80 | <xref linkend="openssl"/>
|
---|
[57f7cfa] | 81 | </para>
|
---|
| 82 |
|
---|
| 83 | <para condition="html" role="usernotes">User Notes:
|
---|
[5b38e37] | 84 | <ulink url="&blfs-wiki;/libarchive"/>
|
---|
| 85 | </para>
|
---|
[57f7cfa] | 86 | </sect2>
|
---|
| 87 |
|
---|
| 88 | <sect2 role="installation">
|
---|
| 89 | <title>Installation of libarchive</title>
|
---|
| 90 |
|
---|
[5b38e37] | 91 | <para>
|
---|
| 92 | Install <application>libarchive</application> by running the following
|
---|
| 93 | commands:
|
---|
| 94 | </para>
|
---|
[57f7cfa] | 95 |
|
---|
[5b38e37] | 96 | <screen><userinput>./configure --prefix=/usr --disable-static &&
|
---|
[57f7cfa] | 97 | make</userinput></screen>
|
---|
| 98 |
|
---|
[5b38e37] | 99 | <para>
|
---|
[dfff8213] | 100 | To test the results, issue: <command>make check</command>.
|
---|
[5b38e37] | 101 | </para>
|
---|
[b88be39] | 102 |
|
---|
[5b38e37] | 103 | <para>
|
---|
| 104 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 105 | </para>
|
---|
[57f7cfa] | 106 |
|
---|
| 107 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 108 |
|
---|
[40a4d44] | 109 | </sect2>
|
---|
[0d7900a] | 110 |
|
---|
[5b38e37] | 111 | <sect2 role="commands">
|
---|
[40a4d44] | 112 | <title>Command Explanations</title>
|
---|
| 113 |
|
---|
[5b38e37] | 114 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 115 | href="../../xincludes/static-libraries.xml"/>
|
---|
[40a4d44] | 116 |
|
---|
[9efe5ae3] | 117 | <para>
|
---|
| 118 | <option>--without-xml2</option>: This switch sets expat for xar archive
|
---|
| 119 | format support instead of preferred libxml2 if both packages are installed.
|
---|
| 120 | </para>
|
---|
| 121 |
|
---|
| 122 | <para>
|
---|
| 123 | <option>--without-nettle</option>: This switch sets OpenSSL for crypto
|
---|
| 124 | support instead of preferred Nettle if both packages are installed.
|
---|
| 125 | </para>
|
---|
| 126 |
|
---|
[57f7cfa] | 127 | </sect2>
|
---|
| 128 |
|
---|
| 129 | <sect2 role="content">
|
---|
| 130 | <title>Contents</title>
|
---|
| 131 |
|
---|
| 132 | <segmentedlist>
|
---|
[fd27868] | 133 | <segtitle>Installed Programs</segtitle>
|
---|
[40a4d44] | 134 | <segtitle>Installed Libraries</segtitle>
|
---|
[fd27868] | 135 | <segtitle>Installed Directories</segtitle>
|
---|
[57f7cfa] | 136 |
|
---|
| 137 | <seglistitem>
|
---|
[5b38e37] | 138 | <seg>
|
---|
| 139 | bsdcpio and bsdtar
|
---|
| 140 | </seg>
|
---|
| 141 | <seg>
|
---|
| 142 | libarchive.so
|
---|
| 143 | </seg>
|
---|
| 144 | <seg>
|
---|
| 145 | None
|
---|
| 146 | </seg>
|
---|
[57f7cfa] | 147 | </seglistitem>
|
---|
| 148 | </segmentedlist>
|
---|
| 149 |
|
---|
| 150 | <variablelist>
|
---|
| 151 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 152 | <?dbfo list-presentation="list"?>
|
---|
| 153 | <?dbhtml list-presentation="table"?>
|
---|
| 154 |
|
---|
| 155 | <varlistentry id="bsdcpio">
|
---|
| 156 | <term><command>bsdcpio</command></term>
|
---|
| 157 | <listitem>
|
---|
[5b38e37] | 158 | <para>
|
---|
| 159 | is a tool similar to <command>cpio</command>.
|
---|
| 160 | </para>
|
---|
[57f7cfa] | 161 | <indexterm zone="libarchive bsdcpio">
|
---|
| 162 | <primary sortas="b-bsdcpio">bsdcpio</primary>
|
---|
| 163 | </indexterm>
|
---|
| 164 | </listitem>
|
---|
| 165 | </varlistentry>
|
---|
| 166 |
|
---|
[40a4d44] | 167 | <varlistentry id="bsdtar">
|
---|
| 168 | <term><command>bsdtar</command></term>
|
---|
| 169 | <listitem>
|
---|
[5b38e37] | 170 | <para>
|
---|
| 171 | is a tool similar to GNU <command>tar</command>.
|
---|
| 172 | </para>
|
---|
[40a4d44] | 173 | <indexterm zone="libarchive bsdtar">
|
---|
| 174 | <primary sortas="b-bsdtar">bsdtar</primary>
|
---|
| 175 | </indexterm>
|
---|
| 176 | </listitem>
|
---|
| 177 | </varlistentry>
|
---|
[0d7900a] | 178 |
|
---|
[5b38e37] | 179 | <varlistentry id="libarchive-lib">
|
---|
| 180 | <term><filename class="libraryfile">libarchive.so</filename></term>
|
---|
| 181 | <listitem>
|
---|
| 182 | <para>
|
---|
| 183 | is a library that can create and read several streaming
|
---|
| 184 | archive formats.
|
---|
| 185 | </para>
|
---|
| 186 | <indexterm zone="libarchive libarchive-lib">
|
---|
| 187 | <primary sortas="c-libarchive">libarchive.so</primary>
|
---|
| 188 | </indexterm>
|
---|
| 189 | </listitem>
|
---|
| 190 | </varlistentry>
|
---|
| 191 |
|
---|
[57f7cfa] | 192 | </variablelist>
|
---|
| 193 |
|
---|
| 194 | </sect2>
|
---|
| 195 |
|
---|
| 196 | </sect1>
|
---|