centos8 stream yum dnf更新
# Backup original repo files (good practice)
cp -r /etc/yum.repos.d /etc/yum.repos.d.bak.$(date +%F)
# Disable mirrorlist and switch to vault.centos.org
sed -i 's|^mirrorlist=|#mirrorlist=|g' /etc/yum.repos.d/CentOS-Stream-*.repo
sed -i 's|^#baseurl=http://mirror.centos.org|baseurl=https://vault.centos.org|g' /etc/yum.repos.d/CentOS-Stream-*.repo
# Clean cache and try again
dnf clean all
dnf makecache
# for netstat
dnf install net-tools
systemctl stop firewalld
systemctl disable firewalld
搜索更多相关主题的帖子:
linux centos yum dnf