source: general/sysutils/p7zip.xml

trunk
Last change on this file was 5d0e7b8, checked in by Douglas R. Reno <renodr@…>, 2 months ago

A bunch of tags

  • Property mode set to 100644
File size: 5.8 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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
7 <!ENTITY p7zip-download-http "https://github.com/p7zip-project/p7zip/archive/v&p7zip-version;/p7zip-&p7zip-version;.tar.gz">
8 <!ENTITY p7zip-download-ftp " ">
9 <!ENTITY p7zip-md5sum "00acfd6be87848231722d2d53f89e4a5">
10 <!ENTITY p7zip-size "6.5 MB">
11 <!ENTITY p7zip-buildsize "55 MB">
12 <!ENTITY p7zip-time "2.3 SBU (with tests)">
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,
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.
34 </para>
35
36 &lfs121_checked;
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
72<!-- Applied in 17.03
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>
80-->
81
82 <bridgehead renderas="sect3">p7zip Dependencies</bridgehead>
83
84 <bridgehead renderas="sect4">Optional</bridgehead>
85 <para role="optional">
86 <ulink url="https://www.wxwidgets.org/">wxWidgets</ulink>
87 </para>
88
89
90 </sect2>
91
92 <sect2 role="installation">
93 <title>Installation of p7zip</title>
94
95<!-- Applied in 17.03
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>
101-->
102
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
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
116 <para>
117 Install <application>p7zip</application> by running the following
118 commands:
119 </para>
120
121<screen><userinput>make all3</userinput></screen>
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
137 <note>
138 <para>
139 If using DESTDIR techniques, use DEST_DIR instead.
140 </para>
141 </note>
142
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>
175 is a file archiver utility
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
188 <command>7z</command>
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
201 7z archives
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.