1APT-KEY(8)                            APT                           APT-KEY(8)
2
3
4

NAME

6       apt-key - Deprecated APT key management utility
7

SYNOPSIS

9       apt-key [--keyring filename] {add filename | del keyid | export keyid |
10               exportall | list | finger | adv | update | net-update |
11               {-v | --version} | {-h | --help}}
12

DESCRIPTION

14       apt-key is used to manage the list of keys used by apt to authenticate
15       packages. Packages which have been authenticated using these keys will
16       be considered trusted.
17
18       Use of apt-key is deprecated, except for the use of apt-key del in
19       maintainer scripts to remove existing keys from the main keyring. If
20       such usage of apt-key is desired the additional installation of the GNU
21       Privacy Guard suite (packaged in gnupg) is required.
22
23       apt-key(8) will last be available in Debian 11 and Ubuntu 22.04.
24

SUPPORTED KEYRING FILES

26       apt-key supports only the binary OpenPGP format (also known as "GPG key
27       public ring") in files with the "gpg" extension, not the keybox
28       database format introduced in newer gpg(1) versions as default for
29       keyring files. Binary keyring files intended to be used with any apt
30       version should therefore always be created with gpg --export.
31
32       Alternatively, if all systems which should be using the created keyring
33       have at least apt version >= 1.4 installed, you can use the ASCII
34       armored format with the "asc" extension instead which can be created
35       with gpg --armor --export.
36

COMMANDS

38       add filename (deprecated)
39           Add a new key to the list of trusted keys. The key is read from the
40           filename given with the parameter filename or if the filename is -
41           from standard input.
42
43           It is critical that keys added manually via apt-key are verified to
44           belong to the owner of the repositories they claim to be for
45           otherwise the apt-secure(8) infrastructure is completely
46           undermined.
47
48           Note: Instead of using this command a keyring should be placed
49           directly in the /etc/apt/trusted.gpg.d/ directory with a
50           descriptive name and either "gpg" or "asc" as file extension.
51
52       del keyid (mostly deprecated)
53           Remove a key from the list of trusted keys.
54
55       export keyid (deprecated)
56           Output the key keyid to standard output.
57
58       exportall (deprecated)
59           Output all trusted keys to standard output.
60
61       list, finger (deprecated)
62           List trusted keys with fingerprints.
63
64       adv (deprecated)
65           Pass advanced options to gpg. With adv --recv-key you can e.g.
66           download key from keyservers directly into the trusted set of keys.
67           Note that there are no checks performed, so it is easy to
68           completely undermine the apt-secure(8) infrastructure if used
69           without care.
70
71       update (deprecated)
72           Update the local keyring with the archive keyring and remove from
73           the local keyring the archive keys which are no longer valid. The
74           archive keyring is shipped in the archive-keyring package of your
75           distribution, e.g. the debian-archive-keyring package in Debian.
76
77           Note that a distribution does not need to and in fact should not
78           use this command any longer and instead ship keyring files in the
79           /etc/apt/trusted.gpg.d/ directory directly as this avoids a
80           dependency on gnupg and it is easier to manage keys by simply
81           adding and removing files for maintainers and users alike.
82
83       net-update (deprecated)
84           Perform an update working similarly to the update command above,
85           but get the archive keyring from a URI instead and validate it
86           against a master key. This requires an installed wget(1) and an APT
87           build configured to have a server to fetch from and a master
88           keyring to validate. APT in Debian does not support this command,
89           relying on update instead, but Ubuntu's APT does.
90

OPTIONS

92       Note that options need to be defined before the commands described in
93       the previous section.
94
95       --keyring filename (deprecated)
96           With this option it is possible to specify a particular keyring
97           file the command should operate on. The default is that a command
98           is executed on the trusted.gpg file as well as on all parts in the
99           trusted.gpg.d directory, though trusted.gpg is the primary keyring
100           which means that e.g. new keys are added to this one.
101

FILES

103       /etc/apt/trusted.gpg
104           Keyring of local trusted keys, new keys will be added here.
105           Configuration Item: Dir::Etc::Trusted.
106
107       /etc/apt/trusted.gpg.d/
108           File fragments for the trusted keys, additional keyrings can be
109           stored here (by other packages or the administrator). Configuration
110           Item Dir::Etc::TrustedParts.
111

SEE ALSO

113       apt-get(8), apt-secure(8)
114

BUGS

116       APT bug page[1]. If you wish to report a bug in APT, please see
117       /usr/share/doc/debian/bug-reporting.txt or the reportbug(1) command.
118

AUTHOR

120       APT was written by the APT team <apt@packages.debian.org>.
121

AUTHORS

123       Jason Gunthorpe
124
125       APT team
126

NOTES

128        1. APT bug page
129           http://bugs.debian.org/src:apt
130
131
132
133APT 2.3.11                        06 May 2020                       APT-KEY(8)
Impressum