Configuring the Yum Source
- Mask other sources in the system.
1 2
mkdir -p /etc/yum.repos.d/bak mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/bak
- Configure the HUAWEI CLOUD source.
1 2
wget -O /etc/yum.repos.d/CentOS-Base.repo https://repo.huaweicloud.com/repository/conf/CentOS-8-reg.repo sed -i 's/$releasever/8-stream/g' /etc/yum.repos.d/CentOS-Base.repo
Parent topic: CentOS 8.1