If you're here with the same problem the solution is easy, basically for most redhat based distros the fetched metadata is set to expire for about a hour, you can simply solve this by extending the period that the metadata for all repo fetched remains persistent, its not recomended for prod environments but for a local setup may save the day just run the command sed -i "s/=1h/=24h/g" /etc/yum.repos.d/reponame.repo try to tweak out the time on the repo file may vary based on distribution