source: postlfs/security/gnupg2.xml@ 4af155c

12.0 12.1 12.2 gimp3 kea ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/for-12.3 xry111/llvm18 xry111/spidermonkey128 xry111/xf86-video-removal
Last change on this file since 4af155c was b9567b04, checked in by Xi Ruoyao <xry111@…>, 15 months ago

postlfs: 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: 17.8 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">
[ee77a2cd]8 <!ENTITY gnupg2-download-ftp "&gnupg-ftp;/gnupg/gnupg-&gnupg2-version;.tar.bz2">
[167292dd]9 <!ENTITY gnupg2-md5sum "089420cb30eee527afee667c56bb6b2e">
[7890f8f8]10 <!ENTITY gnupg2-size "7.0 MB">
11 <!ENTITY gnupg2-buildsize "127 MB (with tests)">
[167292dd]12 <!ENTITY gnupg2-time "0.7 SBU (with tests; using parallelism=4)">
[618aef19]13]>
14
15<sect1 id="gnupg2" xreflabel="GnuPG-&gnupg2-version;">
[f82ac3f]16 <?dbhtml filename="gnupg.html"?>
[618aef19]17
18
19 <title>GnuPG-&gnupg2-version;</title>
20
21 <indexterm zone="gnupg2">
[f82ac3f]22 <primary sortas="a-GnuPG">GnuPG</primary>
[618aef19]23 </indexterm>
24
25 <sect2 role="package">
[f82ac3f]26 <title>Introduction to GnuPG</title>
[618aef19]27
[47274444]28 <para>
29 The <application>GnuPG</application> package is GNU's tool for
30 secure communication and data storage. It can be used to encrypt data and
31 to create digital signatures. It includes an advanced key management
32 facility and is compliant with the proposed OpenPGP Internet standard as
33 described in RFC2440 and the S/MIME standard as described by several RFCs.
34 GnuPG 2 is the stable version of GnuPG integrating support for OpenPGP and
35 S/MIME.
36 </para>
[618aef19]37
[6fdbe40]38 &lfs113_checked;
[477e290c]39
[618aef19]40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
[47274444]43 <para>
44 Download (HTTP): <ulink url="&gnupg2-download-http;"/>
45 </para>
[618aef19]46 </listitem>
47 <listitem>
[47274444]48 <para>
49 Download (FTP): <ulink url="&gnupg2-download-ftp;"/>
50 </para>
[618aef19]51 </listitem>
52 <listitem>
[47274444]53 <para>
54 Download MD5 sum: &gnupg2-md5sum;
55 </para>
[618aef19]56 </listitem>
57 <listitem>
[47274444]58 <para>
59 Download size: &gnupg2-size;
60 </para>
[618aef19]61 </listitem>
62 <listitem>
[47274444]63 <para>
64 Estimated disk space required: &gnupg2-buildsize;
65 </para>
[618aef19]66 </listitem>
67 <listitem>
[47274444]68 <para>
69 Estimated build time: &gnupg2-time;
70 </para>
[618aef19]71 </listitem>
72 </itemizedlist>
73
[3e68554d]74 <bridgehead renderas="sect3">GnuPG 2 Dependencies</bridgehead>
[618aef19]75
76 <bridgehead renderas="sect4">Required</bridgehead>
[439d67f]77 <para role="required">
78 <xref linkend="libassuan"/>,
79 <xref linkend="libgcrypt"/>,
80 <xref linkend="libksba"/>, and
81 <xref linkend="npth"/>
82 </para>
[618aef19]83
[2af0daa7]84 <bridgehead renderas="sect4">Recommended</bridgehead>
[439d67f]85 <para role="recommended">
[45fc41c7]86 <xref linkend="gnutls"/> (required to communicate with keyservers
87 using https or hkps protocol) and
[439d67f]88 <xref linkend="pinentry"/> (Run-time requirement for most of
89 the package's functionality)
90 </para>
[618aef19]91
[2af0daa7]92 <bridgehead renderas="sect4">Optional</bridgehead>
[439d67f]93 <para role="optional">
94 <xref linkend="curl"/>,
[5718cff]95 <xref linkend="fuse3"/>,
[1872da27]96 <xref linkend="imagemagick"/> (for the <command>convert</command> utility,
97 used for generating the documentation),
[227b44ff]98 <xref linkend="libusb"/>,
[d0b1879]99 an <xref linkend="server-mail"/>,
[5ee1266]100 <xref linkend="openldap"/>,
[3af9e1e9]101 <xref linkend="sqlite"/>,
[1872da27]102 <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>),
[17aa21c]103 <ulink url="https://mcj.sourceforge.net/">fig2dev</ulink> (for
[1872da27]104 generating documentation),
[cd29bc9]105 and <ulink url="https://www.chiark.greenend.org.uk/~ian/adns/">GNU
[d0b1879]106 adns</ulink>
107 </para>
[a41f643]108
[618aef19]109
110 </sect2>
111
112 <sect2 role="installation">
[f82ac3f]113 <title>Installation of GnuPG</title>
[33f65424]114<!-- This is useless with 2.3.x. If we need gpg-zip we'll have to fetch
115 it somewhere.
[47274444]116 <para>
117 By default GnuPG doesn't install the deprecated gpg-zip script,
118 but it is still needed by some programs. Make GnuPG install it with:
[ee77a2cd]119 </para>
[ac3058f]120
[fdaae04]121<screen><userinput>sed -e '/noinst_SCRIPTS = gpg-zip/c sbin_SCRIPTS += gpg-zip' \
122 -i tools/Makefile.in</userinput></screen>
[33f65424]123-->
[6240159]124<!-- fixed in 2.4.0
[eede1a3]125 <para>
[70069a9]126 First, fix an issue causing build failure if
[eede1a3]127 <application>OpenLDAP</application> is not installed:
128 </para>
129
[70069a9]130<screen><userinput>sed -e '/ks_ldap_free_state/i #if USE_LDAP' \
131 -e '/ks_get_state =/a #endif' \
[c7f3c154]132 -i dirmngr/server.c</userinput></screen>
[6240159]133-->
[47274444]134 <para>
135 Install <application>GnuPG</application> by running the following
136 commands:
137 </para>
[618aef19]138
[6240159]139<screen><userinput>mkdir build &amp;&amp;
140cd build &amp;&amp;
141
142../configure --prefix=/usr \
143 --localstatedir=/var \
144 --sysconfdir=/etc \
145 --docdir=/usr/share/doc/gnupg-&gnupg2-version; &amp;&amp;
[faf325d]146make &amp;&amp;
[618aef19]147
[6240159]148makeinfo --html --no-split -I doc -o doc/gnupg_nochunks.html ../doc/gnupg.texi &amp;&amp;
149makeinfo --plaintext -I doc -o doc/gnupg.txt ../doc/gnupg.texi &amp;&amp;
[aa1a6bb]150make -C doc html</userinput></screen>
[618aef19]151
[47274444]152 <para>
153 If you have <xref linkend="texlive"/>
154 installed and you wish to create documentation in alternate formats,
155 issue the following commands
[17aa21c]156 (<ulink url="https://mcj.sourceforge.net/">fig2dev</ulink> is needed for
[47274444]157 the ps format):
158 </para>
[f1e103a]159
[a42c273]160<screen remap="doc"><userinput>make -C doc pdf ps</userinput></screen>
[618aef19]161
[47274444]162 <para>
163 To test the results, issue: <command>make check</command>.
164 </para>
[618aef19]165
[47274444]166 <para>
[33f65424]167 <!--
[47274444]168 Note that if you have already installed
169 <application>GnuPG</application>, the instructions below will overwrite
[33f65424]170 <filename>/usr/share/man/man1/gpg-zip.1</filename>.
171 -->
172 Now, as the <systemitem class="username">root</systemitem> user:
[47274444]173 </para>
[618aef19]174
[68d0ff78]175<screen role="root"><userinput>make install &amp;&amp;
[f1e103a]176
[aed3e6ec]177install -v -m755 -d /usr/share/doc/gnupg-&gnupg2-version;/html &amp;&amp;
[f1e103a]178install -v -m644 doc/gnupg_nochunks.html \
[aed3e6ec]179 /usr/share/doc/gnupg-&gnupg2-version;/html/gnupg.html &amp;&amp;
[6240159]180install -v -m644 ../doc/*.texi doc/gnupg.txt \
[a42c273]181 /usr/share/doc/gnupg-&gnupg2-version; &amp;&amp;
182install -v -m644 doc/gnupg.html/* \
183 /usr/share/doc/gnupg-&gnupg2-version;/html</userinput></screen>
[47274444]184 <para>
185 If you created alternate formats of the documentation, install them
186 using the following command as the
187 <systemitem class="username">root</systemitem> user:
188 </para>
[618aef19]189
[a42c273]190<screen role="root"
191 remap="doc"><userinput>install -v -m644 doc/gnupg.{pdf,dvi,ps} \
[faf325d]192 /usr/share/doc/gnupg-&gnupg2-version;</userinput></screen>
[618aef19]193
194 </sect2>
195
196 <sect2 role="commands">
197 <title>Command Explanations</title>
[33f65424]198<!--
[47274444]199 <para>
200 <command>sed ... tools/Makefile.in</command>:
201 This command is needed to build the gpg-zip program.
202 </para>
[33f65424]203-->
[6240159]204 <para>
205 <command>mkdir build &amp;&amp; cd build</command>: the Gnupg2
[8bcda70c]206 developers recommend to build the package in a dedicated directory.
[6240159]207 </para>
208
[47274444]209 <para>
210 <parameter>--docdir=/usr/share/doc/gnupg-&gnupg2-version;</parameter>:
211 This switch changes the default docdir to <filename
212 class="directory">/usr/share/doc/gnupg-&gnupg2-version;</filename>.
213 </para>
[2af0daa7]214
[6cbbb2d6]215<!-- Unrecognized in 2.2.26, seems to get built automatically now.
[47274444]216 <para>
[6cbbb2d6]217 <parameter>- -enable-symcryptrun</parameter>: This switch enables
[47274444]218 building the symcryptrun program.
219 </para>
[6cbbb2d6]220-->
[fa30d84]221 <para>
[7b7ef4cc]222 <option>--enable-all-tests</option>: This switch allows more tests to be
223 run with <command>make check</command>.
[fa30d84]224 </para>
[ed07746]225
226 <para>
227 <option>--enable-g13</option>: This switch enables building the
228 g13 program.
229 </para>
[3af9e1e9]230
[618aef19]231 </sect2>
232
233 <sect2 role="content">
234 <title>Contents</title>
235
236 <segmentedlist>
237 <segtitle>Installed Programs</segtitle>
238 <segtitle>Installed Libraries</segtitle>
239 <segtitle>Installed Directories</segtitle>
240
241 <seglistitem>
[10023bb]242 <seg>addgnupghome, applygnupgdefaults, dirmngr, dirmngr-client, g13
[c2051dbd]243 (optional), gpg-agent, gpg-card, gpg-connect-agent, gpg, gpgconf,
[6240159]244 gpgparsemail, gpgscm, gpgsm, gpgsplit, gpgtar, gpgv, gpg-wks-client,
245 gpg-wks-server, kbxutil,
[c513d6e6]246 <!--symcryptrun,--> and watchgnupg</seg>
[618aef19]247 <seg>None</seg>
[39c6300]248 <seg>/usr/share/doc/gnupg-&gnupg2-version; and
249 /usr/share/gnupg</seg>
[618aef19]250 </seglistitem>
251 </segmentedlist>
252
253 <variablelist>
254 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
255 <?dbfo list-presentation="list"?>
256 <?dbhtml list-presentation="table"?>
257
258 <varlistentry id="addgnupghome">
259 <term><command>addgnupghome</command></term>
260 <listitem>
[47274444]261 <para>
262 is used to create and populate a user's
[4c24eb0a]263 <filename class="directory">~/.gnupg</filename> directories
[47274444]264 </para>
[618aef19]265 <indexterm zone="gnupg2 addgnupghome">
266 <primary sortas="b-addgnupghome">addgnupghome</primary>
267 </indexterm>
268 </listitem>
269 </varlistentry>
270
271 <varlistentry id="applygnupgdefaults">
272 <term><command>applygnupgdefaults</command></term>
273 <listitem>
[47274444]274 <para>
275 is a wrapper script used to run <command>gpgconf</command>
276 with the <parameter>--apply-defaults</parameter> parameter on all
[4c24eb0a]277 user's GnuPG home directories
[47274444]278 </para>
[618aef19]279 <indexterm zone="gnupg2 applygnupgdefaults">
280 <primary sortas="b-applygnupgdefaults">applygnupgdefaults</primary>
281 </indexterm>
282 </listitem>
283 </varlistentry>
284
[439d67f]285 <varlistentry id="dirmngr">
286 <term><command>dirmngr</command></term>
287 <listitem>
[47274444]288 <para>
[4c24eb0a]289 is a tool that takes care of accessing the OpenPGP keyservers
[439d67f]290 </para>
291 <indexterm zone="gnupg2 dirmngr">
292 <primary sortas="b-dirmngr">dirmngr</primary>
293 </indexterm>
294 </listitem>
295 </varlistentry>
296
297 <varlistentry id="dirmngr-client">
298 <term><command>dirmngr-client</command></term>
299 <listitem>
[47274444]300 <para>
301 is a tool to contact a running dirmngr and test whether a
[4c24eb0a]302 certificate has been revoked
[47274444]303 </para>
[439d67f]304 <indexterm zone="gnupg2 dirmngr-client">
305 <primary sortas="b-dirmngr-client">dirmngr-client</primary>
306 </indexterm>
307 </listitem>
308 </varlistentry>
309
310 <varlistentry id="g13">
311 <term><command>g13</command></term>
312 <listitem>
[47274444]313 <para>
314 is a tool to create, mount or unmount an encrypted file system
[4c24eb0a]315 container (optional)
[47274444]316 </para>
[439d67f]317 <indexterm zone="gnupg2 g13">
318 <primary sortas="b-g13">g13</primary>
319 </indexterm>
320 </listitem>
321 </varlistentry>
322
[618aef19]323 <varlistentry id="gpg-agent">
324 <term><command>gpg-agent</command></term>
325 <listitem>
[47274444]326 <para>
327 is a daemon used to manage secret (private) keys independently
328 from any protocol. It is used as a backend for
[45fc41c7]329 <command>gpg</command> and <command>gpgsm</command> as well as
[4c24eb0a]330 for a couple of other utilities
[47274444]331 </para>
[618aef19]332 <indexterm zone="gnupg2 gpg-agent">
333 <primary sortas="b-gpg-agent">gpg-agent</primary>
334 </indexterm>
335 </listitem>
336 </varlistentry>
337
[c2051dbd]338 <varlistentry id="gpg-card">
339 <term><command>gpg-card</command></term>
340 <listitem>
341 <para>
342 is a tool to manage smart cards and tokens
343 </para>
344 <indexterm zone="gnupg2 gpg-card">
345 <primary sortas="b-gpg-card">gpg-card</primary>
346 </indexterm>
347 </listitem>
348 </varlistentry>
349
[618aef19]350 <varlistentry id="gpg-connect-agent">
351 <term><command>gpg-connect-agent</command></term>
352 <listitem>
[47274444]353 <para>
354 is a utility used to communicate with a running
[4c24eb0a]355 <command>gpg-agent</command>
[47274444]356 </para>
[618aef19]357 <indexterm zone="gnupg2 gpg-connect-agent">
358 <primary sortas="b-gpg-connect-agent">gpg-connect-agent</primary>
359 </indexterm>
360 </listitem>
361 </varlistentry>
362
[68d0ff78]363 <varlistentry id="gpg">
364 <term><command>gpg</command></term>
[618aef19]365 <listitem>
[47274444]366 <para>
367 is the OpenPGP part of the GNU Privacy Guard (GnuPG). It is a
368 tool used to provide digital encryption and signing services using
[4c24eb0a]369 the OpenPGP standard
[47274444]370 </para>
[92d2b83]371 <indexterm zone="gnupg2 gpg">
372 <primary sortas="b-gpg">gpg</primary>
[618aef19]373 </indexterm>
374 </listitem>
375 </varlistentry>
376
377 <varlistentry id="gpgconf">
378 <term><command>gpgconf</command></term>
379 <listitem>
[47274444]380 <para>
381 is a utility used to automatically and reasonably safely
382 query and modify configuration files in the
[4c24eb0a]383 <filename class="directory">~/.gnupg</filename> home directory. It
[47274444]384 is designed not to be invoked manually by the user, but
[4c24eb0a]385 automatically by graphical user interfaces
[47274444]386 </para>
[618aef19]387 <indexterm zone="gnupg2 gpgconf">
388 <primary sortas="b-gpgconf">gpgconf</primary>
389 </indexterm>
390 </listitem>
391 </varlistentry>
392
393 <varlistentry id="gpgparsemail">
394 <term><command>gpgparsemail</command></term>
395 <listitem>
[47274444]396 <para>
397 is a utility currently only useful for debugging. Run it with
[4c24eb0a]398 <parameter>--help</parameter> for usage information
[47274444]399 </para>
[618aef19]400 <indexterm zone="gnupg2 gpgparsemail">
401 <primary sortas="b-gpgparsemail">gpgparsemail</primary>
402 </indexterm>
403 </listitem>
404 </varlistentry>
405
[6f13fc0b]406 <varlistentry id="gpgscm">
407 <term><command>gpgscm</command></term>
408 <listitem>
[47274444]409 <para>
[4c24eb0a]410 executes the given scheme program or spawns an interactive shell
[47274444]411 </para>
[6f13fc0b]412 <indexterm zone="gnupg2 gpgscm">
413 <primary sortas="b-gpgscm">gpgscm</primary>
414 </indexterm>
415 </listitem>
416 </varlistentry>
417
[618aef19]418 <varlistentry id="gpgsm">
419 <term><command>gpgsm</command></term>
420 <listitem>
[47274444]421 <para>
[45fc41c7]422 is a tool similar to <command>gpg</command> used to provide
[47274444]423 digital encryption and signing services on X.509 certificates and
424 the CMS protocol. It is mainly used as a backend for S/MIME mail
[4c24eb0a]425 processing
[47274444]426 </para>
[618aef19]427 <indexterm zone="gnupg2 gpgsm">
428 <primary sortas="b-gpgsm">gpgsm</primary>
429 </indexterm>
430 </listitem>
431 </varlistentry>
432
[f455d4a]433 <varlistentry id="gpgsplit">
434 <term><command>gpgsplit</command></term>
435 <listitem>
436 <para>
[4c24eb0a]437 splits an OpenPGP message into packets
[f455d4a]438 </para>
439 <indexterm zone="gnupg2 gpgsplit">
440 <primary sortas="b-gpgsplit">gpgsplit</primary>
441 </indexterm>
442 </listitem>
443 </varlistentry>
444
[439d67f]445 <varlistentry id="gpgtar">
446 <term><command>gpgtar</command></term>
447 <listitem>
[47274444]448 <para>
[4c24eb0a]449 is a tool to encrypt or sign files into an archive
[47274444]450 </para>
[439d67f]451 <indexterm zone="gnupg2 gpgtar">
452 <primary sortas="b-gpgtar">gpgtar</primary>
453 </indexterm>
454 </listitem>
455 </varlistentry>
456
[68d0ff78]457 <varlistentry id="gpgv">
458 <term><command>gpgv</command></term>
459 <listitem>
[47274444]460 <para>
[45fc41c7]461 is a verify only version of <command>gpg</command>
[47274444]462 </para>
[68d0ff78]463 <indexterm zone="gnupg2 gpgv">
464 <primary sortas="b-gpgv">gpgv</primary>
465 </indexterm>
466 </listitem>
[6240159]467 </varlistentry>
468
469 <varlistentry id="gpg-wks-client">
470 <term><command>gpg-wks-client</command></term>
471 <listitem>
472 <para>
473 is a client for the
474 <application>Web Key Service</application> protocol
475 </para>
476 <indexterm zone="gnupg2 gpg-wks-client">
477 <primary sortas="b-gpg-wks-client">gpg-wks-client</primary>
478 </indexterm>
479 </listitem>
[68d0ff78]480 </varlistentry>
481
[5718cff]482 <varlistentry id="gpg-wks-server">
483 <term><command>gpg-wks-server</command></term>
484 <listitem>
[47274444]485 <para>
486 provides a server for the
[4c24eb0a]487 <application>Web Key Service</application> protocol
[47274444]488 </para>
[5718cff]489 <indexterm zone="gnupg2 gpg-wks-server">
490 <primary sortas="b-gpg-wks-server">gpg-wks-server</primary>
491 </indexterm>
492 </listitem>
493 </varlistentry>
[33f65424]494<!--
[fdaae04]495 <varlistentry id="gpg-zip">
496 <term><command>gpg-zip</command></term>
497 <listitem>
[47274444]498 <para>
[4c24eb0a]499 encrypts or signs files into an archive
[47274444]500 </para>
[fdaae04]501 <indexterm zone="gnupg2 gpg-zip">
502 <primary sortas="b-gpg-zip">gpg-zip</primary>
503 </indexterm>
504 </listitem>
505 </varlistentry>
[33f65424]506-->
[618aef19]507 <varlistentry id="kbxutil">
508 <term><command>kbxutil</command></term>
509 <listitem>
[47274444]510 <para>
[4c24eb0a]511 is used to list, export and import Keybox data
[47274444]512 </para>
[618aef19]513 <indexterm zone="gnupg2 kbxutil">
514 <primary sortas="b-kbxutil">kbxutil</primary>
515 </indexterm>
516 </listitem>
517 </varlistentry>
518
[c513d6e6]519 <!--
[584ded4]520 <varlistentry id="symcryptrun">
521 <term><command>symcryptrun</command></term>
522 <listitem>
[47274444]523 <para>
524 is a simple symmetric encryption tool.
525 </para>
[584ded4]526 <indexterm zone="gnupg2 symcryptrun">
527 <primary sortas="b-symcryptrun">symcryptrun</primary>
528 </indexterm>
529 </listitem>
530 </varlistentry>
[c513d6e6]531-->
[618aef19]532 <varlistentry id="watchgnupg">
533 <term><command>watchgnupg</command></term>
534 <listitem>
[47274444]535 <para>
536 is used to listen to a Unix Domain socket created by any of
[4c24eb0a]537 the GnuPG tools
[47274444]538 </para>
[618aef19]539 <indexterm zone="gnupg2 watchgnupg">
540 <primary sortas="b-watchgnupg">watchgnupg</primary>
541 </indexterm>
542 </listitem>
543 </varlistentry>
544
545 </variablelist>
546
547 </sect2>
548
549</sect1>
Note: See TracBrowser for help on using the repository browser.