Debian Codegraph @

README

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 The GNU Privacy Guard
2 =======================
3 Version 2.4
4
5 Copyright 1997-2019 Werner Koch
6 Copyright 1998-2021 Free Software Foundation, Inc.
7 Copyright 2003-2025 g10 Code GmbH
8
9
10 * INTRODUCTION
11
12 Note that the 2.4 series will reach end-of-life on 2026-06-30.
13 Please use the current stable version instead; this is currently
14 the 2.6 series starting with version 2.5.9.
15
16 GnuPG is a complete and free implementation of the OpenPGP standard
17 as defined by RFC4880 (also known as PGP). GnuPG enables encryption
18 and signing of data and communication, and features a versatile key
19 management system as well as access modules for public key
20 directories.
21
22 GnuPG, also known as GPG, is a command line tool with features for
23 easy integration with other applications. A wealth of frontend
24 applications and libraries are available that make use of GnuPG.
25 Starting with version 2 GnuPG provides support for S/MIME and Secure
26 Shell in addition to OpenPGP.
27
28 GnuPG is Free Software (meaning that it respects your freedom). It
29 can be freely used, modified and distributed under the terms of the
30 GNU General Public License.
31
32 * BUILD INSTRUCTIONS
33
34 GnuPG 2.4 depends on the following GnuPG related packages:
35
36 npth (https://gnupg.org/ftp/gcrypt/npth/)
37 libgpg-error (https://gnupg.org/ftp/gcrypt/libgpg-error/)
38 libgcrypt (https://gnupg.org/ftp/gcrypt/libgcrypt/)
39 libksba (https://gnupg.org/ftp/gcrypt/libksba/)
40 libassuan (https://gnupg.org/ftp/gcrypt/libassuan/)
41
42 You should get the latest versions of course, the GnuPG configure
43 script complains if a version is not sufficient.
44
45 Several other standard libraries are also required. The configure
46 script prints diagnostic messages if one of these libraries is not
47 available and a feature will not be available.
48
49 You also need the Pinentry package for most functions of GnuPG;
50 however it is not a build requirement. Pinentry is available at
51 https://gnupg.org/ftp/gcrypt/pinentry/ .
52
53 After building and installing the above packages in the order as
54 given above, you may continue with GnuPG installation (you may also
55 just try to build GnuPG to see whether your already installed
56 versions are sufficient).
57
58 As with all packages, you just have to do
59
60 mkdir build
61 cd build
62 ../configure
63 make
64 make check
65 make install
66
67 The "make check" is optional but highly recommended. To run even
68 more tests you may add "--enable-all-tests" to the configure run.
69 Before running the "make install" you might need to become root.
70
71 If everything succeeds, you have a working GnuPG with support for
72 OpenPGP, S/MIME, ssh-agent, and smartcards.
73
74 In case of problem please ask on the [email protected] mailing
75 list for advise.
76
77 Instruction on how to build for Windows can be found in the file
78 doc/HACKING in the section "How to build an installer for Windows".
79 This requires some experience as developer.
80
81 You may run
82
83 gpgconf -L
84
85 to view the directories used by GnuPG.
86
87 ** Quick build method on Unix
88
89 To quickly build all required software without installing it, the
90 Speedo target may be used:
91
92 make -f build-aux/speedo.mk native
93
94 This target downloads all required libraries and does a native build
95 of GnuPG to PLAY/inst/. GNU make and the patchelf tool are
96 required. After the build the entire software including all
97 libraries can be installed into an arbitrary location using for
98 example:
99
100 make -f build-aux/speedo.mk install SYSROOT=/usr/local/gnupg24
101 ldconfig -n /usr/local/gnupg24/lib
102
103 and adding /usr/local/gnupg24/bin to PATH.
104
105
106 ** Specific build problems on some machines:
107
108 *** Apple OSX 10.x using XCode
109
110 On some versions the correct location of a header file can't be
111 detected by configure. To fix that you should run configure like
112 this
113
114 ./configure gl_cv_absolute_stdint_h=/usr/include/stdint.h
115
116 Add other options as needed.
117
118
119 *** Systems without a full C99 compiler
120
121 If you run into problems with your compiler complaining about dns.c
122 you may use
123
124 ./configure --disable-libdns
125
126 Add other options as needed.
127
128
129
130 * RECOMMENDATIONS
131
132 ** Key database daemon
133
134 Since version 2.3.0 it is possible to store the keys in an SQLite
135 database instead of the keyring.kbx file. This is in particular
136 useful for large keyrings or if many instances of gpg and gpgsm may
137 run concurrently. This is implemented using another daemon process,
138 the "keyboxd". To enable the use of the keyboxd put the option
139 "use-keyboxd" into the configuration file ~/.gnupg/common.conf or the
140 global /etc/gnupg/common.conf. See also doc/examples/common.conf.
141 Only public keys and X.509 certificates are managed by the keyboxd;
142 private keys are still stored as separate files.
143
144 Since version 2.4.1 the keyboxd will be used by default for a fresh
145 install; i.e. if a ~/.gnupg directory did not yet exist.
146
147 Note that there is no automatic migration; if the use-keyboxd option
148 is enabled keys are not taken from pubring.kbx. To migrate existing
149 keys to the keyboxd do this:
150
151 1. Disable the keyboxd (remove use-keyboxd from common.conf)
152 2. Export all public keys
153 gpg --export --export-options backup > allkeys.gpg
154 gpgsm --export --armor > allcerts.gpg
155 3. Enable the keyboxd (add use-keyboxd to common.conf)
156 4. Import all public keys
157 gpg --import --import-options restore < allkeys.gpg
158 gpgsm --import < allcerts.crt
159
160 In case the keyboxd is not able to startup due to a stale lockfile
161 created by another host, the command
162
163 gpgconf --unlock pubring.db
164
165 can be used to remove the lock file.
166
167 ** Socket directory
168
169 GnuPG uses Unix domain sockets to connect its components (on Windows
170 an emulation of these sockets is used). Depending on the type of
171 the file system, it is sometimes not possible to use the GnuPG home
172 directory (i.e. ~/.gnupg) as the location for the sockets. To solve
173 this problem GnuPG prefers the use of a per-user directory below the
174 the /run (or /var/run) hierarchy for the sockets. It is thus
175 suggested to create per-user directories on system or session
176 startup. For example, the following snippet can be used in
177 /etc/rc.local to create these directories:
178
179 [ ! -d /run/user ] && mkdir /run/user
180 awk -F: </etc/passwd '$3 >= 1000 && $3 < 65000 {print $3}' \
181 | ( while read uid rest; do
182 if [ ! -d "/run/user/$uid" ]; then
183 mkdir /run/user/$uid
184 chown $uid /run/user/$uid
185 chmod 700 /run/user/$uid
186 fi
187 done )
188
189 ** Conflicts with systemd socket activation
190
191 Some Linux distribution use the meanwhile deprecated --supervised
192 option with gpg-agent, dirmngr, and keyboxd. The idea is that the
193 systemd process launches the daemons as soon as gpg or gpgsm try to
194 access them. However, this creates a race condition with GnuPG's
195 own on-demand launching of these daemon. It also conflicts with the
196 remote use gpg-agent because the no-autostart feature on the remote
197 site will not work as expected.
198
199 Thus the recommendation is not to use the --supervised option. All
200 GnuPG components handle the startup of their daemons on their own.
201
202 The only problem is that for using GnuPG's ssh-agent protocol
203 support, the gpg-agent must have been started before ssh. This can
204 either be done with an ssh wrapper running
205
206 gpg-connect-agent updatestartuptty /bye
207
208 for each new tty or by using that command directly after login when
209 the anyway required SSH_AUTH_SOCK envvar is set (see the example in
210 the gpg-agent man page).
211
212
213 * DOCUMENTATION
214
215 The complete documentation is in the texinfo manual named
216 `gnupg.info'. Run "info gnupg" to read it. If you want a
217 printable copy of the manual, change to the "doc" directory and
218 enter "make pdf" For a HTML version enter "make html" and point your
219 browser to gnupg.html/index.html. Standard man pages for all
220 components are provided as well. An online version of the manual is
221 available at [[https://gnupg.org/documentation/manuals/gnupg/]] . A
222 version of the manual pertaining to the current development snapshot
223 is at [[https://gnupg.org/documentation/manuals/gnupg-devel/]] .
224
225
226 * Using the legacy version GnuPG 1.4
227
228 The 1.4 version of GnuPG is only intended to allow decryption of old
229 data material using legacy keys which are not anymore supported by
230 GnuPG 2.x. To install both versions alongside, it is suggested to
231 rename the 1.4 version of "gpg" to "gpg1" as well as the
232 corresponding man page. Newer releases of the 1.4 branch will
233 likely do this by default.
234
235
236 * HOW TO GET MORE INFORMATION
237
238 A description of new features and changes since version 2.1 can be
239 found in the file "doc/whats-new-in-2.1.txt" and online at
240 "https://gnupg.org/faq/whats-new-in-2.1.html" .
241
242 The primary WWW page is "https://gnupg.org"
243 The primary FTP site is "https://gnupg.org/ftp/gcrypt/"
244
245 See [[https://gnupg.org/download/mirrors.html]] for a list of
246 mirrors and use them if possible. You may also find GnuPG mirrored
247 on some of the regular GNU mirrors.
248
249 We have some mailing lists dedicated to GnuPG:
250
251 [email protected] For important announcements like new
252 versions and such stuff. This is a
253 moderated list and has very low traffic.
254 Do not post to this list.
255
256 [email protected] For general user discussion and
257 help.
258
259 [email protected] GnuPG developers main forum.
260
261 You subscribe to one of the list by sending mail with a subject of
262 "subscribe" to [email protected], where x is the name of the
263 mailing list (gnupg-announce, gnupg-users, etc.). See
264 https://gnupg.org/documentation/mailing-lists.html for archives
265 of the mailing lists.
266
267 Please direct bug reports to [[https://bugs.gnupg.org]] or post them
268 direct to the mailing list <[email protected]>.
269
270 Please direct questions about GnuPG to the users mailing list or one
271 of the PGP newsgroups; please do not direct questions to one of the
272 authors directly as we are busy working on improvements and bug
273 fixes. The mailing lists are watched by the authors and we try to
274 answer questions as time allows us.
275
276 Commercial grade support for GnuPG is available; for a listing of
277 offers see https://gnupg.org/service.html . Maintaining and
278 improving GnuPG requires a lot of time. Since 2001, g10 Code GmbH,
279 a German company owned and headed by GnuPG's principal author Werner
280 Koch, is bearing the majority of these costs.
281
282 # This file is Free Software; as a special exception the authors gives
283 # unlimited permission to copy and/or distribute it, with or without
284 # modifications, as long as this notice is preserved. For conditions
285 # of the whole package, please see the file COPYING. This file is
286 # distributed in the hope that it will be useful, but WITHOUT ANY
287 # WARRANTY, to the extent permitted by law; without even the implied
288 # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
289 #
290 # Local Variables:
291 # mode:org
292 # End: