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><replaceable>command
</replaceable>/
</arg>
30 <arg rep=
"repeat"><option><replaceable>arguments
</replaceable></option></arg>
34 <refsect1><title>Description
</title>
36 <command>apt-key
</command> is used to manage the list of keys used
37 by apt to authenticate packages. Packages which have been
38 authenticated using these keys will be considered trusted.
42 <refsect1><title>Commands
</title>
44 <varlistentry><term>add
<replaceable>filename
</replaceable></term>
48 Add a new key to the list of trusted keys. The key is read
49 from
<replaceable>filename
</replaceable>, or standard input if
50 <replaceable>filename
</replaceable> is
<literal>-
</literal>.
56 <varlistentry><term>del
<replaceable>keyid
</replaceable></term>
60 Remove a key from the list of trusted keys.
67 <varlistentry><term>export
<replaceable>keyid
</replaceable></term>
71 Output the key
<replaceable>keyid
</replaceable> to standard output.
78 <varlistentry><term>exportall
</term>
82 Output all trusted keys to standard output.
89 <varlistentry><term>list
</term>
100 <varlistentry><term>finger
</term>
104 List fingerprints of trusted keys.
111 <varlistentry><term>adv
</term>
115 Pass advanced options to gpg. With adv --recv-key you can download the
123 <varlistentry><term>update
</term>
127 Update the local keyring with the keyring of Debian archive
128 keys and removes from the keyring the archive keys which are no
138 <refsect1><title>Files
</title>
140 <varlistentry><term><filename>/etc/apt/trusted.gpg
</filename></term>
141 <listitem><para>Keyring of local trusted keys, new keys will be added here.
</para></listitem>
144 <varlistentry><term><filename>/etc/apt/trustdb.gpg
</filename></term>
145 <listitem><para>Local trust database of archive keys.
</para></listitem>
148 <varlistentry><term><filename>/usr/share/keyrings/debian-archive-keyring.gpg
</filename></term>
149 <listitem><para>Keyring of Debian archive trusted keys.
</para></listitem>
152 <varlistentry><term><filename>/usr/share/keyrings/debian-archive-removed-keys.gpg
</filename></term>
153 <listitem><para>Keyring of Debian archive removed trusted keys.
</para></listitem>
162 <refsect1><title>See Also
</title>
164 &apt-get;, &apt-secure;