sudo su
yum update
#Failed to download metadata for repo 'AppStream'
rm -r /var/cache/dnf
dnf clean all && rm -r /var/cache/dnf && dnf upgrade -y && dnf update -y
cat /etc/centos-release
CentOS Linux release 8.1.1911 (Core)
after yum update or yum install commands, network is not working gradually
I will find another solution to use shell