1)说明
redhat yum命令使用报错解决-重新配置yum源
解决--更改yum源
2)更改yum源
(1)进入源目录
cd /etc/yum.repos.d/
(2)备份 redhat 默认源
mv redhat.repo redhat.repo-bak
(3)下载centos8源
curl -O http://mirrors.aliyun.com/repo/Centos-8.repo
(4)对yum源生成缓存
yum makecache