我要评分
获取效率
正确性
完整性
易理解

Configuring the Yum Source

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Go to the following directory:
    cd /etc/yum.repos.d/
  3. Obtain the RPM package of the EPEL repository.
    wget  https://repo.huaweicloud.com/epel/epel-release-latest-7.noarch.rpm
  4. Perform the installation.
    rpm  -ivh  --nodeps  epel-release-latest-7.noarch.rpm
  5. Replace #baseurl in the epel.repo file with baseurl.
    sed -i "s/#baseurl/baseurl/g" /etc/yum.repos.d/epel.repo
  6. Refresh the Yum source cache.
    yum clean all
    yum makecache
  7. View the result.
    yum repolist