[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[86b7da48] | 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 |
|
---|
[73968556] | 7 | <!ENTITY p7zip-download-http "https://github.com/p7zip-project/p7zip/archive/v&p7zip-version;/p7zip-&p7zip-version;.tar.gz">
|
---|
[86b7da48] | 8 | <!ENTITY p7zip-download-ftp " ">
|
---|
[f230dd9] | 9 | <!ENTITY p7zip-md5sum "00acfd6be87848231722d2d53f89e4a5">
|
---|
| 10 | <!ENTITY p7zip-size "6.5 MB">
|
---|
| 11 | <!ENTITY p7zip-buildsize "55 MB">
|
---|
[e8f2aba0] | 12 | <!ENTITY p7zip-time "2.3 SBU (with tests)">
|
---|
[86b7da48] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="p7zip" xreflabel="p7zip-&p7zip-version;">
|
---|
| 16 | <?dbhtml filename="p7zip.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>p7zip-&p7zip-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="p7zip">
|
---|
| 22 | <primary sortas="a-p7zip">p7zip</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to p7zip</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
| 29 | <application>p7zip</application> is the Unix command-line port of 7-Zip, a
|
---|
| 30 | file archiver that archives with high compression ratios. It handles 7z,
|
---|
[e8f2aba0] | 31 | ZIP, GZIP, Brotli, BZIP2, XZ, TAR, APM, ARJ, CAB, CHM, CPIO, CramFS, DEB,
|
---|
| 32 | DMG, FAT, HFS, ISO, Lizard, LZ5, LZFSE, LZH, LZMA, LZMA2, MBR, MSI, MSLZ,
|
---|
| 33 | NSIS, NTFS, RAR, RPM, SquashFS, UDF, VHD, WIM, XAR, Z, and Zstd formats.
|
---|
[86b7da48] | 34 | </para>
|
---|
| 35 |
|
---|
[aa996df1] | 36 | &lfs122_checked;
|
---|
[86b7da48] | 37 |
|
---|
| 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>
|
---|
| 42 | Download (HTTP): <ulink url="&p7zip-download-http;"/>
|
---|
| 43 | </para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>
|
---|
| 47 | Download (FTP): <ulink url="&p7zip-download-ftp;"/>
|
---|
| 48 | </para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>
|
---|
| 52 | Download MD5 sum: &p7zip-md5sum;
|
---|
| 53 | </para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>
|
---|
| 57 | Download size: &p7zip-size;
|
---|
| 58 | </para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>
|
---|
| 62 | Estimated disk space required: &p7zip-buildsize;
|
---|
| 63 | </para>
|
---|
| 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
| 66 | <para>
|
---|
| 67 | Estimated build time: &p7zip-time;
|
---|
| 68 | </para>
|
---|
| 69 | </listitem>
|
---|
| 70 | </itemizedlist>
|
---|
| 71 |
|
---|
[a45f297] | 72 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 73 | <itemizedlist spacing='compact'>
|
---|
| 74 | <listitem>
|
---|
[04131a2] | 75 | <para>
|
---|
| 76 | Required patch:
|
---|
| 77 | <ulink url="&patch-root;/p7zip-&p7zip-version;-consolidated_fixes-1.patch"/>
|
---|
| 78 | </para>
|
---|
[a45f297] | 79 | </listitem>
|
---|
| 80 | </itemizedlist>
|
---|
| 81 |
|
---|
[86b7da48] | 82 | <bridgehead renderas="sect3">p7zip Dependencies</bridgehead>
|
---|
| 83 |
|
---|
| 84 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 85 | <para role="optional">
|
---|
[6e2eb5cf] | 86 | <ulink url="https://www.wxwidgets.org/">wxWidgets</ulink>
|
---|
[86b7da48] | 87 | </para>
|
---|
| 88 |
|
---|
| 89 |
|
---|
| 90 | </sect2>
|
---|
| 91 |
|
---|
| 92 | <sect2 role="installation">
|
---|
| 93 | <title>Installation of p7zip</title>
|
---|
| 94 |
|
---|
[a45f297] | 95 | <para>
|
---|
[04131a2] | 96 | First, fix several security vulnerabilities:
|
---|
[a45f297] | 97 | </para>
|
---|
| 98 |
|
---|
| 99 | <screen><userinput>patch -Np1 -i ../p7zip-&p7zip-version;-consolidated_fixes-1.patch</userinput></screen>
|
---|
| 100 |
|
---|
[1527145] | 101 | <para>
|
---|
[04131a2] | 102 | Next, prevent <application>p7zip</application> from installing
|
---|
[1527145] | 103 | compressed manual pages:
|
---|
| 104 | </para>
|
---|
| 105 |
|
---|
| 106 | <screen><userinput remap="pre">sed '/^gzip/d' -i install.sh</userinput></screen>
|
---|
| 107 |
|
---|
[86b7da48] | 108 | <para>
|
---|
| 109 | Install <application>p7zip</application> by running the following
|
---|
| 110 | commands:
|
---|
| 111 | </para>
|
---|
| 112 |
|
---|
[589ba74] | 113 | <screen><userinput>make all3</userinput></screen>
|
---|
[86b7da48] | 114 |
|
---|
| 115 | <para>
|
---|
| 116 | To test the results, issue: <command>make test</command>.
|
---|
| 117 | </para>
|
---|
| 118 |
|
---|
| 119 | <para>
|
---|
| 120 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 121 | </para>
|
---|
| 122 |
|
---|
| 123 | <!-- dev note: make DEST_DIR=<DESTDIR> install -->
|
---|
| 124 |
|
---|
| 125 | <screen role="root"><userinput>make DEST_HOME=/usr \
|
---|
| 126 | DEST_MAN=/usr/share/man \
|
---|
| 127 | DEST_SHARE_DOC=/usr/share/doc/p7zip-&p7zip-version; install</userinput></screen>
|
---|
| 128 |
|
---|
[b1532549] | 129 | <note>
|
---|
| 130 | <para>
|
---|
| 131 | If using DESTDIR techniques, use DEST_DIR instead.
|
---|
| 132 | </para>
|
---|
| 133 | </note>
|
---|
[589ba74] | 134 |
|
---|
[86b7da48] | 135 | </sect2>
|
---|
| 136 |
|
---|
| 137 | <sect2 role="content">
|
---|
| 138 | <title>Contents</title>
|
---|
| 139 |
|
---|
| 140 | <segmentedlist>
|
---|
| 141 | <segtitle>Installed Programs</segtitle>
|
---|
| 142 | <segtitle>Installed Libraries</segtitle>
|
---|
| 143 | <segtitle>Installed Directory</segtitle>
|
---|
| 144 |
|
---|
| 145 | <seglistitem>
|
---|
| 146 | <seg>
|
---|
| 147 | 7z, 7za, and 7zr
|
---|
| 148 | </seg>
|
---|
| 149 | <seg>
|
---|
| 150 | None
|
---|
| 151 | </seg>
|
---|
| 152 | <seg>
|
---|
| 153 | /usr/lib/p7zip and /usr/share/doc/p7zip-&p7zip-version;
|
---|
| 154 | </seg>
|
---|
| 155 | </seglistitem>
|
---|
| 156 | </segmentedlist>
|
---|
| 157 |
|
---|
| 158 | <variablelist>
|
---|
| 159 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 160 | <?dbfo list-presentation="list"?>
|
---|
| 161 | <?dbhtml list-presentation="table"?>
|
---|
| 162 |
|
---|
| 163 | <varlistentry id="Sevenz">
|
---|
| 164 | <term><command>7z</command></term>
|
---|
| 165 | <listitem>
|
---|
| 166 | <para>
|
---|
[4c24eb0a] | 167 | is a file archiver utility
|
---|
[86b7da48] | 168 | </para>
|
---|
| 169 | <indexterm zone="p7zip Sevenz">
|
---|
| 170 | <primary sortas="b-7z">7z</primary>
|
---|
| 171 | </indexterm>
|
---|
| 172 | </listitem>
|
---|
| 173 | </varlistentry>
|
---|
| 174 |
|
---|
| 175 | <varlistentry id="Sevenza">
|
---|
| 176 | <term><command>7za</command></term>
|
---|
| 177 | <listitem>
|
---|
| 178 | <para>
|
---|
| 179 | is a stand-alone executable handling less archive formats than
|
---|
[4c24eb0a] | 180 | <command>7z</command>
|
---|
[86b7da48] | 181 | </para>
|
---|
| 182 | <indexterm zone="p7zip Sevenza">
|
---|
| 183 | <primary sortas="b-7za">7za</primary>
|
---|
| 184 | </indexterm>
|
---|
| 185 | </listitem>
|
---|
| 186 | </varlistentry>
|
---|
| 187 |
|
---|
| 188 | <varlistentry id="Sevenzr">
|
---|
| 189 | <term><command>7zr</command></term>
|
---|
| 190 | <listitem>
|
---|
| 191 | <para>
|
---|
| 192 | is a minimal version of <command>7za</command> that handles only
|
---|
[4c24eb0a] | 193 | 7z archives
|
---|
[86b7da48] | 194 | </para>
|
---|
| 195 | <indexterm zone="p7zip Sevenzr">
|
---|
| 196 | <primary sortas="b-7zr">7zr</primary>
|
---|
| 197 | </indexterm>
|
---|
| 198 | </listitem>
|
---|
| 199 | </varlistentry>
|
---|
| 200 |
|
---|
| 201 | </variablelist>
|
---|
| 202 |
|
---|
| 203 | </sect2>
|
---|
| 204 |
|
---|
| 205 | </sect1>
|
---|