Restore a default RHEL 7.x default repo list of EC2 Instance

Many time, my students have deleted or corrupted a yum repo list of RHEL7 or Centos 7 and i spent lots of time solving these problem. This, this is quick guide to solve a problems when /etc/yum.repos.d has been corrupted or deleted.

Options 1

$ cd /etc/yum.repos.d
$ git clone

Options 2


  • This system is not registered with an entitlement server. You can use subscription-manager to register
  • /var/tmp/yum-root-02AK54/epel-release-latest-7.noarch.rpm: does not update installed package.
Rajesh Kumar
Total Page Visits: 82 - Today Page Visits: 7