Rate This Document
Findability
Accuracy
Completeness
Readability

Configuring the Yum Source

  1. 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
    
  2. 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