apt-key.8.xml 4.9 KB

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