I am running yum check-update and it freezes after a 2 lines of output:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

I'm not sure what is happening. The last things I remember doing with yum were "yum update" and looking at one of the Centos yum repos but I didn't make any changes.

Any suggestions to fix yum?

link|improve this question

78% accept rate
we are apt of borg. rpm is futile. you will be dpkg'd. – kobaltz Feb 2 at 0:02
feedback

1 Answer

up vote 2 down vote accepted

You may have a DNS issue. Try to ensure you can resolve DNS records locally:

nslookup google.com

If you get an IP back from that command, you should be OK for DNS. Try then removing the fastestmirror cache and re-running your yum command:

rm -f /var/cache/yum/timedhosts.txt

link|improve this answer
I did get an IP back from that command. timedhosts.txt was an empty text file but I tried removing it anyways. I then reran my yum command. Unfortunately no success. It's still hanging at the same place, "Determining fastest mirrors". If I run verbose, I get Loading "fastestmirror" plugin Config time: 0.094 Yum Version: 3.2.22 Setting up Package Sacks Loading mirror speeds from cached hostfile – barrrista Feb 1 at 23:58
To rule out an issue with the fastestmirror plugin, try running yum without any plugins: yum --noplugins check-update – Garrett Feb 2 at 0:23
works now. thanks – barrrista Feb 2 at 1:02
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.