How to add different mirrors for update? Centos 6.4

General support questions
Locked
denede
Posts: 16
Joined: 2013/09/10 19:06:07

How to add different mirrors for update? Centos 6.4

Post by denede » 2013/10/02 08:35:03

How can i add different mirrors for base, updates, extras, etc.. ?
Currently i only have this when i run yum update

Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Excluding mirror: mirror.pnl.gov
* epel: fedora-epel.mirror.lstn.net
* remi: mirrors.mediatemple.net
Setting up Update Process
No Packages marked for Update


but i want to add this also

base: mirror.ovh.net
extras: mirror.ovh.net
updates: mirror.ovh.net

i need to update my system, to install some dependencies, and it won't work without other mirrors.

User avatar
TrevorH
Site Admin
Posts: 33221
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to add different mirrors for update? Centos 6.4

Post by TrevorH » 2013/10/02 10:14:55

Just looks like you have all the CentOS repos disabled to me. Edit /etc/yum.repos.d/CentOS-Base.repo and check the "enabled=" lines are set to 1 for base and updates.

denede
Posts: 16
Joined: 2013/09/10 19:06:07

Re: How to add different mirrors for update? Centos 6.4

Post by denede » 2013/10/02 16:01:05

fixed it.. it seems i had 2 files.. one with disabled repo base..

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

How to add different mirrors for update? Centos 6.4

Post by gerald_clark » 2013/10/02 16:06:15

That is not the CentOS supplied repo file.
I don't know what you are running, but it is not a true CentOS.
Are you running cPanel or Plesk?
Is this a hosted machine?
what is the output of 'uname -a' ?

denede
Posts: 16
Joined: 2013/09/10 19:06:07

Re: How to add different mirrors for update? Centos 6.4

Post by denede » 2013/10/02 16:13:03

it is centos,but i don't know why I had 2 files of CentOS-Base.repo, 1.CentOS-Base.repo and 1.CentOS-Base.repo.disabled

removed the 1st one, renamed the 2nd, and now everything is perfect. have 300 updates. awsome.

i'm not running any cpanel or plesk. i have access to it only from terminal via putty

kiran raj
Posts: 14
Joined: 2017/05/12 05:24:07

Re: How to add different mirrors for update? Centos 6.4

Post by kiran raj » 2017/06/20 09:08:37

please post the second repo file ie (.disabled)

Locked