📖 ~1 min read
Table of contents
Symptom & Impact
dnf install fails with ‘module is already enabled’ or conflicting streams.
Environment & Reproduction
Triggered after enabling multiple module streams (e.g. nodejs:18 and :20).
Root Cause Analysis
Modularity allows only one active stream per module per system.
Quick Triage
Run dnf module list –enabled to see active streams.
Step-by-Step Diagnosis
Inspect /etc/dnf/modules.d for stale .module files.

Solution – Primary Fix
Reset the module then enable the desired stream: dnf module reset ; dnf module enable :.
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
Disable modularity for the package using AppStream non-module repos when available.
Verification & Acceptance Criteria
dnf module info shows the intended stream as active.
Rollback Plan
Re-enable previous stream and reinstall original RPMs from dnf history.
Prevention & Hardening
Document required module streams in a Kickstart or Ansible role.
Related Errors & Cross-Refs
See also DNF dependency-resolution errors and AppStream metadata bugs.
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 docs: ‘Managing software with the DNF tool’ and modularity guide.
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.