通用方法:
ps -ef | grep yum | grep -v grep | awk '{print $2}' | xargs kill -9
rm -rf /var/run/yum.pid /sbin/service
systemctl restart yum (可选)
yum clean all
yum repolist
通用方法:
ps -ef | grep yum | grep -v grep | awk '{print $2}' | xargs kill -9
rm -rf /var/run/yum.pid /sbin/service
systemctl restart yum (可选)
yum clean all
yum repolist