📖 ~1 min read
Table of contents
Symptom & Impact
DNF metadata refresh fails behind corporate proxy on CentOS Stream 9 disrupts services and slows incident response until the root cause is resolved.
Environment & Reproduction
Authenticated proxy with TLS inspection and inconsistent proxy config across DNF and repo files.
cat /etc/dnf/dnf.conf
cat /etc/yum.repos.d/*.repo
dnf makecache -v
Root Cause Analysis
Misalignment between package configuration and CentOS Stream 9 defaults causes the failure path described above.
Quick Triage
Confirm package state, service status, and recent changes before deeper diagnostics.
systemctl status
rpm -qa | grep -i
journalctl -p err -b --no-pager | tail -100
Step-by-Step Diagnosis
Capture detailed logs, configuration deltas, and runtime state to isolate the failing component.
curl -Iv https://mirror.stream.centos.org
dnf -v makecache 2>&1 | tail -120
update-ca-trust extract

Solution – Primary Fix
Apply the targeted configuration change and restart the relevant services to restore expected behavior.
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

Solution – Alternative Approaches
Use per-repo proxy=_none_ overrides for hosts on internal mirror.
Verification & Acceptance Criteria
Validate the fix with deterministic checks and ensure no regressions in dependent services.
dnf makecache
dnf check-update
Rollback Plan
Revert configuration and restart services to return to the previous known-good state.
cp /root/backup/dnf.conf /etc/dnf/dnf.conf
dnf clean all
Prevention & Hardening
Standardize proxy via Ansible and monitor cache failures.
Automate patch management and compliance across your fleet with our DevOps services.
Related Errors & Cross-Refs
Related: TLS interception, CA trust, dnf debug logs; see also adjacent topics in the CentOS Stream 9 common problems series.
Related tutorial: View the step-by-step tutorial for centos-stream-9.
View all centos-stream-9 tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
CentOS Stream documentation, Red Hat upstream guides, and CentOS Stream 9 release notes covering this subsystem.
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.