RHEL6.5更改为阿里云(aliyun)CentOS6的yum源

删除原有的yum包
45 rpm -qa | grep yum|xargs rpm -e –nodeps
安装yum包
46 rpm -ivh http://mirrors.aliyun.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
47 rpm -ivh http://mirrors.aliyun.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
52 rpm -ivh http://mirrors.aliyun.com/centos/6/os/x86_64/Packages/yum-3.2.29-60.el6.centos.noarch.rpm http://mirrors.aliyun.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
注:52 后面的包两个包需要一起安装。

添加源
54 cd /etc/yum.repos.d/
55 rm -rf *
56 wget -O /etc/yum.repos.d/rhel-source.repo http://mirrors.aliyun.com/repo/Centos-6.repo
59 sed -i ‘s/\$releasever/6/g’ rhel-source.repo

清理yum缓存
60 yum clean all
将服务器上的软件包信息缓存到本地,以提高速度
61 yum makecache

测试安装
62 yum install open-ssl

未经允许不得转载:ganlei的个人博客 » RHEL6.5更改为阿里云(aliyun)CentOS6的yum源

赞 (4)
分享到:更多 ()