📖 ~1 min read
Table of contents
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

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

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.
Related Errors & Cross-Refs
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.