标签:redhat设置网络源
注释: 现在网络上很多redhat5.5设置163网络源 都失效了,是因为163源不提供redhat5版本的更新了,里面只留了个文档 ,不过里面写的很清楚 ,可以去
http://vault.centos.org/5.5/os/x86_64 寻找我们需要的
更换网络源:
1. 卸载自带的rpm rpm -qa |grep rpm
rpm -qa|grep yum |xargs rpm -e --nodeps
2. 安装centos用的yum
wget http://vault.centos.org/5.5/os/x86_64/CentOS/yum-3.2.22-26.el5.centos.noarch.rpm
wget http://vault.centos.org/5.5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm
wget http://vault.centos.org/5.5/os/x86_64/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
wget http://vault.centos.org/5.5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm
3. 下载163源
wget http://mirrors.163.com/.help/CentOS5-Base-163.repo (将原来的备份一下)
vi CentOS5-Base-163.repo 把其中的$releasever全部替换成5
4. 导入证书
rpm --import http://vault.centos.org/5.5/os/x86_64/RPM-GPG-KEY-CentOS-5
5. yum clean all
6. yum makecache
本文出自 “kobebryant” 博客,谢绝转载!
标签:redhat设置网络源
原文地址:http://beautifual.blog.51cto.com/3678509/1697567