X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/a5f9b45e4a67246f7af2c6fc62de9c531cd314a4..HEAD:/doc/apt-key.8.xml?ds=sidebyside diff --git a/doc/apt-key.8.xml b/doc/apt-key.8.xml index a847060c0..eacd18d4d 100644 --- a/doc/apt-key.8.xml +++ b/doc/apt-key.8.xml @@ -13,7 +13,7 @@ &apt-email; &apt-product; - 2015-10-15T00:00:00Z + 2016-11-25T00:00:00Z @@ -36,6 +36,29 @@ by apt to authenticate packages. Packages which have been authenticated using these keys will be considered trusted. + + Note that if usage of apt-key is desired the additional + installation of the GNU Privacy Guard suite (packaged in + gnupg) is required. For this reason alone the programmatic + usage (especially in package maintainerscripts!) is strongly discouraged. + Further more the output format of all commands is undefined and can and does + change whenever the underlying commands change. apt-key will + try to detect such usage and generates warnings on stderr in these cases. + + + +Supported keyring files +apt-key supports only the binary OpenPGP format (also known as "GPG key + public ring") in files with the "gpg" extension, not + the keybox database format introduced in newer &gpg; versions as default + for keyring files. Binary keyring files intended to be used with any apt + version should therefore always be created with gpg --export. + +Alternatively, if all systems which should be using the created keyring + have at least apt version >= 1.4 installed, you can use the ASCII armored + format with the "asc" extension instead which can be + created with gpg --armor --export. + Commands @@ -53,6 +76,12 @@ verified to belong to the owner of the repositories they claim to be for otherwise the &apt-secure; infrastructure is completely undermined. + + Note: Instead of using this command a keyring + should be placed directly in the /etc/apt/trusted.gpg.d/ + directory with a descriptive name and either "gpg" or + "asc" as file extension. + @@ -113,17 +142,21 @@ - + (deprecated) - Update the local keyring with the archive keyring and remove from the local keyring the archive keys which are no longer valid. The archive keyring is shipped in the archive-keyring package of your distribution, e.g. the &keyring-package; package in &keyring-distro;. - - + + Note that a distribution does not need to and in fact should not use + this command any longer and instead ship keyring files in the + /etc/apt/trusted.gpg.d/ directory directly as this + avoids a dependency on gnupg and it is easier to manage + keys by simply adding and removing files for maintainers and users alike. + @@ -166,18 +199,6 @@ &file-trustedgpg; - /etc/apt/trustdb.gpg - Local trust database of archive keys. - - - &keyring-filename; - Keyring of &keyring-distro; archive trusted keys. - - - &keyring-removed-filename; - Keyring of &keyring-distro; archive removed trusted keys. - -