Bug 2569037 - clean-rpm-gpg-pubkey removes current Fedora 45 primary key
Summary: clean-rpm-gpg-pubkey removes current Fedora 45 primary key
Keywords:
Status: CLOSED DUPLICATE of bug 2566150
Alias: None
Product: Fedora
Classification: Fedora
Component: clean-rpm-gpg-pubkey
Version: 45
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Peter Oliver
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-09 10:27 UTC by U. Dorsch
Modified: 2026-11-09 12:27 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-11-09 12:27:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.