From 9aee35d1acafde2e443741160d13d365345383ab Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Tue, 22 Feb 2022 17:45:08 +0100 Subject: Improve the documentation for /etc/apt/keyrings --- doc/apt-key.8.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/apt-key.8.xml') diff --git a/doc/apt-key.8.xml b/doc/apt-key.8.xml index 6167a7826..5f2701e0c 100644 --- a/doc/apt-key.8.xml +++ b/doc/apt-key.8.xml @@ -202,14 +202,14 @@ If your existing use of apt-key add looks like this: wget -qO- https://myrepo.example/myrepo.asc | sudo apt-key add - -Then you can directly replace this with: +Then you can directly replace this with (though note the recommendation below): wget -qO- https://myrepo.example/myrepo.asc | sudo tee /etc/apt/trusted.gpg.d/myrepo.asc Make sure to use the "asc" extension for ASCII armored keys and the "gpg" extension for the binary OpenPGP format (also known as "GPG key public ring"). The binary OpenPGP format works for all apt versions, while the ASCII armored format works for apt version >= 1.4. -Instead of placing keys into the /etc/apt/trusted.gpg.d +Recommended: Instead of placing keys into the /etc/apt/trusted.gpg.d directory, you can place them anywhere on your filesystem by using the Signed-By option in your sources.list and pointing to the filename of the key. See &sources-list; for details. -- cgit v1.2.3-70-g09d2