Nervi Roberto

Consulente Informatico

Now that most mirrors are dropping CentOS-5, if remaining users still need to access at yum repos then

- know your cenros version with lsb_release -a or uname -a

- remove dag.repo if present and other repo's from dir /etc/yum.repos.d

- edit (pay attention to upper and lowecase chars)  /etc/yum.repos.d/CentOS-Base.repo


comment out mirrorlist directives, (put # at line start)
and in each enabled section add (remove the # and edit line)


(instead of 5.11 type your 5.x version)

save and close

now we can update via Yum:

yum clean all
yum -y update