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

$ cd /etc/yum.repos.d

$ curl -o docker-ce.repo

$ curl -o epel-testing.repo

$ curl -o redhat-rhui.repo

$ curl -o epel.repo

$ curl -o redhat-rhui-client-config.repo

$ curl -o rhui-load-balancers.conf


  • 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
Follow me