[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[57f7cfa] | 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 |
|
---|
[6ef4408] | 7 | <!ENTITY libarchive-download-http "https://github.com/libarchive/libarchive/releases/download/v&libarchive-version;/libarchive-&libarchive-version;.tar.xz">
|
---|
[57f7cfa] | 8 | <!ENTITY libarchive-download-ftp " ">
|
---|
[c0dce340] | 9 | <!ENTITY libarchive-md5sum "50c4dea9eba9a0add25ac1cfc9ba2cdb">
|
---|
[a8586f30] | 10 | <!ENTITY libarchive-size "5.2 MB">
|
---|
[5df823f] | 11 | <!ENTITY libarchive-buildsize "43 MB (add 32 MB for tests)">
|
---|
[c0dce340] | 12 | <!ENTITY libarchive-time "0.4 SBU (add 0.8 SBU for tests)">
|
---|
[57f7cfa] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="libarchive" xreflabel="libarchive-&libarchive-version;">
|
---|
| 16 | <?dbhtml filename="libarchive.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>libarchive-&libarchive-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="libarchive">
|
---|
| 22 | <primary sortas="a-libarchive">libarchive</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to libarchive</title>
|
---|
| 27 |
|
---|
[5b38e37] | 28 | <para>
|
---|
| 29 | The <application>libarchive</application> library provides a single
|
---|
| 30 | interface for reading/writing various compression formats.
|
---|
| 31 | </para>
|
---|
[57f7cfa] | 32 |
|
---|
[e375445] | 33 | &lfs122_checked;
|
---|
[57f7cfa] | 34 |
|
---|
| 35 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing="compact">
|
---|
| 37 | <listitem>
|
---|
[5b38e37] | 38 | <para>
|
---|
[56605b9] | 39 | Download (HTTP): <ulink url="&libarchive-download-http;"/>
|
---|
[046d740] | 40 | </para>
|
---|
[57f7cfa] | 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
[5b38e37] | 43 | <para>
|
---|
| 44 | Download (FTP): <ulink url="&libarchive-download-ftp;"/>
|
---|
| 45 | </para>
|
---|
[57f7cfa] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[5b38e37] | 48 | <para>
|
---|
| 49 | Download MD5 sum: &libarchive-md5sum;
|
---|
| 50 | </para>
|
---|
[57f7cfa] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[5b38e37] | 53 | <para>
|
---|
| 54 | Download size: &libarchive-size;
|
---|
| 55 | </para>
|
---|
[57f7cfa] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[5b38e37] | 58 | <para>
|
---|
| 59 | Estimated disk space required: &libarchive-buildsize;
|
---|
| 60 | </para>
|
---|
[57f7cfa] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[5b38e37] | 63 | <para>
|
---|
| 64 | Estimated build time: &libarchive-time;
|
---|
| 65 | </para>
|
---|
[57f7cfa] | 66 | </listitem>
|
---|
| 67 | </itemizedlist>
|
---|
| 68 |
|
---|
[297b344] | 69 | <!--
|
---|
[eeaa41b7] | 70 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 71 | <itemizedlist spacing="compact">
|
---|
| 72 | <listitem>
|
---|
| 73 | <para>
|
---|
| 74 | Required patch:
|
---|
| 75 | <ulink url="&patch-root;/libarchive-&libarchive-version;-testsuite_fix-1.patch"/>
|
---|
| 76 | </para>
|
---|
| 77 | </listitem>
|
---|
| 78 | </itemizedlist>
|
---|
[297b344] | 79 | -->
|
---|
[57f7cfa] | 80 | <bridgehead renderas="sect3">libarchive Dependencies</bridgehead>
|
---|
| 81 |
|
---|
[af822af] | 82 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 83 | <para role="optional">
|
---|
[c2f825a] | 84 | <xref linkend="libxml2"/>,
|
---|
[a8586f30] | 85 | <xref linkend="lzo"/>,
|
---|
| 86 | <xref linkend="nettle"/>, and
|
---|
| 87 | <xref linkend="pcre2"/>
|
---|
[57f7cfa] | 88 | </para>
|
---|
| 89 | </sect2>
|
---|
| 90 |
|
---|
| 91 | <sect2 role="installation">
|
---|
| 92 | <title>Installation of libarchive</title>
|
---|
| 93 |
|
---|
[5b38e37] | 94 | <para>
|
---|
| 95 | Install <application>libarchive</application> by running the following
|
---|
| 96 | commands:
|
---|
| 97 | </para>
|
---|
[57f7cfa] | 98 |
|
---|
[c2f825a] | 99 | <screen><userinput>./configure --prefix=/usr --disable-static &&
|
---|
[57f7cfa] | 100 | make</userinput></screen>
|
---|
| 101 |
|
---|
[5b38e37] | 102 | <para>
|
---|
[3135a0e] | 103 | To test the results, issue: <command>make check</command>.
|
---|
[5b38e37] | 104 | </para>
|
---|
[b88be39] | 105 |
|
---|
[5b38e37] | 106 | <para>
|
---|
| 107 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 108 | </para>
|
---|
[57f7cfa] | 109 |
|
---|
| 110 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 111 |
|
---|
[40a4d44] | 112 | </sect2>
|
---|
[0d7900a] | 113 |
|
---|
[5b38e37] | 114 | <sect2 role="commands">
|
---|
[40a4d44] | 115 | <title>Command Explanations</title>
|
---|
| 116 |
|
---|
[5b38e37] | 117 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 118 | href="../../xincludes/static-libraries.xml"/>
|
---|
[40a4d44] | 119 |
|
---|
[9efe5ae3] | 120 | <para>
|
---|
[c2f825a] | 121 | <option>--without-xml2</option>: This switch sets expat for xar archive
|
---|
[9efe5ae3] | 122 | format support instead of preferred libxml2 if both packages are installed.
|
---|
| 123 | </para>
|
---|
[c2f825a] | 124 |
|
---|
[9efe5ae3] | 125 | <para>
|
---|
[5b188cf] | 126 | <option>--with-nettle</option>: This switch sets Nettle for crypto
|
---|
| 127 | support instead of OpenSSL.
|
---|
[9efe5ae3] | 128 | </para>
|
---|
| 129 |
|
---|
[57f7cfa] | 130 | </sect2>
|
---|
| 131 |
|
---|
| 132 | <sect2 role="content">
|
---|
| 133 | <title>Contents</title>
|
---|
| 134 |
|
---|
| 135 | <segmentedlist>
|
---|
[fd27868] | 136 | <segtitle>Installed Programs</segtitle>
|
---|
[40a4d44] | 137 | <segtitle>Installed Libraries</segtitle>
|
---|
[fd27868] | 138 | <segtitle>Installed Directories</segtitle>
|
---|
[57f7cfa] | 139 |
|
---|
| 140 | <seglistitem>
|
---|
[5b38e37] | 141 | <seg>
|
---|
[587231b3] | 142 | bsdcat, bsdcpio, bsdtar, and bsdunzip
|
---|
[5b38e37] | 143 | </seg>
|
---|
| 144 | <seg>
|
---|
| 145 | libarchive.so
|
---|
| 146 | </seg>
|
---|
| 147 | <seg>
|
---|
| 148 | None
|
---|
| 149 | </seg>
|
---|
[57f7cfa] | 150 | </seglistitem>
|
---|
| 151 | </segmentedlist>
|
---|
| 152 |
|
---|
| 153 | <variablelist>
|
---|
| 154 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 155 | <?dbfo list-presentation="list"?>
|
---|
| 156 | <?dbhtml list-presentation="table"?>
|
---|
| 157 |
|
---|
[fdbead3] | 158 | <varlistentry id="bsdcat">
|
---|
| 159 | <term><command>bsdcat</command></term>
|
---|
| 160 | <listitem>
|
---|
| 161 | <para>
|
---|
[4c24eb0a] | 162 | expands files to standard output
|
---|
[fdbead3] | 163 | </para>
|
---|
| 164 | <indexterm zone="libarchive bsdcat">
|
---|
| 165 | <primary sortas="b-bsdcat">bsdcat</primary>
|
---|
| 166 | </indexterm>
|
---|
| 167 | </listitem>
|
---|
| 168 | </varlistentry>
|
---|
| 169 |
|
---|
[57f7cfa] | 170 | <varlistentry id="bsdcpio">
|
---|
| 171 | <term><command>bsdcpio</command></term>
|
---|
| 172 | <listitem>
|
---|
[5b38e37] | 173 | <para>
|
---|
[4c24eb0a] | 174 | is a tool similar to <command>cpio</command>
|
---|
[5b38e37] | 175 | </para>
|
---|
[57f7cfa] | 176 | <indexterm zone="libarchive bsdcpio">
|
---|
| 177 | <primary sortas="b-bsdcpio">bsdcpio</primary>
|
---|
| 178 | </indexterm>
|
---|
| 179 | </listitem>
|
---|
| 180 | </varlistentry>
|
---|
| 181 |
|
---|
[40a4d44] | 182 | <varlistentry id="bsdtar">
|
---|
| 183 | <term><command>bsdtar</command></term>
|
---|
| 184 | <listitem>
|
---|
[5b38e37] | 185 | <para>
|
---|
[4c24eb0a] | 186 | is a tool similar to GNU <command>tar</command>
|
---|
[5b38e37] | 187 | </para>
|
---|
[40a4d44] | 188 | <indexterm zone="libarchive bsdtar">
|
---|
| 189 | <primary sortas="b-bsdtar">bsdtar</primary>
|
---|
| 190 | </indexterm>
|
---|
| 191 | </listitem>
|
---|
| 192 | </varlistentry>
|
---|
[0d7900a] | 193 |
|
---|
[587231b3] | 194 | <varlistentry id="bsdunzip">
|
---|
| 195 | <term><command>bsdunzip</command></term>
|
---|
| 196 | <listitem>
|
---|
| 197 | <para>
|
---|
| 198 | is a tool similar to Info-ZIP <command>unzip</command>
|
---|
| 199 | </para>
|
---|
| 200 | <indexterm zone="libarchive bsdunzip">
|
---|
| 201 | <primary sortas="b-bsdunzip">bsdunzip</primary>
|
---|
| 202 | </indexterm>
|
---|
| 203 | </listitem>
|
---|
| 204 | </varlistentry>
|
---|
| 205 |
|
---|
[5b38e37] | 206 | <varlistentry id="libarchive-lib">
|
---|
| 207 | <term><filename class="libraryfile">libarchive.so</filename></term>
|
---|
| 208 | <listitem>
|
---|
| 209 | <para>
|
---|
| 210 | is a library that can create and read several streaming
|
---|
[4c24eb0a] | 211 | archive formats
|
---|
[5b38e37] | 212 | </para>
|
---|
| 213 | <indexterm zone="libarchive libarchive-lib">
|
---|
| 214 | <primary sortas="c-libarchive">libarchive.so</primary>
|
---|
| 215 | </indexterm>
|
---|
| 216 | </listitem>
|
---|
| 217 | </varlistentry>
|
---|
| 218 |
|
---|
[57f7cfa] | 219 | </variablelist>
|
---|
| 220 |
|
---|
| 221 | </sect2>
|
---|
| 222 |
|
---|
| 223 | </sect1>
|
---|