Don't work yum update (yum doesn't have enough cached data to continue)

As you have discovered, the package of epel-release is causing the issue. If you haven't already:

# yum remove epel-release

Then install the EPEL Repo with the following (requires wget package):

# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm
# rpm -ivh epel-release-7-9.noarch.rpm

From there you should be able to do yum update without any issues.


I just had this issue with fresh CentOS 7.6

Solution was simple:

  • Don't remove package epel-release (Install it if you have already removed it)
  • Edit the file /etc/yum.repos.d/epel.repo
  • In the first section ([epel]):
    • Comment metalink=https://...
    • Uncomment baseurl=http://...

This solved the issue for me.

Tags:

Yum

Centos