Bug 2569037

Summary: clean-rpm-gpg-pubkey removes current Fedora 45 primary key
Product: [Fedora] Fedora Reporter: U. Dorsch <ulrichdorsch+fedora>
Component: clean-rpm-gpg-pubkeyAssignee: Peter Oliver <mavit>
Status: CLOSED DUPLICATE QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: 45CC: mavit
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-11-09 12:27:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description U. Dorsch 2026-11-09 10:27:46 UTC
According to https://docs.fedoraproject.org/en-US/quick-docs/upgrading-fedora-offline/ `clean-rpm-gpg-pubkey` should remove **old** RPM package signing keys.

Unfortunately it now also deletes the current Fedora 45 primary key.

```
# sudo clean-rpm-gpg-pubkey --dry-run
Would've removed Fedora (45) <fedora-45-primary> public key
```

Executing it (without --dry-run) requires to always import (and check fingerprint) of the Fedora 45 primary key on dnf update.

Presumably this is because the repo file has been moved from /etc/yum.repos.d to /usr/share/dnf5/repos.d/ - and clean-rpm-gpg-pubkey doesn't take that into account.

Workaround: import the key again (check fingerprint) and don't run clean-rpm-gpg-pubkey again (for now).

Reproducible: Always

Steps to Reproduce:
1. run `clean-rpm-gpg-pubkey`
2. Fedora 45 primary package signing key is deleted
3. run `dnf update` - package signing key needs to be imported again
Actual Results:
Fedora 45 primary key is deleted

Expected Results:
Fedora 45 primary key is kept

Comment 1 Peter Oliver 2026-11-09 12:27:11 UTC

*** This bug has been marked as a duplicate of bug 2566150 ***