π ~1 min read
Table of contents
Symptom & Impact
dnf update fails with metadata download errors, timeout messages, or repomd.xml issues.
Environment & Reproduction
You may see Cannot download metadata, 404 from mirrors, or SSL certificate validation failures.
Root Cause Analysis
Expired cache, misconfigured repos, proxy interception, or broken entitlement state are the most common causes.
Quick Triage
Run dnf repolist -v, subscription-manager status, and test DNS plus outbound HTTPS connectivity.
Step-by-Step Diagnosis
Use dnf clean all and then dnf makecache –refresh to force fresh metadata retrieval.

Solution – Primary Fix
Inspect /etc/yum.repos.d and redhat.repo for baseurl, enabled flags, and valid SSL CA paths.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Run subscription-manager identity and subscription-manager refresh if the system is registered to Red Hat.
Verification & Acceptance Criteria
Confirm proxy variables, firewalld egress policy, and TLS inspection behavior for content servers.
Rollback Plan
SELinux rarely blocks dnf directly, but custom policy or mislabeled files can impact helper tools.
Prevention & Hardening
Use journalctl -u dnf-makecache –no-pager and review /var/log/dnf.log for exact transaction errors.
Related Errors & Cross-Refs
Schedule regular metadata refresh and maintain stable repo definitions through configuration management.
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
Confirm success with dnf check-update and a small package install test such as dnf install -y tree.
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.