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