Affected versions: CentOS Stream 10

📖 ~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

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
Illustrative mockup for centos-stream-10 — dnf_module_conflict
Module conflict error — Illustrative mockup — Progressive Robot

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
Illustrative mockup for centos-stream-10 — dnf_module_clean
Single stream enabled — Illustrative mockup — Progressive Robot

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

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.