📖 ~1 min read
Table of contents
Symptom & Impact
dnf install fails with ‘Modular dependency problems’ on libpq, nodejs or nginx.
Environment & Reproduction
Multiple module streams enabled with conflicting versions.
dnf module list --enabled
Root Cause Analysis
Two enabled streams provide the same module API; dnf cannot pick one.
Quick Triage
List enabled streams and the failing dependency.
dnf module list --enabled
dnf module info nginx
Step-by-Step Diagnosis
Disable conflicting streams and clean up profiles.
dnf module disable -y nginx:1.20
dnf module reset -y nginx

Solution – Primary Fix
Enable the correct stream and reinstall.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.
dnf module enable -y nginx:1.22
dnf -y install nginx

Solution – Alternative Approaches
Use container images if module conflicts persist.
podman run -d -p 80:80 docker.io/library/nginx:1.25
Verification & Acceptance Criteria
Package installs cleanly and runs.
nginx -v
systemctl status nginx
Rollback Plan
Re-enable the previous stream profile.
dnf module enable -y nginx:1.20
Prevention & Hardening
Pin a single stream per module via Ansible roles.
ansible -m shell -a 'dnf module list --enabled' all
Related Errors & Cross-Refs
Modular dep problems, multiple stream defaults.
Related tutorial: View the step-by-step tutorial for centos-stream-10.
View all centos-stream-10 tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
DNF modularity docs, stream lifecycle.
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.