source: postlfs/security/gnupg2.xml@ 1bef49d

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 8.0 8.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 nosym 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 1bef49d was 1bef49d, checked in by Bruce Dubbs <bdubbs@…>, 8 years ago

Update to stunnel-5.35.
Update to gnupg-2.1.14.
Update to bluez-5.41.

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

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