source: postlfs/security/gnupg2.xml@ 120b315

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 120b315 was 55a66dab, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

Update to LibRaw-0.18.5.
Update to cmake-3.9.3.
Update to gnupg-2.2.1.
Update to pulseaudio-11.1.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@19288 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 15.9 KB
RevLine 
[618aef19]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
[8dfc5c3]7 <!ENTITY gnupg2-download-http "&gnupg-http;/gnupg/gnupg-&gnupg2-version;.tar.bz2">
8 <!ENTITY gnupg2-download-ftp "&gnupg-ftp;/gnupg/gnupg-&gnupg2-version;.tar.bz2">
[55a66dab]9 <!ENTITY gnupg2-md5sum "f781efae8756f6cf5d500aad8e4b33e2">
[ce242f2]10 <!ENTITY gnupg2-size "6.2 MB">
[55a66dab]11 <!ENTITY gnupg2-buildsize "107 MB (with all tests; add 24MB for docs)">
12 <!ENTITY gnupg2-time "0.8 SBU (add 1.5 SBU for tests)">
[618aef19]13]>
14
15<sect1 id="gnupg2" xreflabel="GnuPG-&gnupg2-version;">
[f82ac3f]16 <?dbhtml filename="gnupg.html"?>
[618aef19]17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>GnuPG-&gnupg2-version;</title>
24
25 <indexterm zone="gnupg2">
[f82ac3f]26 <primary sortas="a-GnuPG">GnuPG</primary>
[618aef19]27 </indexterm>
28
29 <sect2 role="package">
[f82ac3f]30 <title>Introduction to GnuPG</title>
[618aef19]31
[f82ac3f]32 <para>The <application>GnuPG</application> package is GNU's tool for
[618aef19]33 secure communication and data storage. It can be used to encrypt data and
34 to create digital signatures. It includes an advanced key management
35 facility and is compliant with the proposed OpenPGP Internet standard as
36 described in RFC2440 and the S/MIME standard as described by several RFCs.
37 GnuPG 2 is the stable version of GnuPG integrating support for OpenPGP and
[f82ac3f]38 S/MIME.</para>
[618aef19]39
[e2d7eb4]40 &lfs81_checked;
[477e290c]41
[618aef19]42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>Download (HTTP): <ulink url="&gnupg2-download-http;"/></para>
46 </listitem>
47 <listitem>
48 <para>Download (FTP): <ulink url="&gnupg2-download-ftp;"/></para>
49 </listitem>
50 <listitem>
51 <para>Download MD5 sum: &gnupg2-md5sum;</para>
52 </listitem>
53 <listitem>
54 <para>Download size: &gnupg2-size;</para>
55 </listitem>
56 <listitem>
57 <para>Estimated disk space required: &gnupg2-buildsize;</para>
58 </listitem>
59 <listitem>
60 <para>Estimated build time: &gnupg2-time;</para>
61 </listitem>
62 </itemizedlist>
63
[3e68554d]64 <bridgehead renderas="sect3">GnuPG 2 Dependencies</bridgehead>
[618aef19]65
66 <bridgehead renderas="sect4">Required</bridgehead>
[439d67f]67 <para role="required">
68 <xref linkend="libassuan"/>,
69 <xref linkend="libgcrypt"/>,
[1bef49d]70 <xref linkend="libgpg-error"/>,
[439d67f]71 <xref linkend="libksba"/>, and
72 <xref linkend="npth"/>
73 </para>
[618aef19]74
[2af0daa7]75 <bridgehead renderas="sect4">Recommended</bridgehead>
[439d67f]76 <para role="recommended">
77 <xref linkend="pinentry"/> (Run-time requirement for most of
78 the package's functionality)
79 </para>
[618aef19]80
[2af0daa7]81 <bridgehead renderas="sect4">Optional</bridgehead>
[439d67f]82 <para role="optional">
83 <xref linkend="curl"/>,
[c5353a8]84 <xref linkend="gnutls"/>,
[1872da27]85 <xref linkend="imagemagick"/> (for the <command>convert</command> utility,
86 used for generating the documentation),
[d0b1879]87 <xref linkend="libusb-compat"/>,
88 an <xref linkend="server-mail"/>,
[5ee1266]89 <xref linkend="openldap"/>,
[3af9e1e9]90 <xref linkend="sqlite"/>,
[1872da27]91 <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>),
[560b86d]92 <ulink url="http://mcj.sourceforge.net/">fig2dev</ulink> (for
[1872da27]93 generating documentation),
94 and <ulink url="http://www.chiark.greenend.org.uk/~ian/adns/">GNU
[d0b1879]95 adns</ulink>
96 </para>
[a41f643]97
[618aef19]98 <para condition="html" role="usernotes">User Notes:
99 <ulink url="&blfs-wiki;/gnupg2"/></para>
100
101 </sect2>
102
103 <sect2 role="installation">
[f82ac3f]104 <title>Installation of GnuPG</title>
[618aef19]105
[65d86241]106 <warning>
107 <para>
[ac3058f]108 If you are upgrading from gnupg prior to version 2.1, upstream
109 developers recommend to backup
110 <filename class="directory">~/.gnupg</filename>, because some additional
111 configuration will probably be necessary, and you could lose your keys.
112 You can find instructions at
[65d86241]113 <ulink url="http://jo-ke.name/wp/?p=111"></ulink> and
114 <ulink url="https://wiki.archlinux.org/index.php/GnuPG#.22Lost.22_keys.2C_upgrading_to_gnupg_version_2.1"></ulink>.
115 </para>
116 </warning>
117
[ac3058f]118 <para>If the top directory path where the source is unpacked contains
[dcff87e8]119 symbolic links, the openpgp tests may fail. If this is your case and
[ac3058f]120 you wish to run the test suite, fix that with:</para>
121
[fdaae04]122<screen><userinput>sed -e '/noinst_SCRIPTS = gpg-zip/c sbin_SCRIPTS += gpg-zip' \
123 -i tools/Makefile.in</userinput></screen>
[9210a92]124
[f82ac3f]125 <para>Install <application>GnuPG</application> by running the following
[618aef19]126 commands:</para>
127
[fdaae04]128<screen><userinput>./configure --prefix=/usr \
129 --enable-symcryptrun \
130 --enable-maintainer-mode \
[2af0daa7]131 --docdir=/usr/share/doc/gnupg-&gnupg2-version; &amp;&amp;
[faf325d]132make &amp;&amp;
[618aef19]133
[5ee1266]134makeinfo --html --no-split \
135 -o doc/gnupg_nochunks.html doc/gnupg.texi &amp;&amp;
136makeinfo --plaintext \
137 -o doc/gnupg.txt doc/gnupg.texi</userinput></screen>
[618aef19]138
[8aeb474]139 <para>If you have <xref linkend="texlive"/>
[f1e103a]140 installed and you wish to create documentation in alternate formats,
141 issue the following commands:</para>
142
[faf325d]143<screen><userinput>make -C doc pdf ps html</userinput></screen>
[618aef19]144
145 <para>To test the results, issue: <command>make check</command>.</para>
146
[3e68554d]147 <para>Note that if you have already installed
148 <application>GnuPG</application>, the instructions below will overwrite
149 <filename>/usr/share/man/man1/gpg-zip.1</filename>. Now, as the
150 <systemitem class="username">root</systemitem> user:</para>
[618aef19]151
[68d0ff78]152<screen role="root"><userinput>make install &amp;&amp;
[f1e103a]153
[aed3e6ec]154install -v -m755 -d /usr/share/doc/gnupg-&gnupg2-version;/html &amp;&amp;
[f1e103a]155install -v -m644 doc/gnupg_nochunks.html \
[aed3e6ec]156 /usr/share/doc/gnupg-&gnupg2-version;/html/gnupg.html &amp;&amp;
[f1e103a]157install -v -m644 doc/*.texi doc/gnupg.txt \
158 /usr/share/doc/gnupg-&gnupg2-version;</userinput></screen>
[92d2b83]159<!-- Now intalls as gpg, not gpg2. This should be no longer needed.
[a9603c8]160 <para>The BLFS editors recommend the creation of symlinks for compatibility
161 with the first version of GnuPG, because some programs or scripts need
162 them. Issue, as <systemitem class="username">root</systemitem> user:</para>
[68d0ff78]163
164<screen role="root"><userinput>for f in gpg gpgv
165do
[fa7ae3f3]166 ln -svf ${f}2.1 /usr/share/man/man1/$f.1 &amp;&amp;
167 ln -svf ${f}2 /usr/bin/$f
[68d0ff78]168done
169unset f</userinput></screen>
[92d2b83]170-->
[618aef19]171 <para>If you created alternate formats of the documentation, install it
172 using the following command as the
173 <systemitem class="username">root</systemitem> user:</para>
174
[f1e103a]175<screen role="root"><userinput>install -v -m644 doc/gnupg.html/* \
[2af0daa7]176 /usr/share/doc/gnupg-&gnupg2-version;/html &amp;&amp;
[f1e103a]177install -v -m644 doc/gnupg.{pdf,dvi,ps} \
[faf325d]178 /usr/share/doc/gnupg-&gnupg2-version;</userinput></screen>
[618aef19]179
180 </sect2>
181
182 <sect2 role="commands">
183 <title>Command Explanations</title>
184
[fdaae04]185 <para><command>sed ... tools/Makefile.in</command>:
186 This command is needed to build the gpg-zip program.</para>
187
[a41f643]188 <para><parameter>--docdir=/usr/share/doc/gnupg-&gnupg2-version;</parameter>:
[2af0daa7]189 This switch changes the default docdir to <filename
190 class="directory">/usr/share/doc/gnupg-&gnupg2-version;</filename>.</para>
191
[a41f643]192 <para><parameter>--enable-symcryptrun</parameter>: This switch enables
[584ded4]193 building the symcryptrun program.</para>
[2af0daa7]194
[fdaae04]195 <para><parameter>--enable-maintainer-mode</parameter>: This switch is
196 needed for proper completion of the tests.</para>
197
[fa30d84]198 <para>
199 <option>--enable-all-tests</option>: allows more tests to be run whith
200 <command>make check</command>.
201 </para>
[3af9e1e9]202 <para><option>--enable-g13</option>: This switch enables building the
203 g13 program.</para>
204
[618aef19]205 </sect2>
206
207 <sect2 role="content">
208 <title>Contents</title>
209
210 <segmentedlist>
211 <segtitle>Installed Programs</segtitle>
212 <segtitle>Installed Libraries</segtitle>
213 <segtitle>Installed Directories</segtitle>
214
215 <seglistitem>
[439d67f]216 <seg>addgnupghome, applygnupgdefaults, dirmngr, dirmngr-client, g13,
[92d2b83]217 gpg-agent, gpg-connect-agent, gpg, gpgconf, gpgparsemail,
218 gpgscm, gpgsm, gpgtar, gpgv, igpg-zip, kbxutil, symcryptrun,
[6f13fc0b]219 and watchgnupg</seg>
[618aef19]220 <seg>None</seg>
[39c6300]221 <seg>/usr/share/doc/gnupg-&gnupg2-version; and
222 /usr/share/gnupg</seg>
[618aef19]223 </seglistitem>
224 </segmentedlist>
225
226 <variablelist>
227 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
228 <?dbfo list-presentation="list"?>
229 <?dbhtml list-presentation="table"?>
230
231 <varlistentry id="addgnupghome">
232 <term><command>addgnupghome</command></term>
233 <listitem>
234 <para>is used to create and populate user's
235 <filename class='directory'>~/.gnupg</filename> directories</para>
236 <indexterm zone="gnupg2 addgnupghome">
237 <primary sortas="b-addgnupghome">addgnupghome</primary>
238 </indexterm>
239 </listitem>
240 </varlistentry>
241
242 <varlistentry id="applygnupgdefaults">
243 <term><command>applygnupgdefaults</command></term>
244 <listitem>
245 <para>is a wrapper script used to run <command>gpgconf</command>
246 with the <parameter>--apply-defaults</parameter> parameter on all
247 user's GnuPG home directories.</para>
248 <indexterm zone="gnupg2 applygnupgdefaults">
249 <primary sortas="b-applygnupgdefaults">applygnupgdefaults</primary>
250 </indexterm>
251 </listitem>
252 </varlistentry>
253
[439d67f]254 <varlistentry id="dirmngr">
255 <term><command>dirmngr</command></term>
256 <listitem>
257 <para> is a tool that takes care of accessing the OpenPGP keyservers.
258 </para>
259 <indexterm zone="gnupg2 dirmngr">
260 <primary sortas="b-dirmngr">dirmngr</primary>
261 </indexterm>
262 </listitem>
263 </varlistentry>
264
265 <varlistentry id="dirmngr-client">
266 <term><command>dirmngr-client</command></term>
267 <listitem>
268 <para> is a tool to contact a running dirmngr and test whether a
269 certificate has been revoked. </para>
270 <indexterm zone="gnupg2 dirmngr-client">
271 <primary sortas="b-dirmngr-client">dirmngr-client</primary>
272 </indexterm>
273 </listitem>
274 </varlistentry>
275
276 <varlistentry id="g13">
277 <term><command>g13</command></term>
278 <listitem>
279 <para>is a tool to create, mount or unmount an encrypted file system
[3af9e1e9]280 container (optional).</para>
[439d67f]281 <indexterm zone="gnupg2 g13">
282 <primary sortas="b-g13">g13</primary>
283 </indexterm>
284 </listitem>
285 </varlistentry>
286
[618aef19]287 <varlistentry id="gpg-agent">
288 <term><command>gpg-agent</command></term>
289 <listitem>
290 <para>is a daemon used to manage secret (private) keys independently
[68d0ff78]291 from any protocol. It is used as a backend for <command>gpg2</command>
[618aef19]292 and <command>gpgsm</command> as well as for a couple of other
293 utilities.</para>
294 <indexterm zone="gnupg2 gpg-agent">
295 <primary sortas="b-gpg-agent">gpg-agent</primary>
296 </indexterm>
297 </listitem>
298 </varlistentry>
299
300 <varlistentry id="gpg-connect-agent">
301 <term><command>gpg-connect-agent</command></term>
302 <listitem>
303 <para>is a utility used to communicate with a running
304 <command>gpg-agent</command>.</para>
305 <indexterm zone="gnupg2 gpg-connect-agent">
306 <primary sortas="b-gpg-connect-agent">gpg-connect-agent</primary>
307 </indexterm>
308 </listitem>
309 </varlistentry>
310
[68d0ff78]311 <varlistentry id="gpg">
312 <term><command>gpg</command></term>
[618aef19]313 <listitem>
314 <para>is the OpenPGP part of the GNU Privacy Guard (GnuPG). It is a
315 tool used to provide digital encryption and signing services using
316 the OpenPGP standard.</para>
[92d2b83]317 <indexterm zone="gnupg2 gpg">
318 <primary sortas="b-gpg">gpg</primary>
[618aef19]319 </indexterm>
320 </listitem>
321 </varlistentry>
322
323 <varlistentry id="gpgconf">
324 <term><command>gpgconf</command></term>
325 <listitem>
[97ccf649]326 <para>is a utility used to automatically and reasonably safely
[618aef19]327 query and modify configuration files in the
328 <filename class='directory'>~/.gnupg</filename> home directory. It is
329 designed not to be invoked manually by the user, but automatically by
330 graphical user interfaces.</para>
331 <indexterm zone="gnupg2 gpgconf">
332 <primary sortas="b-gpgconf">gpgconf</primary>
333 </indexterm>
334 </listitem>
335 </varlistentry>
336
337 <varlistentry id="gpgparsemail">
338 <term><command>gpgparsemail</command></term>
339 <listitem>
340 <para>is a utility currently only useful for debugging. Run it with
341 <parameter>--help</parameter> for usage information.</para>
342 <indexterm zone="gnupg2 gpgparsemail">
343 <primary sortas="b-gpgparsemail">gpgparsemail</primary>
344 </indexterm>
345 </listitem>
346 </varlistentry>
347
[6f13fc0b]348 <varlistentry id="gpgscm">
349 <term><command>gpgscm</command></term>
350 <listitem>
351 <para>executes the given scheme program or spawns an interactive
352 shell.</para>
353 <indexterm zone="gnupg2 gpgscm">
354 <primary sortas="b-gpgscm">gpgscm</primary>
355 </indexterm>
356 </listitem>
357 </varlistentry>
358
[618aef19]359 <varlistentry id="gpgsm">
360 <term><command>gpgsm</command></term>
361 <listitem>
[68d0ff78]362 <para>is a tool similar to <command>gpg2</command> used to provide
[618aef19]363 digital encryption and signing services on X.509 certificates and the
364 CMS protocol. It is mainly used as a backend for S/MIME mail
365 processing.</para>
366 <indexterm zone="gnupg2 gpgsm">
367 <primary sortas="b-gpgsm">gpgsm</primary>
368 </indexterm>
369 </listitem>
370 </varlistentry>
371
[439d67f]372 <varlistentry id="gpgtar">
373 <term><command>gpgtar</command></term>
374 <listitem>
375 <para> is a tool to encrypt or sign files into an archive.</para>
376 <indexterm zone="gnupg2 gpgtar">
377 <primary sortas="b-gpgtar">gpgtar</primary>
378 </indexterm>
379 </listitem>
380 </varlistentry>
381
[68d0ff78]382 <varlistentry id="gpgv">
383 <term><command>gpgv</command></term>
384 <listitem>
[92d2b83]385 <para>is a verify only version of <command>gpg2</command>.</para>
[68d0ff78]386 <indexterm zone="gnupg2 gpgv">
387 <primary sortas="b-gpgv">gpgv</primary>
388 </indexterm>
389 </listitem>
390 </varlistentry>
391
[fdaae04]392 <varlistentry id="gpg-zip">
393 <term><command>gpg-zip</command></term>
394 <listitem>
395 <para> encrypts or signs files into an archive.</para>
396 <indexterm zone="gnupg2 gpg-zip">
397 <primary sortas="b-gpg-zip">gpg-zip</primary>
398 </indexterm>
399 </listitem>
400 </varlistentry>
401
[618aef19]402 <varlistentry id="kbxutil">
403 <term><command>kbxutil</command></term>
404 <listitem>
405 <para>is used to list, export and import Keybox data.</para>
406 <indexterm zone="gnupg2 kbxutil">
407 <primary sortas="b-kbxutil">kbxutil</primary>
408 </indexterm>
409 </listitem>
410 </varlistentry>
411
[584ded4]412 <varlistentry id="symcryptrun">
413 <term><command>symcryptrun</command></term>
414 <listitem>
415 <para>is a simple symmetric encryption tool.</para>
416 <indexterm zone="gnupg2 symcryptrun">
417 <primary sortas="b-symcryptrun">symcryptrun</primary>
418 </indexterm>
419 </listitem>
420 </varlistentry>
421
[618aef19]422 <varlistentry id="watchgnupg">
423 <term><command>watchgnupg</command></term>
424 <listitem>
425 <para>is used to listen to a Unix Domain socket created by any of
426 the GnuPG tools.</para>
427 <indexterm zone="gnupg2 watchgnupg">
428 <primary sortas="b-watchgnupg">watchgnupg</primary>
429 </indexterm>
430 </listitem>
431 </varlistentry>
432
433 </variablelist>
434
435 </sect2>
436
437</sect1>
Note: See TracBrowser for help on using the repository browser.