source: general/sysutils/p7zip.xml@ b67111c8

12.0 12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since b67111c8 was cb594b6c, checked in by Xi Ruoyao <xry111@…>, 12 months ago

general: Remove non-exist User Notes link

Part of User Notes removal by
https://www.linuxfromscratch.org/~xry111/remove-nonexist-usernote.sh

  • Property mode set to 100644
File size: 5.8 KB
RevLine 
[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
[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
[15445ab]36 &lfs113_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
[e8f2aba0]72<!-- Applied in 17.03
[a45f297]73 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
74 <itemizedlist spacing='compact'>
75 <listitem>
76 <para>Required patch: <ulink
77 url="&patch-root;/p7zip-&p7zip-version;-consolidated_fixes-1.patch"/></para>
78 </listitem>
79 </itemizedlist>
[e8f2aba0]80-->
[a45f297]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
[e8f2aba0]95<!-- Applied in 17.03
[a45f297]96 <para>
97 First, update the package for gcc10 and some security issues:
98 </para>
99
100<screen><userinput>patch -Np1 -i ../p7zip-&p7zip-version;-consolidated_fixes-1.patch</userinput></screen>
[e8f2aba0]101-->
[a45f297]102
[1527145]103 <para>
104 First, prevent <application>p7zip</application> from installing
105 compressed manual pages:
106 </para>
107
108<screen><userinput remap="pre">sed '/^gzip/d' -i install.sh</userinput></screen>
109
[3b339ddc]110 <para>
111 Next, fix a security vulnerability:
112 </para>
113
114<screen><userinput remap="pre">sed -i '160a if(_buffer == nullptr || _size == _pos) return E_FAIL;' CPP/7zip/Common/StreamObjects.cpp</userinput></screen>
115
[86b7da48]116 <para>
117 Install <application>p7zip</application> by running the following
118 commands:
119 </para>
120
[589ba74]121<screen><userinput>make all3</userinput></screen>
[86b7da48]122
123 <para>
124 To test the results, issue: <command>make test</command>.
125 </para>
126
127 <para>
128 Now, as the <systemitem class="username">root</systemitem> user:
129 </para>
130
131<!-- dev note: make DEST_DIR=<DESTDIR> install -->
132
133<screen role="root"><userinput>make DEST_HOME=/usr \
134 DEST_MAN=/usr/share/man \
135 DEST_SHARE_DOC=/usr/share/doc/p7zip-&p7zip-version; install</userinput></screen>
136
[b1532549]137 <note>
138 <para>
139 If using DESTDIR techniques, use DEST_DIR instead.
140 </para>
141 </note>
[589ba74]142
[86b7da48]143 </sect2>
144
145 <sect2 role="content">
146 <title>Contents</title>
147
148 <segmentedlist>
149 <segtitle>Installed Programs</segtitle>
150 <segtitle>Installed Libraries</segtitle>
151 <segtitle>Installed Directory</segtitle>
152
153 <seglistitem>
154 <seg>
155 7z, 7za, and 7zr
156 </seg>
157 <seg>
158 None
159 </seg>
160 <seg>
161 /usr/lib/p7zip and /usr/share/doc/p7zip-&p7zip-version;
162 </seg>
163 </seglistitem>
164 </segmentedlist>
165
166 <variablelist>
167 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
168 <?dbfo list-presentation="list"?>
169 <?dbhtml list-presentation="table"?>
170
171 <varlistentry id="Sevenz">
172 <term><command>7z</command></term>
173 <listitem>
174 <para>
[4c24eb0a]175 is a file archiver utility
[86b7da48]176 </para>
177 <indexterm zone="p7zip Sevenz">
178 <primary sortas="b-7z">7z</primary>
179 </indexterm>
180 </listitem>
181 </varlistentry>
182
183 <varlistentry id="Sevenza">
184 <term><command>7za</command></term>
185 <listitem>
186 <para>
187 is a stand-alone executable handling less archive formats than
[4c24eb0a]188 <command>7z</command>
[86b7da48]189 </para>
190 <indexterm zone="p7zip Sevenza">
191 <primary sortas="b-7za">7za</primary>
192 </indexterm>
193 </listitem>
194 </varlistentry>
195
196 <varlistentry id="Sevenzr">
197 <term><command>7zr</command></term>
198 <listitem>
199 <para>
200 is a minimal version of <command>7za</command> that handles only
[4c24eb0a]201 7z archives
[86b7da48]202 </para>
203 <indexterm zone="p7zip Sevenzr">
204 <primary sortas="b-7zr">7zr</primary>
205 </indexterm>
206 </listitem>
207 </varlistentry>
208
209 </variablelist>
210
211 </sect2>
212
213</sect1>
Note: See TracBrowser for help on using the repository browser.