本地repo文件修改
http://mirrors.cloud.aliyuncs.com/centos/ 替换为http://mirrors.aliyun.com/centos
http://mirrors.aliyuncs.com/centos/ 替换为http://mirrors.aliyun.com/centos
下载下面的源
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
yum update更新virt-what报错
使用
yum -y install virt-what*
再使用正常
yum -y updatez
注意,每次更新yum源需要执行
yum clean all
yum makecache