apt-key.8.xml 5.3 KB

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