1 <?xml version=
"1.0" encoding=
"utf-8" standalone=
"no"?>
2 <!DOCTYPE refentry PUBLIC
"-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
5 <!ENTITY % aptent SYSTEM
"apt.ent">
8 <!ENTITY % aptverbatiment SYSTEM
"apt-verbatim.ent">
17 <refentrytitle>apt-key
</refentrytitle>
18 <manvolnum>8</manvolnum>
19 <refmiscinfo class=
"manual">APT
</refmiscinfo>
22 <!-- Man page title -->
24 <refname>apt-key
</refname>
25 <refpurpose>APT key management utility
</refpurpose>
28 &synopsis-command-apt-key;
30 <refsect1><title>Description
</title>
32 <command>apt-key
</command> is used to manage the list of keys used
33 by apt to authenticate packages. Packages which have been
34 authenticated using these keys will be considered trusted.
38 <refsect1><title>Commands
</title>
40 <varlistentry><term>add &synopsis-param-filename;
</term>
44 Add a new key to the list of trusted keys. The key is read
45 from &synopsis-param-filename;, or standard input if
46 &synopsis-param-filename; is
<literal>-
</literal>.
52 <varlistentry><term>del &synopsis-param-keyid;
</term>
56 Remove a key from the list of trusted keys.
63 <varlistentry><term>export &synopsis-param-keyid;
</term>
67 Output the key &synopsis-param-keyid; to standard output.
74 <varlistentry><term>exportall
</term>
78 Output all trusted keys to standard output.
85 <varlistentry><term>list
</term>
96 <varlistentry><term>finger
</term>
100 List fingerprints of trusted keys.
107 <varlistentry><term>adv
</term>
111 Pass advanced options to gpg. With adv --recv-key you can download the
119 <varlistentry><term>update
</term>
123 Update the local keyring with the archive keyring and remove from
124 the local keyring the archive keys which are no longer valid.
125 The archive keyring is shipped in the
<literal>archive-keyring
</literal> package of your
126 distribution, e.g. the
<literal>debian-archive-keyring
</literal> package in Debian.
133 <varlistentry><term>net-update
</term>
137 Work similar to the
<command>update
</command> command above, but get the
138 archive keyring from an URI instead and validate it against a master key.
140 This requires an installed
&wget; and an APT build configured to have
141 a server to fetch from and a master keyring to validate.
143 APT in Debian does not support this command and relies on
144 <command>update
</command> instead, but Ubuntu's APT does.
153 <refsect1><title>Options
</title>
154 <para>Note that options need to be defined before the commands described in the previous section.
</para>
156 <varlistentry><term>--keyring &synopsis-param-filename;
</term>
157 <listitem><para>With this option it is possible to specify a specific keyring
158 file the command should operate on. The default is that a command is executed
159 on the
<filename>trusted.gpg
</filename> file as well as on all parts in the
160 <filename>trusted.gpg.d
</filename> directory, though
<filename>trusted.gpg
</filename>
161 is the primary keyring which means that e.g. new keys are added to this one.
167 <refsect1><title>Files
</title>
172 <varlistentry><term><filename>/etc/apt/trustdb.gpg
</filename></term>
173 <listitem><para>Local trust database of archive keys.
</para></listitem>
176 <varlistentry><term><filename>/usr/share/keyrings/debian-archive-keyring.gpg
</filename></term>
177 <listitem><para>Keyring of Debian archive trusted keys.
</para></listitem>
180 <varlistentry><term><filename>/usr/share/keyrings/debian-archive-removed-keys.gpg
</filename></term>
181 <listitem><para>Keyring of Debian archive removed trusted keys.
</para></listitem>
188 <refsect1><title>See Also
</title>
190 &apt-get;, &apt-secure;