Forcing a yum update via different mirror?

General support questions including new installations
Post Reply
Wordy
Posts: 6
Joined: 2008/04/29 01:26:28

Forcing a yum update via different mirror?

Post by Wordy » 2008/07/09 19:32:12

24 hours after the announcement about the BIND issue, I'm still unable to get an updated BIND package for just one of my servers because the mirror it is choosing isn't updated:

$ cat /etc/redhat-release
CentOS release 5.2 (Final)
$ sudo yum info bind | grep Release
Release: 6.P1.el5
$ sudo yum update
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
* base: mirror.raystedman.net
* updates: centos.mirrors.tds.net
* addons: centos.mirrors.tds.net
* extras: centos.mirrors.tds.net
Setting up Update Process
No Packages marked for Update
$ sudo yum --disableplugin=fastestmirror update
Setting up Update Process
No Packages marked for Update
$

I'd rather have a slow mirror that gets me the updates immediately, than waiting for some indeterminate amount of time to get the patches. Any help is appreciated. I didn't see anything in the yum or yum.conf manpages that would allow me to override and pick just one mirror.

All my other servers were able to get the update last night....

$ sudo yum info bind | grep Release
Release: 6.0.1.P1.el5_2
$

This is REALLY important to me. Halp?

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Forcing a yum update via different mirror?

Post by toracat » 2008/07/09 21:57:23

Look at the .repo files in /etc/yum.repos.d directory. You can comment out the [b]mirrorlist=[/b] line and have your own [b]baseurl=[/b] line with the mirror site of your choice. You can list multiple sites if you wish.

Wordy
Posts: 6
Joined: 2008/04/29 01:26:28

Re: Forcing a yum update via different mirror?

Post by Wordy » 2008/07/09 22:07:41

Sure enough, just commenting out every one of the mirrorlist lines, and uncommenting the baseurl lines has done the trick. Thank you very much :)

Post Reply