π ~1 min read
Table of contents
Symptom & Impact
DNF metadata refresh intermittently fails behind a corporate proxy on RHEL 10, causing delayed patching and failed automation jobs.
Environment & Reproduction
Issue appears on managed hosts using authenticated outbound proxies and mirrored repositories.
cat /etc/dnf/dnf.conf
cat /etc/yum.repos.d/*.repo | sed -n '1,120p'
dnf makecache -v
Root Cause Analysis
Proxy settings are inconsistent between global DNF config and repo-level overrides, and TLS interception can invalidate mirror certificates.
Quick Triage
Confirm package, network, and policy state before deeper changes.
dnf repolist -v
systemctl status NetworkManager
firewall-cmd --state
getenforce
journalctl -u NetworkManager -n 50 --no-pager
Step-by-Step Diagnosis
Validate proxy connectivity, certificate chain, and DNF debug output to isolate failing endpoint.
curl -Iv https://cdn.redhat.com
grep -R "^proxy" /etc/dnf /etc/yum.repos.d -n
dnf -v makecache 2>&1 | tail -n 120
journalctl -n 100 --no-pager

Solution – Primary Fix
Normalize proxy definitions and trust store, then rebuild metadata cache.
Still having issues? Our Managed IT Services team can diagnose and resolve this for you. Get in touch for a free consultation.
sudo dnf config-manager --setopt=proxy=http://proxy.example:3128 --save
sudo update-ca-trust
sudo dnf clean all
sudo dnf makecache
sudo systemctl restart NetworkManager
sudo firewall-cmd --reload

Solution – Alternative Approaches
Use per-repo proxy directives or internal mirror bypass for critical repos.
sudo dnf config-manager --setopt='rhel-10-baseos.proxy=_none_' --save
sudo dnf config-manager --setopt='rhel-10-appstream.proxy=_none_' --save
Verification & Acceptance Criteria
Metadata sync and package queries must complete without timeout or certificate errors.
dnf makecache
dnf check-update
journalctl -u dnf* -n 40 --no-pager
Rollback Plan
Revert edited DNF settings and restore previous repo files from backup.
cp /root/backup/dnf.conf /etc/dnf/dnf.conf
cp /root/backup/*.repo /etc/yum.repos.d/
dnf clean all
Prevention & Hardening
Standardize proxy policy in configuration management and monitor cache update failures.
Automate patch management and compliance across your fleet with our DevOps services.
dnf -q repolist
semanage boolean -l | grep -i proxy
Related Errors & Cross-Refs
See also SSL verification failures, mirrorlist DNS issues, and subscription entitlement sync errors.
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
Red Hat DNF documentation, Red Hat subscription content access, and enterprise proxy TLS inspection 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.