📖 ~1 min read
Table of contents
Symptom & Impact
dnf operations abort with repomd.xml or checksum errors, blocking patching.
Environment & Reproduction
Seen after partial mirror sync or interrupted dnf clean.
cat /etc/centos-release
dnf repolist -v
Root Cause Analysis
Local cache references repomd entries that no longer match the mirror.
Quick Triage
Confirm repo health and force fresh metadata.
dnf clean metadata
dnf makecache --refresh
Step-by-Step Diagnosis
Inspect repo configs and recent dnf errors.
grep -RE '^(baseurl|metalink)' /etc/yum.repos.d
journalctl -u dnf* -n 200 --no-pager

Solution – Primary Fix
Drop the cache fully and rebuild against the mirror.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.
dnf clean all
rm -rf /var/cache/dnf/*
dnf makecache --refresh
dnf -y update

Solution – Alternative Approaches
Pin to a known-good mirror if a specific mirror is unstable.
dnf config-manager --setopt='*.skip_if_unavailable=true' --save
Verification & Acceptance Criteria
Updates complete without checksum warnings.
dnf check-update
dnf history list | head
Rollback Plan
Restore repo files if mirror pin causes drift.
cp -a /etc/yum.repos.d /etc/yum.repos.d.bak.$(date +%F)
Prevention & Hardening
Monitor cache age and prefer managed mirrors.
systemctl enable --now dnf-makecache.timer
Related Errors & Cross-Refs
Repomd not found, GPG check failed, cache sync errors.
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 docs, CentOS Stream repo guide.
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.