apt-key.8.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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. ]>
  7. <refentry>
  8. &apt-docinfo;
  9. <refmeta>
  10. <refentrytitle>apt-key</refentrytitle>
  11. <manvolnum>8</manvolnum>
  12. <refmiscinfo class="manual">APT</refmiscinfo>
  13. </refmeta>
  14. <!-- Man page title -->
  15. <refnamediv>
  16. <refname>apt-key</refname>
  17. <refpurpose>APT key management utility</refpurpose>
  18. </refnamediv>
  19. <!-- Arguments -->
  20. <refsynopsisdiv>
  21. <cmdsynopsis>
  22. <command>apt-key</command>
  23. <arg><option>--keyring <replaceable>filename</replaceable></option></arg>
  24. <arg><replaceable>command</replaceable></arg>
  25. <arg rep="repeat"><option><replaceable>arguments</replaceable></option></arg>
  26. </cmdsynopsis>
  27. </refsynopsisdiv>
  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>add <replaceable>filename</replaceable></term>
  38. <listitem>
  39. <para>
  40. Add a new key to the list of trusted keys. The key is read
  41. from <replaceable>filename</replaceable>, or standard input if
  42. <replaceable>filename</replaceable> is <literal>-</literal>.
  43. </para>
  44. </listitem>
  45. </varlistentry>
  46. <varlistentry><term>del <replaceable>keyid</replaceable></term>
  47. <listitem>
  48. <para>
  49. Remove a key from the list of trusted keys.
  50. </para>
  51. </listitem>
  52. </varlistentry>
  53. <varlistentry><term>export <replaceable>keyid</replaceable></term>
  54. <listitem>
  55. <para>
  56. Output the key <replaceable>keyid</replaceable> to standard output.
  57. </para>
  58. </listitem>
  59. </varlistentry>
  60. <varlistentry><term>exportall</term>
  61. <listitem>
  62. <para>
  63. Output all trusted keys to standard output.
  64. </para>
  65. </listitem>
  66. </varlistentry>
  67. <varlistentry><term>list</term>
  68. <listitem>
  69. <para>
  70. List trusted keys.
  71. </para>
  72. </listitem>
  73. </varlistentry>
  74. <varlistentry><term>finger</term>
  75. <listitem>
  76. <para>
  77. List fingerprints of trusted keys.
  78. </para>
  79. </listitem>
  80. </varlistentry>
  81. <varlistentry><term>adv</term>
  82. <listitem>
  83. <para>
  84. Pass advanced options to gpg. With adv --recv-key you can download the
  85. public key.
  86. </para>
  87. </listitem>
  88. </varlistentry>
  89. <varlistentry><term>update</term>
  90. <listitem>
  91. <para>
  92. Update the local keyring with the keyring of Debian archive
  93. keys and removes from the keyring the archive keys which are no
  94. longer valid.
  95. </para>
  96. </listitem>
  97. </varlistentry>
  98. </variablelist>
  99. </refsect1>
  100. <refsect1><title>Options</title>
  101. <para>Note that options need to be defined before the commands described in the previous section.</para>
  102. <variablelist>
  103. <varlistentry><term>--keyring <replaceable>filename</replaceable></term>
  104. <listitem><para>With this option it is possible to specify a specific keyring
  105. file the command should operate on. The default is that a command is executed
  106. on the <filename>trusted.gpg</filename> file as well as on all parts in the
  107. <filename>trusted.gpg.d</filename> directory, through <filename>trusted.gpg</filename>
  108. is the primary keyring which means that e.g. new keys are added to this one.
  109. </para></listitem>
  110. </varlistentry>
  111. </variablelist>
  112. </refsect1>
  113. <refsect1><title>Files</title>
  114. <variablelist>
  115. &file-trustedgpg;
  116. <varlistentry><term><filename>/etc/apt/trustdb.gpg</filename></term>
  117. <listitem><para>Local trust database of archive keys.</para></listitem>
  118. </varlistentry>
  119. <varlistentry><term><filename>/usr/share/keyrings/debian-archive-keyring.gpg</filename></term>
  120. <listitem><para>Keyring of Debian archive trusted keys.</para></listitem>
  121. </varlistentry>
  122. <varlistentry><term><filename>/usr/share/keyrings/debian-archive-removed-keys.gpg</filename></term>
  123. <listitem><para>Keyring of Debian archive removed trusted keys.</para></listitem>
  124. </varlistentry>
  125. </variablelist>
  126. </refsect1>
  127. <refsect1><title>See Also</title>
  128. <para>
  129. &apt-get;, &apt-secure;
  130. </para>
  131. </refsect1>
  132. &manbugs;
  133. &manauthor;
  134. </refentry>