[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 " ">
|
---|
[d7bee48] | 9 | <!ENTITY libarchive-md5sum "596210b5a9c2ff74a0f7ca34838d655f">
|
---|
| 10 | <!ENTITY libarchive-size "5.2 MB">
|
---|
[5b38e37] | 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 |
|
---|
[98c91f4c] | 37 | &lfs79_checked;&gcc6_checked;
|
---|
[6d11bc30] | 38 |
|
---|
[57f7cfa] | 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 |
|
---|
[d7bee48] | 96 | <screen><userinput>./configure --prefix=/usr --disable-static &&
|
---|
[83f6c770] | 97 |
|
---|
[57f7cfa] | 98 | make</userinput></screen>
|
---|
| 99 |
|
---|
[5b38e37] | 100 | <para>
|
---|
[dfff8213] | 101 | To test the results, issue: <command>make check</command>.
|
---|
[5b38e37] | 102 | </para>
|
---|
[b88be39] | 103 |
|
---|
[5b38e37] | 104 | <para>
|
---|
| 105 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 106 | </para>
|
---|
[57f7cfa] | 107 |
|
---|
| 108 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 109 |
|
---|
[40a4d44] | 110 | </sect2>
|
---|
[0d7900a] | 111 |
|
---|
[5b38e37] | 112 | <sect2 role="commands">
|
---|
[40a4d44] | 113 | <title>Command Explanations</title>
|
---|
| 114 |
|
---|
[5b38e37] | 115 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 116 | href="../../xincludes/static-libraries.xml"/>
|
---|
[40a4d44] | 117 |
|
---|
[9efe5ae3] | 118 | <para>
|
---|
| 119 | <option>--without-xml2</option>: This switch sets expat for xar archive
|
---|
| 120 | format support instead of preferred libxml2 if both packages are installed.
|
---|
| 121 | </para>
|
---|
| 122 |
|
---|
| 123 | <para>
|
---|
| 124 | <option>--without-nettle</option>: This switch sets OpenSSL for crypto
|
---|
| 125 | support instead of preferred Nettle if both packages are installed.
|
---|
| 126 | </para>
|
---|
| 127 |
|
---|
[57f7cfa] | 128 | </sect2>
|
---|
| 129 |
|
---|
| 130 | <sect2 role="content">
|
---|
| 131 | <title>Contents</title>
|
---|
| 132 |
|
---|
| 133 | <segmentedlist>
|
---|
[fd27868] | 134 | <segtitle>Installed Programs</segtitle>
|
---|
[40a4d44] | 135 | <segtitle>Installed Libraries</segtitle>
|
---|
[fd27868] | 136 | <segtitle>Installed Directories</segtitle>
|
---|
[57f7cfa] | 137 |
|
---|
| 138 | <seglistitem>
|
---|
[5b38e37] | 139 | <seg>
|
---|
[d7bee48] | 140 | bsdcat. bsdcpio and bsdtar
|
---|
[5b38e37] | 141 | </seg>
|
---|
| 142 | <seg>
|
---|
| 143 | libarchive.so
|
---|
| 144 | </seg>
|
---|
| 145 | <seg>
|
---|
| 146 | None
|
---|
| 147 | </seg>
|
---|
[57f7cfa] | 148 | </seglistitem>
|
---|
| 149 | </segmentedlist>
|
---|
| 150 |
|
---|
| 151 | <variablelist>
|
---|
| 152 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 153 | <?dbfo list-presentation="list"?>
|
---|
| 154 | <?dbhtml list-presentation="table"?>
|
---|
| 155 |
|
---|
[d7bee48] | 156 | <varlistentry id="bsdcat">
|
---|
| 157 | <term><command>bsdcat</command></term>
|
---|
| 158 | <listitem>
|
---|
| 159 | <para>
|
---|
| 160 | expands files to standard output.
|
---|
| 161 | </para>
|
---|
| 162 | <indexterm zone="libarchive bsdcat">
|
---|
| 163 | <primary sortas="b-bsdcat">bsdcat</primary>
|
---|
| 164 | </indexterm>
|
---|
| 165 | </listitem>
|
---|
| 166 | </varlistentry>
|
---|
| 167 |
|
---|
[57f7cfa] | 168 | <varlistentry id="bsdcpio">
|
---|
| 169 | <term><command>bsdcpio</command></term>
|
---|
| 170 | <listitem>
|
---|
[5b38e37] | 171 | <para>
|
---|
| 172 | is a tool similar to <command>cpio</command>.
|
---|
| 173 | </para>
|
---|
[57f7cfa] | 174 | <indexterm zone="libarchive bsdcpio">
|
---|
| 175 | <primary sortas="b-bsdcpio">bsdcpio</primary>
|
---|
| 176 | </indexterm>
|
---|
| 177 | </listitem>
|
---|
| 178 | </varlistentry>
|
---|
| 179 |
|
---|
[40a4d44] | 180 | <varlistentry id="bsdtar">
|
---|
| 181 | <term><command>bsdtar</command></term>
|
---|
| 182 | <listitem>
|
---|
[5b38e37] | 183 | <para>
|
---|
| 184 | is a tool similar to GNU <command>tar</command>.
|
---|
| 185 | </para>
|
---|
[40a4d44] | 186 | <indexterm zone="libarchive bsdtar">
|
---|
| 187 | <primary sortas="b-bsdtar">bsdtar</primary>
|
---|
| 188 | </indexterm>
|
---|
| 189 | </listitem>
|
---|
| 190 | </varlistentry>
|
---|
[0d7900a] | 191 |
|
---|
[5b38e37] | 192 | <varlistentry id="libarchive-lib">
|
---|
| 193 | <term><filename class="libraryfile">libarchive.so</filename></term>
|
---|
| 194 | <listitem>
|
---|
| 195 | <para>
|
---|
| 196 | is a library that can create and read several streaming
|
---|
| 197 | archive formats.
|
---|
| 198 | </para>
|
---|
| 199 | <indexterm zone="libarchive libarchive-lib">
|
---|
| 200 | <primary sortas="c-libarchive">libarchive.so</primary>
|
---|
| 201 | </indexterm>
|
---|
| 202 | </listitem>
|
---|
| 203 | </varlistentry>
|
---|
| 204 |
|
---|
[57f7cfa] | 205 | </variablelist>
|
---|
| 206 |
|
---|
| 207 | </sect2>
|
---|
| 208 |
|
---|
| 209 | </sect1>
|
---|