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