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" [
5 <!ENTITY % aptent SYSTEM
"apt.ent">
8 <!ENTITY % aptverbatiment SYSTEM
"apt-verbatim.ent">
11 <!ENTITY % aptvendor SYSTEM
"apt-vendor.ent">
17 &apt-author.jgunthorpe;
21 <!-- The last update date -->
22 <date>2012-
06-
09T00:
00:
00Z
</date>
26 <refentrytitle>apt-key
</refentrytitle>
27 <manvolnum>8</manvolnum>
28 <refmiscinfo class=
"manual">APT
</refmiscinfo>
31 <!-- Man page title -->
33 <refname>apt-key
</refname>
34 <refpurpose>APT key management utility
</refpurpose>
37 &synopsis-command-apt-key;
39 <refsect1><title>Description
</title>
41 <command>apt-key
</command> is used to manage the list of keys used
42 by apt to authenticate packages. Packages which have been
43 authenticated using these keys will be considered trusted.
47 <refsect1><title>Commands
</title>
49 <varlistentry><term><option>add
</option> <option>&synopsis-param-filename;
</option></term>
52 Add a new key to the list of trusted keys.
53 The key is read from the filename given with the parameter
54 &synopsis-param-filename; or if the filename is
<literal>-
</literal>
61 <varlistentry><term><option>del
</option> <option>&synopsis-param-keyid;
</option></term>
65 Remove a key from the list of trusted keys.
72 <varlistentry><term><option>export
</option> <option>&synopsis-param-keyid;
</option></term>
76 Output the key &synopsis-param-keyid; to standard output.
83 <varlistentry><term><option>exportall
</option></term>
87 Output all trusted keys to standard output.
94 <varlistentry><term><option>list
</option></term>
105 <varlistentry><term><option>finger
</option></term>
109 List fingerprints of trusted keys.
116 <varlistentry><term><option>adv
</option></term>
120 Pass advanced options to gpg. With adv --recv-key you can download the
128 <varlistentry><term><option>update
</option></term>
132 Update the local keyring with the archive keyring and remove from
133 the local keyring the archive keys which are no longer valid.
134 The archive keyring is shipped in the
<literal>archive-keyring
</literal> package of your
135 distribution, e.g. the &keyring-package; package in &keyring-distro;.
142 <varlistentry><term><option>net-update
</option></term>
146 Perform an update working similarly to the
<command>update
</command> command above,
147 but get the archive keyring from a URI instead and validate it against a master key.
149 This requires an installed
&wget; and an APT build configured to have
150 a server to fetch from and a master keyring to validate.
152 APT in Debian does not support this command, relying on
153 <command>update
</command> instead, but Ubuntu's APT does.
162 <refsect1><title>Options
</title>
163 <para>Note that options need to be defined before the commands described in the previous section.
</para>
165 <varlistentry><term><option>--keyring
</option> <option>&synopsis-param-filename;
</option></term>
166 <listitem><para>With this option it is possible to specify a particular keyring
167 file the command should operate on. The default is that a command is executed
168 on the
<filename>trusted.gpg
</filename> file as well as on all parts in the
169 <filename>trusted.gpg.d
</filename> directory, though
<filename>trusted.gpg
</filename>
170 is the primary keyring which means that e.g. new keys are added to this one.
176 <refsect1><title>Files
</title>
181 <varlistentry><term><filename>/etc/apt/trustdb.gpg
</filename></term>
182 <listitem><para>Local trust database of archive keys.
</para></listitem>
185 <varlistentry><term>&keyring-filename;
</term>
186 <listitem><para>Keyring of &keyring-distro; archive trusted keys.
</para></listitem>
189 <varlistentry><term>&keyring-removed-filename;
</term>
190 <listitem><para>Keyring of &keyring-distro; archive removed trusted keys.
</para></listitem>
197 <refsect1><title>See Also
</title>
199 &apt-get;, &apt-secure;