[SOLVED] yum always updates some metadata ignoring metadata_expire
CentOSThis forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
yum always updates some metadata ignoring metadata_expire
Hi.
On one of my CentOS 7.5 hosts whenever I launch "yum install" (just to press 'n') it stops for a few seconds after printing "Loading mirror speeds from cached hostfile". tcpdump shows traffic to different mirror sites. For those with port 80 it shows no actual http request, just the tcp handshake.
The metadata_expire setting doesn't affect this, although certain yum messages indeed don't show until it really expires.
"yum -C" doesn't produce this traffic, but I don't want to use it all the time.
I find with RHEL/CentOS7 running "yum makecache fast" helps resolve various issues. It appears the cache is keeping old information that may not have latest repository/mirror information. Often even when I know newer packages are out there "yum list" or "yum install" won't find them until after I've done the above.
I find with RHEL/CentOS7 running "yum makecache fast" helps resolve various issues. It appears the cache is keeping old information that may not have latest repository/mirror information. Often even when I know newer packages are out there "yum list" or "yum install" won't find them until after I've done the above.
Sorry, that haven't changed a thing.
It seems that the fastestmirror plugin ignores its maxhostfileage setting. Deleting /var/cache/yum/x86_64/7/timedhosts.txt helped. Perhaps it's because I added new repos since that file was generated.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.