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">
14 <refentrytitle>apt-key
</refentrytitle>
15 <manvolnum>8</manvolnum>
16 <refmiscinfo class=
"manual">APT
</refmiscinfo>
19 <!-- Man page title -->
21 <refname>apt-key
</refname>
22 <refpurpose>APT key management utility
</refpurpose>
28 <command>apt-key
</command>
29 <arg><option>--keyring
<replaceable>filename
</replaceable></option></arg>
30 <arg><replaceable>command
</replaceable></arg>
31 <arg rep=
"repeat"><option><replaceable>arguments
</replaceable></option></arg>
35 <refsect1><title>Description
</title>
37 <command>apt-key
</command> is used to manage the list of keys used
38 by apt to authenticate packages. Packages which have been
39 authenticated using these keys will be considered trusted.
43 <refsect1><title>Commands
</title>
45 <varlistentry><term>add
<replaceable>filename
</replaceable></term>
49 Add a new key to the list of trusted keys. The key is read
50 from
<replaceable>filename
</replaceable>, or standard input if
51 <replaceable>filename
</replaceable> is
<literal>-
</literal>.
57 <varlistentry><term>del
<replaceable>keyid
</replaceable></term>
61 Remove a key from the list of trusted keys.
68 <varlistentry><term>export
<replaceable>keyid
</replaceable></term>
72 Output the key
<replaceable>keyid
</replaceable> to standard output.
79 <varlistentry><term>exportall
</term>
83 Output all trusted keys to standard output.
90 <varlistentry><term>list
</term>
101 <varlistentry><term>finger
</term>
105 List fingerprints of trusted keys.
112 <varlistentry><term>adv
</term>
116 Pass advanced options to gpg. With adv --recv-key you can download the
124 <varlistentry><term>update
</term>
128 Update the local keyring with the keyring of Debian archive
129 keys and removes from the keyring the archive keys which are no
139 <refsect1><title>Options
</title>
140 <para>Note that options need to be defined before the commands described in the previous section.
</para>
142 <varlistentry><term>--keyring
<replaceable>filename
</replaceable></term>
143 <listitem><para>With this option it is possible to specify a specific keyring
144 file the command should operate on. The default is that a command is executed
145 on the
<filename>trusted.gpg
</filename> file as well as on all parts in the
146 <filename>trusted.gpg.d
</filename> directory, through
<filename>trusted.gpg
</filename>
147 is the primary keyring which means that e.g. new keys are added to this one.
153 <refsect1><title>Files
</title>
158 <varlistentry><term><filename>/etc/apt/trustdb.gpg
</filename></term>
159 <listitem><para>Local trust database of archive keys.
</para></listitem>
162 <varlistentry><term><filename>/usr/share/keyrings/debian-archive-keyring.gpg
</filename></term>
163 <listitem><para>Keyring of Debian archive trusted keys.
</para></listitem>
166 <varlistentry><term><filename>/usr/share/keyrings/debian-archive-removed-keys.gpg
</filename></term>
167 <listitem><para>Keyring of Debian archive removed trusted keys.
</para></listitem>
174 <refsect1><title>See Also
</title>
176 &apt-get;, &apt-secure;