Every now and then, when the Oracle Linux yum server is in the process of being updated with new packages, you may encounter an error like the following:
$ sudo yum install -y yum-utils
ol7_UEKR4 | 1.2 kB 00:00:00
ol7_latest | 1.4 kB 00:00:00
(1/5): ol7_UEKR4/x86_64/updateinfo | 69 kB 00:00:00
ol7_latest/x86_64/updateinfo FAILED ETA
http://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/repodata/updateinfo.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
Usually, clearing the local metadata caches with yum clean will fix this issue.
$ sudo yum clean all
Cleaning repos: ol7_UEKR4 ol7_latest
Cleaning up everything