📖 ~1 min read
Table of contents
Symptom & Impact
dnf module enable fails
Environment & Reproduction
Mixing AppStream and EPEL Modular streams on CentOS Stream 9.
Root Cause Analysis
Active stream pins incompatible package set for requested target.
Quick Triage
dnf module list –enabled and review /etc/dnf/modules.d/*.module state.
Step-by-Step Diagnosis
sudo dnf module list ; sudo dnf module info :; sudo dnf repoquery –duplicates.

Solution – Primary Fix
sudo dnf module reset -y; sudo dnf module enable : -y; sudo dnf distro-sync -y.
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
Pin desired stream in /etc/dnf/modules.d, or disable EPEL Modular when it shadows AppStream.
Verification & Acceptance Criteria
dnf module list shows only intended enabled stream and dnf upgrade completes clean.
Rollback Plan
Restore /etc/dnf/modules.d backup and reset to original module stream.
Prevention & Hardening
Document approved module streams per host role and audit via dnf history.
Related Errors & Cross-Refs
Often paired with broken dependency and conflicting requests during distro-sync.
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
Red Hat AppStream docs and dnf module CLI reference.
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.