Today I tried to install some new programs, in CentOS, with yum install program, and i got this error: [Errno -1] Metadata file does not match checksum
Trying other mirror.

I don’t know why that happened, but I found the solution to the problem,

Simply run:

yum clean metadata

Then try the yum install or yum update command it should work fine.