📖 ~1 min read
Table of contents
Symptom & Impact
dnf operations report metadata expired or 503 from the proxy, blocking package installs.
Environment & Reproduction
Seen on hosts behind authenticating proxies that cache or strip dnf headers incorrectly.
Root Cause Analysis
Proxy returns stale or compressed metadata, so repository validation fails on hash checks.
Quick Triage
Test direct curl to the repository baseurl through the proxy and inspect /var/log/dnf.log.
Step-by-Step Diagnosis
Run: curl -v -x http://proxy:3128 https://mirror.example.com/path/repodata/repomd.xml.

Solution – Primary Fix
Set proxy=http://user:pass@proxy:3128 in /etc/dnf/dnf.conf and run sudo dnf clean all && sudo dnf makecache.
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
Configure a local Red Hat Satellite or Pulp mirror to bypass the upstream proxy for repository content.
Verification & Acceptance Criteria
dnf repolist reports correct repos and sudo dnf check-update succeeds without proxy errors.
Rollback Plan
Remove proxy lines from dnf.conf and restore previous configuration from backup.
Prevention & Hardening
Monitor metadata_expire and schedule predictable refresh windows for proxied environments.
Related Errors & Cross-Refs
Related to gpgcheck failures, TLS interception, and dnf-automatic scheduling problems.
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.conf(5) and Red Hat Satellite proxy documentation.
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.