[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 |
|
---|
[ad3528a] | 7 | <!ENTITY libarchive-download-http "https://github.com/libarchive/libarchive/releases/download/v&libarchive-version;/libarchive-&libarchive-version;.tar.gz">
|
---|
[57f7cfa] | 8 | <!ENTITY libarchive-download-ftp " ">
|
---|
[d2812732] | 9 | <!ENTITY libarchive-md5sum "6046396255bd7cf6d0f6603a9bda39ac">
|
---|
| 10 | <!ENTITY libarchive-size "6.6 MB">
|
---|
[864abc6] | 11 | <!ENTITY libarchive-buildsize "38 MB (add 28 MB for tests)">
|
---|
| 12 | <!ENTITY libarchive-time "0.4 SBU (add 1.1 SBU for tests)">
|
---|
[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 |
|
---|
[38489aa0] | 37 | &lfs84_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
|
---|
[94b42903] | 79 | <xref linkend="nettle"/>
|
---|
[57f7cfa] | 80 | </para>
|
---|
| 81 |
|
---|
| 82 | <para condition="html" role="usernotes">User Notes:
|
---|
[5b38e37] | 83 | <ulink url="&blfs-wiki;/libarchive"/>
|
---|
| 84 | </para>
|
---|
[57f7cfa] | 85 | </sect2>
|
---|
| 86 |
|
---|
| 87 | <sect2 role="installation">
|
---|
| 88 | <title>Installation of libarchive</title>
|
---|
| 89 |
|
---|
[5b38e37] | 90 | <para>
|
---|
| 91 | Install <application>libarchive</application> by running the following
|
---|
| 92 | commands:
|
---|
| 93 | </para>
|
---|
[57f7cfa] | 94 |
|
---|
[4dd2e4c] | 95 | <screen><userinput>./configure --prefix=/usr --disable-static &&
|
---|
[57f7cfa] | 96 | make</userinput></screen>
|
---|
| 97 |
|
---|
[5b38e37] | 98 | <para>
|
---|
[d2812732] | 99 | To test the results, issue: <command>LC_ALL=C make check</command>.
|
---|
[5b38e37] | 100 | </para>
|
---|
[b88be39] | 101 |
|
---|
[5b38e37] | 102 | <para>
|
---|
| 103 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 104 | </para>
|
---|
[57f7cfa] | 105 |
|
---|
| 106 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 107 |
|
---|
[40a4d44] | 108 | </sect2>
|
---|
[0d7900a] | 109 |
|
---|
[5b38e37] | 110 | <sect2 role="commands">
|
---|
[40a4d44] | 111 | <title>Command Explanations</title>
|
---|
| 112 |
|
---|
[5b38e37] | 113 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 114 | href="../../xincludes/static-libraries.xml"/>
|
---|
[40a4d44] | 115 |
|
---|
[9efe5ae3] | 116 | <para>
|
---|
| 117 | <option>--without-xml2</option>: This switch sets expat for xar archive
|
---|
| 118 | format support instead of preferred libxml2 if both packages are installed.
|
---|
| 119 | </para>
|
---|
| 120 |
|
---|
| 121 | <para>
|
---|
| 122 | <option>--without-nettle</option>: This switch sets OpenSSL for crypto
|
---|
| 123 | support instead of preferred Nettle if both packages are installed.
|
---|
| 124 | </para>
|
---|
| 125 |
|
---|
[57f7cfa] | 126 | </sect2>
|
---|
| 127 |
|
---|
| 128 | <sect2 role="content">
|
---|
| 129 | <title>Contents</title>
|
---|
| 130 |
|
---|
| 131 | <segmentedlist>
|
---|
[fd27868] | 132 | <segtitle>Installed Programs</segtitle>
|
---|
[40a4d44] | 133 | <segtitle>Installed Libraries</segtitle>
|
---|
[fd27868] | 134 | <segtitle>Installed Directories</segtitle>
|
---|
[57f7cfa] | 135 |
|
---|
| 136 | <seglistitem>
|
---|
[5b38e37] | 137 | <seg>
|
---|
[fdbead3] | 138 | bsdcat, bsdcpio, and bsdtar
|
---|
[5b38e37] | 139 | </seg>
|
---|
| 140 | <seg>
|
---|
| 141 | libarchive.so
|
---|
| 142 | </seg>
|
---|
| 143 | <seg>
|
---|
| 144 | None
|
---|
| 145 | </seg>
|
---|
[57f7cfa] | 146 | </seglistitem>
|
---|
| 147 | </segmentedlist>
|
---|
| 148 |
|
---|
| 149 | <variablelist>
|
---|
| 150 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 151 | <?dbfo list-presentation="list"?>
|
---|
| 152 | <?dbhtml list-presentation="table"?>
|
---|
| 153 |
|
---|
[fdbead3] | 154 | <varlistentry id="bsdcat">
|
---|
| 155 | <term><command>bsdcat</command></term>
|
---|
| 156 | <listitem>
|
---|
| 157 | <para>
|
---|
| 158 | expands files to standard output.
|
---|
| 159 | </para>
|
---|
| 160 | <indexterm zone="libarchive bsdcat">
|
---|
| 161 | <primary sortas="b-bsdcat">bsdcat</primary>
|
---|
| 162 | </indexterm>
|
---|
| 163 | </listitem>
|
---|
| 164 | </varlistentry>
|
---|
| 165 |
|
---|
[57f7cfa] | 166 | <varlistentry id="bsdcpio">
|
---|
| 167 | <term><command>bsdcpio</command></term>
|
---|
| 168 | <listitem>
|
---|
[5b38e37] | 169 | <para>
|
---|
| 170 | is a tool similar to <command>cpio</command>.
|
---|
| 171 | </para>
|
---|
[57f7cfa] | 172 | <indexterm zone="libarchive bsdcpio">
|
---|
| 173 | <primary sortas="b-bsdcpio">bsdcpio</primary>
|
---|
| 174 | </indexterm>
|
---|
| 175 | </listitem>
|
---|
| 176 | </varlistentry>
|
---|
| 177 |
|
---|
[40a4d44] | 178 | <varlistentry id="bsdtar">
|
---|
| 179 | <term><command>bsdtar</command></term>
|
---|
| 180 | <listitem>
|
---|
[5b38e37] | 181 | <para>
|
---|
| 182 | is a tool similar to GNU <command>tar</command>.
|
---|
| 183 | </para>
|
---|
[40a4d44] | 184 | <indexterm zone="libarchive bsdtar">
|
---|
| 185 | <primary sortas="b-bsdtar">bsdtar</primary>
|
---|
| 186 | </indexterm>
|
---|
| 187 | </listitem>
|
---|
| 188 | </varlistentry>
|
---|
[0d7900a] | 189 |
|
---|
[5b38e37] | 190 | <varlistentry id="libarchive-lib">
|
---|
| 191 | <term><filename class="libraryfile">libarchive.so</filename></term>
|
---|
| 192 | <listitem>
|
---|
| 193 | <para>
|
---|
| 194 | is a library that can create and read several streaming
|
---|
| 195 | archive formats.
|
---|
| 196 | </para>
|
---|
| 197 | <indexterm zone="libarchive libarchive-lib">
|
---|
| 198 | <primary sortas="c-libarchive">libarchive.so</primary>
|
---|
| 199 | </indexterm>
|
---|
| 200 | </listitem>
|
---|
| 201 | </varlistentry>
|
---|
| 202 |
|
---|
[57f7cfa] | 203 | </variablelist>
|
---|
| 204 |
|
---|
| 205 | </sect2>
|
---|
| 206 |
|
---|
| 207 | </sect1>
|
---|