CentOS 8 结束生命周期如何切换源?
参考阿里云文档:https://developer.aliyun.com/mirror/centos
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
yum clean all && yum makecache
无法安装所需软件?
centos8 上 yum 源里面没有 epel ,而 screen 等一些软件被迁移到了 epel 源,所以我们需要在centos8 上先安装epel源。然后就可以安装 screen 了
[root@localhost ecs]# yum install epel-release
[root@localhost ecs]# yum install screen
可选 baseurl
baseurl=http://mirrors.aliyun.com/$contentdir/$releasever/BaseOS/$basearch/os/
baseurl=https://mirror.hostnet.nl/$contentdir/$releasever/BaseOS/$basearch/os/