rhel6使用centos源 更新服务器
1 2 3 4 5 6 7 8 9 10 11 12 |
#删除自带yum rpm -aq|grep yum|xargs rpm -e --nodeps rpm -ivh http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm rpm -ivh http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-14.1.el6.x86_64.rpm #这两个必须一起装 rpm -ivh http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.27-14.el6.centos.noarch.rpm http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm #下载163源 cd /etc/yum.repos.d/ wget http://mirrors.163.com/.help/CentOS6-Base-163.repo sed -i "s/\$releasever/6/" CentOS6-Base-163.repo #测试一下 yum makecache |
发表评论
要发表评论,您必须先登录。