免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1624 | 回复: 0
打印 上一主题 下一主题

Rhel 5 升级为centos 5 并配置yum源 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-12-20 20:34 |只看该作者 |倒序浏览

Rhel 5 升级为centos 5 并配置yum源
开发一台测试服务器原来用的是RHEL5,安装啊,更新包一点都不方便,整成CentOS 5吧,方便使用。
1.卸载掉原yum包
rpm -e yum-rhn-plugin-0.4.3-1.el5 yum-updatesd-3.0.1-5.el5
yum-3.0.1-5.el5 yum-metadata-parser-1.0-8.fc6 pirut-1.2.10-1.el5.noarch
rpm -e redhat-release-5Server-5.0.0.9 redhat-release-notes-5Server-5 –nodeps
2.下载安装CentOS中的yum包
mkdir yum
cd yum/
wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-3.2.8-9.el5.centos.1.noarch.rpm
wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-updatesd-0.9-2.el5.noarch.rpm
wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-2.el5.x86_64.rpm
wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/centos-release-5-2.el5.centos.x86_64.rpm
wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/centos-release-notes-5.2-2.x86_64.rpm
rpm -Uvh *.rpm
3.导入RPM-GPG-KEY
rpm –import http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
4.修改一下源,改成centos.ustc.edu.cn,我用着速度很爽。
yum update/install
搞定
–EOF–
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/40226/showart_2126453.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP