apt-key.8.xml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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;
  7. ]>
  8. <refentry>
  9. <refentryinfo>
  10. &apt-author.jgunthorpe;
  11. &apt-author.team;
  12. &apt-email;
  13. &apt-product;
  14. <!-- The last update date -->
  15. <date>2015-10-15T00:00:00Z</date>
  16. </refentryinfo>
  17. <refmeta>
  18. <refentrytitle>apt-key</refentrytitle>
  19. <manvolnum>8</manvolnum>
  20. <refmiscinfo class="manual">APT</refmiscinfo>
  21. </refmeta>
  22. <!-- Man page title -->
  23. <refnamediv>
  24. <refname>apt-key</refname>
  25. <refpurpose>APT key management utility</refpurpose>
  26. </refnamediv>
  27. &synopsis-command-apt-key;
  28. <refsect1><title>Description</title>
  29. <para>
  30. <command>apt-key</command> is used to manage the list of keys used
  31. by apt to authenticate packages. Packages which have been
  32. authenticated using these keys will be considered trusted.
  33. </para>
  34. </refsect1>
  35. <refsect1><title>Commands</title>
  36. <variablelist>
  37. <varlistentry><term><option>add</option> <option>&synopsis-param-filename;</option></term>
  38. <listitem>
  39. <para>
  40. Add a new key to the list of trusted keys.
  41. The key is read from the filename given with the parameter
  42. &synopsis-param-filename; or if the filename is <literal>-</literal>
  43. from standard input.
  44. </para>
  45. <para>
  46. It is critical that keys added manually via <command>apt-key</command> are
  47. verified to belong to the owner of the repositories they claim to be for
  48. otherwise the &apt-secure; infrastructure is completely undermined.
  49. </para>
  50. </listitem>
  51. </varlistentry>
  52. <varlistentry><term><option>del</option> <option>&synopsis-param-keyid;</option></term>
  53. <listitem>
  54. <para>
  55. Remove a key from the list of trusted keys.
  56. </para>
  57. </listitem>
  58. </varlistentry>
  59. <varlistentry><term><option>export</option> <option>&synopsis-param-keyid;</option></term>
  60. <listitem>
  61. <para>
  62. Output the key &synopsis-param-keyid; to standard output.
  63. </para>
  64. </listitem>
  65. </varlistentry>
  66. <varlistentry><term><option>exportall</option></term>
  67. <listitem>
  68. <para>
  69. Output all trusted keys to standard output.
  70. </para>
  71. </listitem>
  72. </varlistentry>
  73. <varlistentry><term><option>list</option>, <option>finger</option></term>
  74. <listitem>
  75. <para>
  76. List trusted keys with fingerprints.
  77. </para>
  78. </listitem>
  79. </varlistentry>
  80. <varlistentry><term><option>adv</option></term>
  81. <listitem>
  82. <para>
  83. Pass advanced options to gpg. With <command>adv --recv-key</command> you
  84. can e.g. download key from keyservers directly into the the trusted set of
  85. keys. Note that there are <emphasis>no</emphasis> checks performed, so it is
  86. easy to completely undermine the &apt-secure; infrastructure if used without
  87. care.
  88. </para>
  89. </listitem>
  90. </varlistentry>
  91. <varlistentry><term><option>update</option></term>
  92. <listitem>
  93. <para>
  94. Update the local keyring with the archive keyring and remove from
  95. the local keyring the archive keys which are no longer valid.
  96. The archive keyring is shipped in the <literal>archive-keyring</literal> package of your
  97. distribution, e.g. the &keyring-package; package in &keyring-distro;.
  98. </para>
  99. </listitem>
  100. </varlistentry>
  101. <varlistentry><term><option>net-update</option></term>
  102. <listitem>
  103. <para>
  104. Perform an update working similarly to the <command>update</command> command above,
  105. but get the archive keyring from a URI instead and validate it against a master key.
  106. This requires an installed &wget; and an APT build configured to have
  107. a server to fetch from and a master keyring to validate.
  108. APT in Debian does not support this command, relying on
  109. <command>update</command> instead, but Ubuntu's APT does.
  110. </para>
  111. </listitem>
  112. </varlistentry>
  113. </variablelist>
  114. </refsect1>
  115. <refsect1><title>Options</title>
  116. <para>Note that options need to be defined before the commands described in the previous section.</para>
  117. <variablelist>
  118. <varlistentry><term><option>--keyring</option> <option>&synopsis-param-filename;</option></term>
  119. <listitem><para>With this option it is possible to specify a particular keyring
  120. file the command should operate on. The default is that a command is executed
  121. on the <filename>trusted.gpg</filename> file as well as on all parts in the
  122. <filename>trusted.gpg.d</filename> directory, though <filename>trusted.gpg</filename>
  123. is the primary keyring which means that e.g. new keys are added to this one.
  124. </para></listitem>
  125. </varlistentry>
  126. </variablelist>
  127. </refsect1>
  128. <refsect1><title>Files</title>
  129. <variablelist>
  130. &file-trustedgpg;
  131. <varlistentry><term><filename>/etc/apt/trustdb.gpg</filename></term>
  132. <listitem><para>Local trust database of archive keys.</para></listitem>
  133. </varlistentry>
  134. <varlistentry><term>&keyring-filename;</term>
  135. <listitem><para>Keyring of &keyring-distro; archive trusted keys.</para></listitem>
  136. </varlistentry>
  137. <varlistentry><term>&keyring-removed-filename;</term>
  138. <listitem><para>Keyring of &keyring-distro; archive removed trusted keys.</para></listitem>
  139. </varlistentry>
  140. </variablelist>
  141. </refsect1>
  142. <refsect1><title>See Also</title>
  143. <para>
  144. &apt-get;, &apt-secure;
  145. </para>
  146. </refsect1>
  147. &manbugs;
  148. &manauthor;
  149. </refentry>