apt-key.8.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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">
  5. %aptent;
  6. <!ENTITY % aptverbatiment SYSTEM "apt-verbatim.ent">
  7. %aptverbatiment;
  8. ]>
  9. <refentry>
  10. <refentryinfo>
  11. &apt-author.jgunthorpe;
  12. &apt-author.team;
  13. &apt-email;
  14. &apt-product;
  15. <!-- The last update date -->
  16. <date>2012-06-09T00:00:00Z</date>
  17. </refentryinfo>
  18. <refmeta>
  19. <refentrytitle>apt-key</refentrytitle>
  20. <manvolnum>8</manvolnum>
  21. <refmiscinfo class="manual">APT</refmiscinfo>
  22. </refmeta>
  23. <!-- Man page title -->
  24. <refnamediv>
  25. <refname>apt-key</refname>
  26. <refpurpose>APT key management utility</refpurpose>
  27. </refnamediv>
  28. &synopsis-command-apt-key;
  29. <refsect1><title>Description</title>
  30. <para>
  31. <command>apt-key</command> is used to manage the list of keys used
  32. by apt to authenticate packages. Packages which have been
  33. authenticated using these keys will be considered trusted.
  34. </para>
  35. </refsect1>
  36. <refsect1><title>Commands</title>
  37. <variablelist>
  38. <varlistentry><term><option>add</option> <option>&synopsis-param-filename;</option></term>
  39. <listitem>
  40. <para>
  41. Add a new key to the list of trusted keys.
  42. The key is read from the filename given with the parameter
  43. &synopsis-param-filename; or if the filename is <literal>-</literal>
  44. from standard input.
  45. </para>
  46. </listitem>
  47. </varlistentry>
  48. <varlistentry><term><option>del</option> <option>&synopsis-param-keyid;</option></term>
  49. <listitem>
  50. <para>
  51. Remove a key from the list of trusted keys.
  52. </para>
  53. </listitem>
  54. </varlistentry>
  55. <varlistentry><term><option>export</option> <option>&synopsis-param-keyid;</option></term>
  56. <listitem>
  57. <para>
  58. Output the key &synopsis-param-keyid; to standard output.
  59. </para>
  60. </listitem>
  61. </varlistentry>
  62. <varlistentry><term><option>exportall</option></term>
  63. <listitem>
  64. <para>
  65. Output all trusted keys to standard output.
  66. </para>
  67. </listitem>
  68. </varlistentry>
  69. <varlistentry><term><option>list</option></term>
  70. <listitem>
  71. <para>
  72. List trusted keys.
  73. </para>
  74. </listitem>
  75. </varlistentry>
  76. <varlistentry><term><option>finger</option></term>
  77. <listitem>
  78. <para>
  79. List fingerprints of trusted keys.
  80. </para>
  81. </listitem>
  82. </varlistentry>
  83. <varlistentry><term><option>adv</option></term>
  84. <listitem>
  85. <para>
  86. Pass advanced options to gpg. With adv --recv-key you can download the
  87. public key.
  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 <literal>debian-archive-keyring</literal> package in Debian.
  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><filename>/usr/share/keyrings/debian-archive-keyring.gpg</filename></term>
  135. <listitem><para>Keyring of Debian archive trusted keys.</para></listitem>
  136. </varlistentry>
  137. <varlistentry><term><filename>/usr/share/keyrings/debian-archive-removed-keys.gpg</filename></term>
  138. <listitem><para>Keyring of Debian 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>