Rate This Document
Findability
Accuracy
Completeness
Readability

Configuring the Yum Source

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following command to download the Base source configuration file:
    wget --no-check-certificate -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.tools.huawei.com/repository/conf/CentOS-AltArch-7.repo
  3. Run the following commands to configure the EPEL source configuration file:
    echo '[epel]
    name=Extra Packages for Enterprise Linux 7 - $basearch
    baseurl=http://mirrors.tools.huawei.com/epel/7/$basearch
    failovermethod=priority
    enabled=1
    gpgcheck=0' > /etc/yum.repos.d/epel.repo
  4. Run the following commands to refresh the Yum source cache:
    yum clean all
    yum makecache