apt-key.8.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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>2012-06-09T00: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. </listitem>
  46. </varlistentry>
  47. <varlistentry><term><option>del</option> <option>&synopsis-param-keyid;</option></term>
  48. <listitem>
  49. <para>
  50. Remove a key from the list of trusted keys.
  51. </para>
  52. </listitem>
  53. </varlistentry>
  54. <varlistentry><term><option>export</option> <option>&synopsis-param-keyid;</option></term>
  55. <listitem>
  56. <para>
  57. Output the key &synopsis-param-keyid; to standard output.
  58. </para>
  59. </listitem>
  60. </varlistentry>
  61. <varlistentry><term><option>exportall</option></term>
  62. <listitem>
  63. <para>
  64. Output all trusted keys to standard output.
  65. </para>
  66. </listitem>
  67. </varlistentry>
  68. <varlistentry><term><option>list</option></term>
  69. <listitem>
  70. <para>
  71. List trusted keys.
  72. </para>
  73. </listitem>
  74. </varlistentry>
  75. <varlistentry><term><option>finger</option></term>
  76. <listitem>
  77. <para>
  78. List fingerprints of trusted keys.
  79. </para>
  80. </listitem>
  81. </varlistentry>
  82. <varlistentry><term><option>adv</option></term>
  83. <listitem>
  84. <para>
  85. Pass advanced options to gpg. With adv --recv-key you can download the
  86. public key.
  87. </para>
  88. </listitem>
  89. </varlistentry>
  90. <varlistentry><term><option>update</option></term>
  91. <listitem>
  92. <para>
  93. Update the local keyring with the archive keyring and remove from
  94. the local keyring the archive keys which are no longer valid.
  95. The archive keyring is shipped in the <literal>archive-keyring</literal> package of your
  96. distribution, e.g. the &keyring-package; package in &keyring-distro;.
  97. </para>
  98. </listitem>
  99. </varlistentry>
  100. <varlistentry><term><option>net-update</option></term>
  101. <listitem>
  102. <para>
  103. Perform an update working similarly to the <command>update</command> command above,
  104. but get the archive keyring from a URI instead and validate it against a master key.
  105. This requires an installed &wget; and an APT build configured to have
  106. a server to fetch from and a master keyring to validate.
  107. APT in Debian does not support this command, relying on
  108. <command>update</command> instead, but Ubuntu's APT does.
  109. </para>
  110. </listitem>
  111. </varlistentry>
  112. </variablelist>
  113. </refsect1>
  114. <refsect1><title>Options</title>
  115. <para>Note that options need to be defined before the commands described in the previous section.</para>
  116. <variablelist>
  117. <varlistentry><term><option>--keyring</option> <option>&synopsis-param-filename;</option></term>
  118. <listitem><para>With this option it is possible to specify a particular keyring
  119. file the command should operate on. The default is that a command is executed
  120. on the <filename>trusted.gpg</filename> file as well as on all parts in the
  121. <filename>trusted.gpg.d</filename> directory, though <filename>trusted.gpg</filename>
  122. is the primary keyring which means that e.g. new keys are added to this one.
  123. </para></listitem>
  124. </varlistentry>
  125. </variablelist>
  126. </refsect1>
  127. <refsect1><title>Files</title>
  128. <variablelist>
  129. &file-trustedgpg;
  130. <varlistentry><term><filename>/etc/apt/trustdb.gpg</filename></term>
  131. <listitem><para>Local trust database of archive keys.</para></listitem>
  132. </varlistentry>
  133. <varlistentry><term>&keyring-filename;</term>
  134. <listitem><para>Keyring of &keyring-distro; archive trusted keys.</para></listitem>
  135. </varlistentry>
  136. <varlistentry><term>&keyring-removed-filename;</term>
  137. <listitem><para>Keyring of &keyring-distro; archive removed trusted keys.</para></listitem>
  138. </varlistentry>
  139. </variablelist>
  140. </refsect1>
  141. <refsect1><title>See Also</title>
  142. <para>
  143. &apt-get;, &apt-secure;
  144. </para>
  145. </refsect1>
  146. &manbugs;
  147. &manauthor;
  148. </refentry>