Centos7-重建官方yum源

删除yum源,重建官方

cd /etc/yum.repos.d/ #删除所有
rpm -Uvh --force http://mirror.centos.org/centos-7/7.7.1908/os/x86_64/Packages/centos-release-7-7.1908.0.el7.centos.x86_64.rpm
ll
yum clean all
yum makecache

posted @ 2019-10-05 11:48  kylingx  阅读(8999)  评论(0编辑  收藏  举报