Affected versions: CentOS Stream 9

📖 ~1 min read

Table of contents
  1. Symptom & Impact
  2. Environment & Reproduction
  3. Root Cause Analysis
  4. Quick Triage
  5. Step-by-Step Diagnosis
  6. Solution – Primary Fix
  7. Solution – Alternative Approaches
  8. Verification & Acceptance Criteria
  9. Rollback Plan
  10. Prevention & Hardening
  11. Related Errors & Cross-Refs
  12. References & Further Reading

Symptom & Impact

Installs fail with `Public key for … is not installed`.

Environment & Reproduction

After EPEL key rotation or fresh install of EPEL.

Root Cause Analysis

GPG keys in `/etc/pki/rpm-gpg` don’t include the active EPEL key.

Quick Triage

Check `rpm -qa gpg-pubkey*` and `dnf repolist epel*`.

Step-by-Step Diagnosis

Inspect repo file under `/etc/yum.repos.d/epel*.repo`.

Illustrative mockup for centos-stream-9 — terminal_or_shell
EPEL GPG key mismatch diagnostics in terminal — Illustrative mockup — Progressive Robot

Solution – Primary Fix

Reinstall `epel-release` and import key with `rpm –import`.

Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Illustrative mockup for centos-stream-9 — logs_or_journal
journal and log evidence for EPEL GPG key mismatch — Illustrative mockup — Progressive Robot

Solution – Alternative Approaches

Or run `dnf -y install –refresh epel-release`.

Verification & Acceptance Criteria

Package installs from EPEL succeed without prompts.

Rollback Plan

Disable the EPEL repo if it conflicts with base channels.

Prevention & Hardening

Pin EPEL key paths and verify in monitoring.

Pairs with `crb` repo enabling and `epel-next` differences.

Related tutorial: View the step-by-step tutorial for centos-stream-9.

View all centos-stream-9 tutorials on the Tutorials Hub →

Browse all common problems & solutions on the Tutorials Hub.

References & Further Reading

Fedora EPEL documentation.

Need Expert Help?

If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today — we respond within one business day.