In RHEL, if your YUM cache has not been update over 2 weeks, then you will see the warning below:

Solution:
You can solve this error by “yum makecache” or “yum makecache fast”.

Perhaps, you may met this error:

Because, DNS could not resolve redhat.com
More details:

You can change your DNS from “114.114.114.114” to “8.8.8.8”:

And “makecache” agian:

————
Done.

1 thought on “Linux YUM: if your cache is too old”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

隐藏
变装