πŸ“– ~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 upgrade` or install fails with conflicts between package providers or modular streams.

Environment & Reproduction

Run `dnf check`, `dnf repoquery –duplicates`, and inspect conflicting package names.

Root Cause Analysis

Inspect transaction and module state with `dnf history` and `dnf module list –enabled`.

Quick Triage

Service state is indirect, but verify affected applications before package replacement.

Step-by-Step Diagnosis

Collect transaction details from `journalctl -b | grep -i dnf` and `/var/log/dnf.log`.

Illustrative mockup for rhel-9 β€” rhel9-b01-p16-dnf-conflicts.webp
Reviewing conflicting packages in a dnf transaction β€” Illustrative mockup β€” Progressive Robot

Solution – Primary Fix

Use `dnf swap`, reset conflicting module streams, and rerun transaction cleanly.

Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Illustrative mockup for rhel-9 β€” rhel9-b01-p16-dnf-swap.webp
Resolving conflict with package swap and clean transaction β€” Illustrative mockup β€” Progressive Robot

Solution – Alternative Approaches

Ensure repository access is stable so retries are not misread as dependency issues.

Verification & Acceptance Criteria

SELinux rarely affects package dependency resolution on default policy.

Rollback Plan

Run `dnf check` and a full update dry-run to confirm conflict-free state.

Prevention & Hardening

Avoid mixing unsupported repositories with Red Hat base channels.

Revert problematic transaction with `dnf history undo ` when feasible.

Related tutorial: View the step-by-step tutorial for rhel-9.

View all rhel-9 tutorials on the Tutorials Hub β†’

Browse all common problems & solutions on the Tutorials Hub.

References & Further Reading

Review dnf modularity and dependency troubleshooting guidance.

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.