CentOS-5 Yum source is not available
[root@ip-172-31-28-42 yum.repos.d]# yum search MySQL
Loaded plugins:fastestmirror, security
Loading Mirror Speeds from cached hostfile
yumrepo error:all Mirror URL are not using FTP, Http[s] or file.
Eg. Invalid release/
Removing mirrorlist with no valid mirrors:/var/cache/yum/base/mirrorlist.txt
error:cannot Find a valid baseurl for repo:base
As you can see: URLs are not FTP or HTTP addresses, open yum view:
[Base]
name=centos-$releasever-base
mirrorlist=http://mirrorlist.centos.org/6release= $releasever &arch=$ Basearch&repo=os
#baseurl =http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-5
root@ip-172-31-28-42 yum.repos.d]# wget mirrorlist=http://mirrorlist.centos.org/6release= $releasever &arch=$ Basearch&repo=os
[1] 4853
[2] 4854
[root@ip-172-31-28-42 yum.repos.d]# mirrorlist=http:// Mirrorlist.centos.org/6release=: Unsupported scheme.
There is a problem with the source URL.
Update the contents of the file and replace it with the following:
# The Mirror system uses the connecting IP address of the client and the # update status of each mirror to pick MIRR ORS that are updated to and # geographically close to the client.
You are should use this for CentOS updates # unless to are manually other picking.
# # If The mirrorlist= does not work for your, as a fall back you can try the # remarked out Baseurl= line instead. # [Base] name=centos-$releasever-base #mirrorlist =http://mirrorlist.centos.org/?release= $releasever Arch= $basearch &repo=os #baseurl =http://mirror.centos.org/centos/$releasever/os/$basearch/baseurl=http:// vault.centos.org/5.11/os/$basearch/gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-5 #released u pdates [Updates] name=centos-$releasever-updates #mirrorlist =http://mirrorlist.centos.org/?release= $releasever &am P;arch= $basearch &repo=updates #baseurl =http://mirror.centos.org/centos/$releasever/updates/$basearch/baseurl=http://vault.centos.org/5.11/updates/$basearch/gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-5 #additional packages useful [extras] name=centos-$releasever-extras #mirrorlist =http://mirrorlist. centos.org/?release= $releasever &arch= $basearch &repo=extras #baseurl =http://mirror.centos.org/centos/$ releasever/extras/$basearch/baseurl=http://vault.centos.org/5.11/extras/$basearch/gpgcheck=1 gpgkey=file:///etc /pki/rpm-gpg/rpm-gpg-key-centos-5 #additional packages that extend functionality of existing packages [cen Tosplus] name=centos-$releasever-plus #mirrorlist =http://mirrorlist.centos.org/?release= $releasever &arch=$ Basearch&repo=centosplus #baseurl =http://mirror.centos.org/centos/$releasever/centosplus/$basearch/baseurl= http://vault.centos.org/5.11/centosplus/$basearch/gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/ Rpm-gpg-key-centos-5 #contrib-packages by CentOS Users [contrib] name=centos-$releasever-contrib #mirrorlist =http://mirrorlist.centos.org/?release= $releasever Arch= $basearch &repo=contrib #baseurl =http://mirror.centos.org/centos/$releasever/contrib/$basearch/baseurl =http://vault.centos.org/5.11/contrib/$basearch/gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/ Rpm-gpg-key-centos-5