Debian Codegraph @

README

raw ◀ ▶
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 Note that there is no automatic migration; if the use-keyboxd option
145 is enabled keys are not taken from pubring.kbx. To migrate existing
146 keys to the keyboxd do this:
147
148 1. Disable the keyboxd (remove use-keyboxd from common.conf)
149 2. Export all public keys
150 gpg --export --export-options backup > allkeys.gpg
151 gpgsm --export --armor > allcerts.gpg
152 3. Enable the keyboxd (add use-keyboxd to common.conf)
153 4. Import all public keys
154 gpg --import --import-options restore < allkeys.gpg
155 gpgsm --import < allcerts.crt
156
157 In case the keyboxd is not able to startup due to a stale lockfile
158 created by another host, the command
159
160 gpgconf --unlock pubring.db
161
162 can be used to remove the lock file.
163
164 ** Socket directory
165
166 GnuPG uses Unix domain sockets to connect its components (on Windows
167 an emulation of these sockets is used). Depending on the type of
168 the file system, it is sometimes not possible to use the GnuPG home
169 directory (i.e. ~/.gnupg) as the location for the sockets. To solve
170 this problem GnuPG prefers the use of a per-user directory below the
171 the /run (or /var/run) hierarchy for the sockets. It is thus
172 suggested to create per-user directories on system or session
173 startup. For example, the following snippet can be used in
174 /etc/rc.local to create these directories:
175
176 [ ! -d /run/user ] && mkdir /run/user
177 awk -F: </etc/passwd '$3 >= 1000 && $3 < 65000 {print $3}' \
178 | ( while read uid rest; do
179 if [ ! -d "/run/user/$uid" ]; then
180 mkdir /run/user/$uid
181 chown $uid /run/user/$uid
182 chmod 700 /run/user/$uid
183 fi
184 done )
185
186 ** Conflicts with systemd socket activation
187
188 Some Linux distribution use the meanwhile deprecated --supervised
189 option with gpg-agent, dirmngr, and keyboxd. The idea is that the
190 systemd process launches the daemons as soon as gpg or gpgsm try to
191 access them. However, this creates a race condition with GnuPG's
192 own on-demand launching of these daemon. It also conflicts with the
193 remote use gpg-agent because the no-autostart feature on the remote
194 site will not work as expected.
195
196 Thus the recommendation is not to use the --supervised option. All
197 GnuPG components handle the startup of their daemons on their own.
198
199 The only problem is that for using GnuPG's ssh-agent protocol
200 support, the gpg-agent must have been started before ssh. This can
201 either be done with an ssh wrapper running
202
203 gpg-connect-agent updatestartuptty /bye
204
205 for each new tty or by using that command directly after login when
206 the anyway required SSH_AUTH_SOCK envvar is set (see the example in
207 the gpg-agent man page).
208
209
210 * DOCUMENTATION
211
212 The complete documentation is in the texinfo manual named
213 `gnupg.info'. Run "info gnupg" to read it. If you want a
214 printable copy of the manual, change to the "doc" directory and
215 enter "make pdf" For a HTML version enter "make html" and point your
216 browser to gnupg.html/index.html. Standard man pages for all
217 components are provided as well. An online version of the manual is
218 available at [[https://gnupg.org/documentation/manuals/gnupg/]] . A
219 version of the manual pertaining to the current development snapshot
220 is at [[https://gnupg.org/documentation/manuals/gnupg-devel/]] .
221
222
223 * Using the legacy version GnuPG 1.4
224
225 The 1.4 version of GnuPG is only intended to allow decryption of old
226 data material using legacy keys which are not anymore supported by
227 GnuPG 2.x. To install both versions alongside, it is suggested to
228 rename the 1.4 version of "gpg" to "gpg1" as well as the
229 corresponding man page. Newer releases of the 1.4 branch will
230 likely do this by default.
231
232
233 * HOW TO GET MORE INFORMATION
234
235 A description of new features and changes since version 2.1 can be
236 found in the file "doc/whats-new-in-2.1.txt" and online at
237 "https://gnupg.org/faq/whats-new-in-2.1.html" .
238
239 The primary WWW page is "https://gnupg.org"
240 The primary FTP site is "https://gnupg.org/ftp/gcrypt/"
241
242 See [[https://gnupg.org/download/mirrors.html]] for a list of
243 mirrors and use them if possible. You may also find GnuPG mirrored
244 on some of the regular GNU mirrors.
245
246 We have some mailing lists dedicated to GnuPG:
247
248 [email protected] For important announcements like new
249 versions and such stuff. This is a
250 moderated list and has very low traffic.
251 Do not post to this list.
252
253 [email protected] For general user discussion and
254 help.
255
256 [email protected] GnuPG developers main forum.
257
258 You subscribe to one of the list by sending mail with a subject of
259 "subscribe" to [email protected], where x is the name of the
260 mailing list (gnupg-announce, gnupg-users, etc.). See
261 https://gnupg.org/documentation/mailing-lists.html for archives
262 of the mailing lists.
263
264 Please direct bug reports to [[https://bugs.gnupg.org]] or post them
265 direct to the mailing list <[email protected]>.
266
267 Please direct questions about GnuPG to the users mailing list or one
268 of the PGP newsgroups; please do not direct questions to one of the
269 authors directly as we are busy working on improvements and bug
270 fixes. The mailing lists are watched by the authors and we try to
271 answer questions as time allows us.
272
273 Commercial grade support for GnuPG is available; for a listing of
274 offers see https://gnupg.org/service.html . Maintaining and
275 improving GnuPG requires a lot of time. Since 2001, g10 Code GmbH,
276 a German company owned and headed by GnuPG's principal author Werner
277 Koch, is bearing the majority of these costs.
278
279 # This file is Free Software; as a special exception the authors gives
280 # unlimited permission to copy and/or distribute it, with or without
281 # modifications, as long as this notice is preserved. For conditions
282 # of the whole package, please see the file COPYING. This file is
283 # distributed in the hope that it will be useful, but WITHOUT ANY
284 # WARRANTY, to the extent permitted by law; without even the implied
285 # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
286 #
287 # Local Variables:
288 # mode:org
289 # End: