前几天在公司centos6生产机器,准备yum安装oracle所需RPM包,发现提示报错 


查了下centos社区,发现是2020年11月30日开始 centos6各大开源镜像站已经停止维护了 但是测试了一下发现阿里源镜像repo还是可以用的 因为他的centos-vault仓库里放了之前版本的centos的包
只要在centos下执行几条命令即可 切换root账户
sed -i “s|enabled=1|enabled=0|g” /etc/yum/pluginconf.d/fastestmirror.conf
备份现有repo仓库
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
下载并使用阿里云仓库repo
curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo
更新yum
yum clean all
yum makecache
执行 yum -y install lsof
成功安装RPM包:


点赞(0) 打赏

评论列表 共有 0 条评论

暂无评论

企业微信号

微信扫一扫咨询

微信公众号

关注我们,定期优惠

立即
投稿
发表
评论
返回
顶部
展开