运维开发网

rhel6.6替换到centos6.6源(163源)

运维开发网 https://www.qedev.com 2020-03-10 08:38 出处:网络 作者:运维开发网整理
rhel 6.6的yum源需要序列号,可以使用centos的yum源来替代. 1. 卸载,yum rpm -aq|grep yum|xargs rpm -e --nodeps

rhel 6.6的yum源需要序列号,可以使用centos的yum源来替代.

1. 卸载,yum rpm -aq|grep yum|xargs rpm -e --nodeps

2. 下载rpm包, wget http://mirrors.163.com/centos/6.6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm

wget http://mirrors.163.com/centos/6.6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm

wget http://mirrors.163.com/centos/6.6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm

wget http://mirrors.163.com/centos/6.6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

3.安装rpm包,rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm &rpm -ivh yum-*

4.删除所有yum源,rm /etc/yum.repos.d/*

5.重新下载yum源,wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

6.替换掉releasever,:1,$s/$releasever/6.6/g

7.yum clean all&yum makecache

8.yum update -y

0

精彩评论

暂无评论...
验证码 换一张
取 消