I recently had some problems with checksum mismatches for the dag yum repository. The specific error was as follows:
http://apt.sw.be/fedora/3/en/i386/dag/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from dag: [Errno 256] No more mirrors to try.
Below is the series of commands I used to resolve the problem, as root:
cd /var/cache/yum/dag
yum clean all
wget --cache=off http://apt.sw.be/fedora/3/en/i386/dag/repodata/filelists.xml.gz
wget --cache=off http://apt.sw.be/fedora/3/en/i386/dag/repodata/primary.xml.gz
wget --cache=off http://apt.sw.be/fedora/3/en/i386/dag/repodata/repomd.xml
Trent from the FreshRPMs general discussion list suggested the wget
command sequence, and I refined his steps a bit to eliminate the hassle of having to move files around. It works just fine now, and I’ll use this solution anytime there’s a checksum problem with that repository.