[root@centos8-hkping /]#vim /etc/yum.repos.d/Centos-8.repo
[BaseOS]
name=CentOS-$releasever - Base
gpgcheck=1
enabled=1
[AppStream]
name=CentOS-$releasever - AppStream
gpgcheck=1
enabled=1
[epel]
name=CentOS-$releasever Extra Packages - $basearch
enabled=1
gpgcheck=1