From 6033e5ab8557ef40ecc1ceef1b5a338fce992ef0 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 23 Aug 2023 11:14:55 -0400 Subject: [PATCH] man: Describe GPG key behavior Came up on chat, and this is important since it differs from traditional `rpm/dnf` today. --- man/rpm-ostree.xml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/man/rpm-ostree.xml b/man/rpm-ostree.xml index dcf7e1974c..cf9efc38a3 100644 --- a/man/rpm-ostree.xml +++ b/man/rpm-ostree.xml @@ -897,6 +897,31 @@ $ systemctl start postgresql # Some setup required + + Repository configuration and GPG keys + + + rpm-ostree uses the libdnf shared library, which honors /etc/yum.repos.d. + Note that rpm-md (yum/dnf) repositories are only checked if client-side package layering is + enabled. + + + + However, the behavior for GPG keys is slightly different from a traditional rpm + system. Essentially, all GPG keys in /etc/pki/rpm-gpg are loaded and trusted. + The .repo file should reference the file path in there. + + + The rpm --import /path/to/key.gpg command will not function today on a + live/booted system because rpm tries to write directly to the RPM database. + + + + However, during a container build process, the RPM database is writable and such changes will + persist. + + + See Also