RedHat Enterprise7 修改为CentOS的yum源
报错
解决
1、将自带的yum卸载掉
2、下载centos的yum并安装
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-52.el7.noarch.rpm
wget http://rpmfind.net/linux/centos/7.7.1908/os/x86_64/Packages/yum-3.4.3-163.el7.centos.noarch.rpm
注:如提示缺哪个包再单独安装哪个
[root@rac2 yum.repos.d]# pwd
/etc/yum.repos.d
[root@rac2 yum.repos.d]# mv public-yum-ol7.repo{,.bak}
释上图:如gpgcheck=0时,gpgkey可不写
[root@rac2 yum.repos.d]# mount /dev/sr0 /mnt/usb1
3、清除yum缓存并重建
4、yum安装测试
欢迎加入QQ群一起讨论Linux、开源等技术