LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 08-07-2018, 03:18 AM   #1
leniviy
Member
 
Registered: Jul 2009
Distribution: Archlinux
Posts: 69

Rep: Reputation: 4
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.

Last edited by leniviy; 08-07-2018 at 03:27 AM.
 
Old 08-07-2018, 02:33 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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.
 
Old 08-07-2018, 02:41 PM   #3
leniviy
Member
 
Registered: Jul 2009
Distribution: Archlinux
Posts: 69

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by MensaWater View Post
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.

Last edited by leniviy; 08-07-2018 at 02:51 PM.
 
Old 08-08-2018, 04:15 AM   #4
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
You could also try the following command, if you're still having the same issue;

Code:
yum clean all
 
1 members found this post helpful.
Old 08-08-2018, 04:18 AM   #5
leniviy
Member
 
Registered: Jul 2009
Distribution: Archlinux
Posts: 69

Original Poster
Rep: Reputation: 4
Yes, "yum clean all" also deletes timedhosts.txt.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum in fc4 error - metadata file does not match dark_prancer Linux - Newbie 6 03-17-2011 06:38 PM
Yum client package/updates installation and updates through local Yum Server gautamnarayan Linux - Server 1 03-11-2010 01:51 AM
ignoring updates with fedora skeletonca Fedora 1 09-19-2008 08:44 PM
yum - repository metadata not found? neolithic_psyche Fedora 2 01-12-2008 04:13 PM
YUM - Metadata file does not match checksum erolleman Fedora 3 06-15-2007 03:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 11:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration