RedHat5 uses CentOS yum source Latest available

  
 

My server is 32-bit

wget http://mirrors.163.com/centos/5/os/i386/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch .rpmwget http://mirrors.163.com/centos/5/os/i386/CentOS/yum-3.2.22-40.el5.centos.noarch.rpmwget http://mirrors.163.com/centos/5 /os/i386/CentOS/yum-metadata-parser-1.1.2-4.el5.i386.rpmInstall rpm -ivh yum-*wget http://mirrors.163.com/.help/CentOS-Base-163 .repo

mv CentOS-Base-163.repo /etc/yum.repos.d/

cd /etc/yum.repos.d/

vi CentOS- Base-163.repo

Replace “$releasever” in the CentOS-Base-163.repo file with “5”(5 is the version number of the system.)

: % s/\\$releasever/5/g

yum clean all

yum makecache

Copyright © Windows knowledge All Rights Reserved