CentOS Stream 9 更换源

Dragonpbs/ 15 12 月, 2023/ 未分类

touch Centos-9-Stream.repo

vi Centos-9-Stream.repo

[base]
name=CentOS-9-stream – Base – mirrors.aliyun.com
baseurl=https://mirrors.aliyun.com/centos-stream/9-stream/BaseOS/$basearch/os/
enable=1
gpgcheck=0
[AppStream]
name=CentOS-9-stream – AppStream – mirrors.aliyun.com
baseurl=https://mirrors.aliyun.com/centos-stream/9-stream/AppStream/$basearch/os/
enable=1
gpgcheck=0

yum clean all

yum makecache