ITPub博客

首页 > 数据库 > NoSQL > RedHat Server 5.4安装网易yum源

RedHat Server 5.4安装网易yum源

NoSQL 作者:0江荷浏莲0 时间:2013-08-23 01:36:00 0 删除 编辑

1.首先需要确定系统架构

确认是x86_64之后,在网易的mirrors下载需要的rpm包:(如果是i386的话则需要到http://mirrors.163.com/centos/5/os/i386/CentOS/
找到对应的软件包)

wget
http://mirrors.163.com/centos/5/os/x86_64/CentOS/m2crypto-0.16-8.el5.x86_64.rpm

wget
http://mirrors.163.com/centos/5/os/x86_64/CentOS/python-elementtree-1.2.6-5.x86_64.rpm

wget
http://mirrors.163.com/centos/5/os/x86_64/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm

wget
http://mirrors.163.com/centos/5/os/x86_64/CentOS/python-sqlite-1.1.7-1.2.1.x86_64.rpm

wget
http://mirrors.163.com/centos/5/os/x86_64/CentOS/python-urlgrabber-3.1.0-6.el5.noarch.rpm

wget
http://mirrors.163.com/centos/5/os/x86_64/CentOS/yum-3.2.22-39.el5.centos.noarch.rpm

wget
http://mirrors.163.com/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm

wget
http://mirrors.163.com/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm

2.然后 安装(升级)软件包,并导入证书

#rpm -Uvh *.rpm

#rpm -import http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-5

3.让yum使用网易的源:

#cd /etc/yum.repos.d/

#wget http://mirrors.163.com/.help/CentOS-Base-163.repo

4.使用

#vi CentOS-Base-163.repo

在所有mirrorlist前面加上#,把所有$releasever替换成5,保存

5.清理并重新生成yum缓存

#yum clean metadata

#yum makecache

6.于是yum就正常工作了,然后随手就更新一下,就OK了

#yum -y upgrade

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23493583/viewspace-1112438/,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
下一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2010-03-11