📖 ~1 min read
Table of contents
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`.

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.

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.
Related Errors & Cross-Refs
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.