source: postlfs/security/gnupg2.xml@ b62a2a68

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 b62a2a68 was b62a2a68, checked in by Ken Moffat <ken@…>, 6 years ago

tags: I was convinced I had already done some of these.

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

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