1 <?xml version=
"1.0" encoding=
"utf-8" standalone=
"no"?>
2 <!DOCTYPE refentry PUBLIC
"-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % aptent SYSTEM
"apt.ent"> %aptent;
5 <!ENTITY % aptverbatiment SYSTEM
"apt-verbatim.ent"> %aptverbatiment;
6 <!ENTITY % aptvendor SYSTEM
"apt-vendor.ent"> %aptvendor;
11 &apt-author.jgunthorpe;
15 <!-- The last update date -->
16 <date>2012-
06-
09T00:
00:
00Z
</date>
20 <refentrytitle>apt-key
</refentrytitle>
21 <manvolnum>8</manvolnum>
22 <refmiscinfo class=
"manual">APT
</refmiscinfo>
25 <!-- Man page title -->
27 <refname>apt-key
</refname>
28 <refpurpose>APT key management utility
</refpurpose>
31 &synopsis-command-apt-key;
33 <refsect1><title>Description
</title>
35 <command>apt-key
</command> is used to manage the list of keys used
36 by apt to authenticate packages. Packages which have been
37 authenticated using these keys will be considered trusted.
41 <refsect1><title>Commands
</title>
43 <varlistentry><term><option>add
</option> <option>&synopsis-param-filename;
</option></term>
46 Add a new key to the list of trusted keys.
47 The key is read from the filename given with the parameter
48 &synopsis-param-filename; or if the filename is
<literal>-
</literal>
55 <varlistentry><term><option>del
</option> <option>&synopsis-param-keyid;
</option></term>
59 Remove a key from the list of trusted keys.
66 <varlistentry><term><option>export
</option> <option>&synopsis-param-keyid;
</option></term>
70 Output the key &synopsis-param-keyid; to standard output.
77 <varlistentry><term><option>exportall
</option></term>
81 Output all trusted keys to standard output.
88 <varlistentry><term><option>list
</option></term>
99 <varlistentry><term><option>finger
</option></term>
103 List fingerprints of trusted keys.
110 <varlistentry><term><option>adv
</option></term>
114 Pass advanced options to gpg. With adv --recv-key you can download the
122 <varlistentry><term><option>update
</option></term>
126 Update the local keyring with the archive keyring and remove from
127 the local keyring the archive keys which are no longer valid.
128 The archive keyring is shipped in the
<literal>archive-keyring
</literal> package of your
129 distribution, e.g. the &keyring-package; package in &keyring-distro;.
136 <varlistentry><term><option>net-update
</option></term>
140 Perform an update working similarly to the
<command>update
</command> command above,
141 but get the archive keyring from a URI instead and validate it against a master key.
143 This requires an installed
&wget; and an APT build configured to have
144 a server to fetch from and a master keyring to validate.
146 APT in Debian does not support this command, relying on
147 <command>update
</command> instead, but Ubuntu's APT does.
156 <refsect1><title>Options
</title>
157 <para>Note that options need to be defined before the commands described in the previous section.
</para>
159 <varlistentry><term><option>--keyring
</option> <option>&synopsis-param-filename;
</option></term>
160 <listitem><para>With this option it is possible to specify a particular keyring
161 file the command should operate on. The default is that a command is executed
162 on the
<filename>trusted.gpg
</filename> file as well as on all parts in the
163 <filename>trusted.gpg.d
</filename> directory, though
<filename>trusted.gpg
</filename>
164 is the primary keyring which means that e.g. new keys are added to this one.
170 <refsect1><title>Files
</title>
175 <varlistentry><term><filename>/etc/apt/trustdb.gpg
</filename></term>
176 <listitem><para>Local trust database of archive keys.
</para></listitem>
179 <varlistentry><term>&keyring-filename;
</term>
180 <listitem><para>Keyring of &keyring-distro; archive trusted keys.
</para></listitem>
183 <varlistentry><term>&keyring-removed-filename;
</term>
184 <listitem><para>Keyring of &keyring-distro; archive removed trusted keys.
</para></listitem>
191 <refsect1><title>See Also
</title>
193 &apt-get;, &apt-secure;