[base]
name=Red Hat Enterprise Linux $releasever -Base
baseurl=http://mirrors.163.com/centos/5/os/$basearch/
gpgcheck=1
[update]
name=Red Hat Enterprise Linux $releasever -Updates
baseurl=http://mirrors.163.com/centos/5/updates/$basearch/
gpgcheck=1
[extras]
name=Red Hat Enterprise Linux $releasever -Extras
baseurl=http://mirrors.163.com/centos/5/extras/$basearch/
gpgcheck=1
[addons]
name=Red Hat Enterprise Linux $releasever -Addons
baseurl=http://mirrors.163.com/centos/5/addons/$basearch/
gpgcheck=1
6、清理yum源
yum clean all
7、yum install vim #测试一下可不可以用
至此yum安装完成,可以 yum install 安装程序了
注释: 现在网络上很多redhat5.5设置163网络源 都失效了,是因为163源不提供redhat5版本的更新了,里面只留了个文档 ,不过里面写的很清楚 ,
This directory (and version of CentOS) is deprecated. For normal users,
you should use /5/ and not /5.5/ in your path. Please see this FAQ
concerning the CentOS release scheme:
If you know what you are doing, and absolutely want to remain at the 5.5
level, go to http://vault.centos.org/ for packages. Please keep in mind that 5.5 no longer gets any updates
翻译: