Affected versions: RHEL 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 update fails with metadata or mirror timeout errors, delaying security patching and operational updates.

Environment & Reproduction

Seen on RHEL 10 hosts behind strict proxy or DNS issues when downloading repodata from CDN.

sudo dnf makecache --refresh && sudo dnf repolist -v

Root Cause Analysis

Common causes are DNS latency, blocked outbound 443, stale repo definitions, or corrupted local dnf cache.

Quick Triage

Check connectivity, repo URLs, and recent errors from journalctl before changing config.

ping -c 3 cdn.redhat.com ; curl -I https://cdn.redhat.com ; sudo journalctl -u dnf* -n 50

Step-by-Step Diagnosis

Validate subscription status, repo enablement, DNS resolution, and cache health in sequence.

sudo subscription-manager status ; sudo dnf repolist all ; getent hosts cdn.redhat.com ; sudo dnf clean all
Illustrative mockup for rhel-10 — dnf-timeout-log
DNF mirror timeout errors in terminal — Illustrative mockup — Progressive Robot

Solution — Primary Fix

Refresh subscription entitlements, clean cache, and rebuild metadata with stable mirror selection.

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

sudo subscription-manager refresh ; sudo dnf clean all ; sudo rm -rf /var/cache/dnf/* ; sudo dnf makecache --refresh
Illustrative mockup for rhel-10 — dnf-timeout-fix
DNF repo and cache fixed — Illustrative mockup — Progressive Robot

Solution — Alternative Approaches

Use internal Satellite/mirror or configure proxy in dnf.conf when internet egress is restricted.

Verification & Acceptance Criteria

A fix is accepted when dnf makecache and dnf update complete without timeout or checksum errors.

sudo dnf makecache --refresh ; sudo dnf check-update

Rollback Plan

Restore previous repo files and proxy settings from backup if custom mirror changes break updates.

sudo cp -a /etc/yum.repos.d.bak/* /etc/yum.repos.d/ ; sudo dnf clean all

Prevention & Hardening

Monitor repo reachability, keep DNS redundant, and schedule periodic dnf cache refresh checks.

May appear with subscription-manager entitlement failures and firewall egress blocks on 443.

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

View all rhel-10 tutorials on the Tutorials Hub →

Browse all common problems & solutions on the Tutorials Hub.

References & Further Reading

RHEL 10 dnf and subscription-manager documentation, plus internal patching runbooks.

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.