Here it is how I managed to fix it:
Create these 3 following files:
Code:
/var/cache/yum/base/mirrorlist.txt
/var/cache/yum/extras/mirrorlist.txt
/var/cache/yum/updates/mirrorlist.txt
Each of them with following content:
Code:
http://ftp.uninett.no/linux/epel/5/x86_64/
http://centos.uib.no/5.11/os/x86_64/
http://centos.vianett.no/5.11/os/x86_64
http://ftp.ember.se/centos/5.11/os/x86_64/
http://ftp.funet.fi/pub/mirrors/centos.org/5.11/os/x86_64/
http://ftp.lysator.liu.se/pub/CentOS/5.11/os/x86_64/
http://ftp.uninett.no/centos/5.11/os/x86_64/
http://mirror.hh.se/centos/5.11/os/x86_64/
http://mirror.nsc.liu.se/CentOS/5.11/os/x86_64/
http://mirror.zetup.net/CentOS/5.11/os/x86_64/
http://mirrors.glesys.net/CentOS/5.11/os/x86_64/
http://centos.mirror.far.fi/5.11/extras/x86_64/
http://centos.uib.no/5.11/extras/x86_64/
http://centos.vianett.no/5.11/extras/x86_64/
http://ftp.ember.se/centos/5.11/extras/x86_64/
http://ftp.lysator.liu.se/pub/CentOS/5.11/
http://ftp.uninett.no/centos/5.11/extras/x86_64/
http://mirror.hh.se/centos/5.11/extras/x86_64/
http://mirror.nsc.liu.se/CentOS/5.11/extras/x86_64/
http://mirror.zetup.net/CentOS/5.11/extras/x86_64/
http://mirrors.glesys.net/CentOS/5.11/extras/x86_64/
http://centos.uib.no/5.11/updates/x86_64/
http://centos.vianett.no/5.11/updates/x86_64/
http://ftp.ember.se/centos/5.11/updates/x86_64/
http://ftp.funet.fi/pub/mirrors/centos.org/5.11/updates/x86_64/
http://ftp.lysator.liu.se/pub/CentOS/5.11/updates/x86_64/
http://ftp.uninett.no/centos/5.11/updates/x86_64/
http://mirror.hh.se/centos/5.11/updates/x86_64/
http://mirror.nsc.liu.se/CentOS/5.11/updates/x86_64/
http://mirror.zetup.net/CentOS/5.11/updates/x86_64/
http://mirrors.glesys.net/CentOS/5.11/updates/x86_64/
Then execute eg.
Code:
yum upgrade perl-DBI
What wonders me:
I have quickly installed CentOS 5.9 on Virtual Machine to find out what should be mirrorlist.txt and it does not exist there.
The list I am showing in this post is taken form history, before I executed: yum clean all
What makes me more wonder is that following also does not work and gives value:
Invalid release
Code:
wget "http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=os"