📖 ~1 min read
Table of contents
Symptom & Impact
DNF operations time out with Curl error 28 when reaching repository metadata through a proxy. Patch cycles stall, compliance drifts, and security errata remain unapplied until repository access is restored.
Environment & Reproduction
Common in restricted enterprise networks where proxy settings differ between shell, dnf.conf, and systemd environments.
dnf clean all
dnf -v makecache
env | grep -i proxy
grep -R "^proxy=" /etc/dnf /etc/yum.repos.d
Root Cause Analysis
Mismatched proxy values, TLS inspection cert trust gaps, or firewall egress restrictions cause metadata retrieval to fail before repodata can be refreshed.
Quick Triage
Validate network, DNS, and repo reachability quickly.
journalctl -u NetworkManager -n 50 --no-pager
resolvectl status || cat /etc/resolv.conf
curl -I https://cdn.redhat.com --max-time 15
Step-by-Step Diagnosis
Check effective dnf and certificate configuration, then verify proxy path.
dnf repolist -v
update-ca-trust check
openssl s_client -connect cdn.redhat.com:443 -brief </dev/null
firewall-cmd --list-all

Solution – Primary Fix
Set consistent proxy values, trust corporate CA if used, and rebuild cache.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.
sudo tee -a /etc/dnf/dnf.conf >/dev/null <<'EOF'
proxy=http://proxy.example.com:8080
EOF
sudo update-ca-trust
sudo dnf clean all
sudo dnf makecache

Solution – Alternative Approaches
Use repo-specific proxy exclusions or direct mirror access for internal repositories.
sudo sed -i '/^proxy=/d' /etc/yum.repos.d/*.repo
sudo tee -a /etc/yum.repos.d/internal.repo >/dev/null <<'EOF'
proxy=_none_
EOF
Verification & Acceptance Criteria
Metadata refresh succeeds and update transactions can resolve dependencies.
dnf makecache
dnf check-update || true
dnf repolist
Rollback Plan
Revert dnf proxy edits and certificate changes if connectivity worsens.
sudo cp /etc/dnf/dnf.conf /etc/dnf/dnf.conf.rollback
sudo sed -i '/^proxy=/d' /etc/dnf/dnf.conf
sudo dnf clean all
Prevention & Hardening
Standardize repository and proxy configuration through automation and health checks.
systemctl enable --now dnf-makecache.timer
dnf config-manager --save --setopt=fastestmirror=True
Related Errors & Cross-Refs
Often co-occurs with SSL certificate verify failures, subscription access issues, or DNS timeouts on bastion hosts.
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 documentation for DNF configuration, subscription content access, and enterprise proxy 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.