Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Written by: Michael Wood
- #Date 11-17-2011
- By default GoDaddy uses its on repositories. Downside to this is,
- they don't keep them updated - not by a long shot. I would check for
- updates and realize nothing was being pulled down. So, I pulled out
- the trusty ol' vi editor and checked out the file
- /etc/yum.repos.d/CentOS-Base.repo
- Looking at the file, the two sections we are going to be editing are
- (Make a backup copy first! cp CentOS-Base.repo CentOS-Base.repo.bak):
- [base]
- name=CentOS-5 - Base
- mirrorlist=http://s2plmirror01.prod.sdl2.secureserver.net/vph/2/download/mirrors/cos-5.i386
- failovermethod=priority
- #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
- gpgcheck=1
- gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centos5
- #released updates
- [update]
- name=CentOS-5 - Updates
- mirrorlist=http://s2plmirror01.prod.sdl2.secureserver.net/vph/2/download/mirrors/cos-5-updates.i386
- failovermethod=priority
- #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
- gpgcheck=1
- gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centos5
- In the first section [base] GoDaddy uses its on servers for updates.
- In our case it's
- "http://s2plmirror01.prod.sdl2.secureserver.net/vph/2/download/mirrors/cos-5.i386"
- Trying to browser that URL either timesout or doesn't connect at all.
- But if you look below that line you'll see a failover method, BUT the
- baseurl for CentOS's main repository mirror has been commented
- out...how shady of them.
- Same goes for #release updates
- Change the line under [base]:
- mirrorlist=http://s2plmirror01.prod.sdl2.secureserver.net/vph/2/download/mirrors/cos-5.i386
- To:
- mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
- Next, change the same under #released updates, from:
- mirrorlist=http://s2plmirror01.prod.sdl2.secureserver.net/vph/2/download/mirrors/cos-5-updates.i386
- To:
- mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
- So, the end result would be:
- [base]
- name=CentOS-5 - Base
- mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
- failovermethod=priority
- #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
- gpgcheck=1
- gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centos5
- #released updates
- [update]
- name=CentOS-5 - Updates
- mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
- failovermethod=priority
- #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
- gpgcheck=1
- gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centos5
- Choosing mirrorlist.centos.org will pick the fastest mirror to pull in
- updates from. Now run the command "yum update" and you'll notice you
- have quite a few outdated packages.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement