How to configure epel repository manually when we do not have internet connection or subscription to the channel.

  • EPEL is a free repo, there isn't any subscription. – slm Jul 13 '18 at 2:43

This guide shows what needs to be done to set up EPEL on CentOS 6 & 7:

$ sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
$ yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

If you take a look at one of the RPMs you can see what files it'll set up when installed:

$ rpm -qlp epel-release-latest-7.noarch.rpm

The key pieces are the epel.repo and the GPG key file RPM-GPG-KEY-EPEL-7. You can manually install these 2 files and your system will be enabled for the EPEL repo.


  • I can't connect to the outside world (I cant http and pull the repo) – Kiron Jul 17 '18 at 20:37
  • You'll have to do this on another server then and use yumdownloader to collect your RPMS you want and then scp them over to the server. – slm Jul 17 '18 at 20:38
  • None of my servers have internet connectivity. If I've epel setup on one server I would be able to create nfs mount and configure the local repo (on remote server ) using that nfs mount. – Kiron Jul 17 '18 at 20:46
  • @Kiron - that would be a way to accomplish this. – slm Jul 17 '18 at 20:47
  • I've intent access to windows machine, I would be able to move/copy rpms from windows machine to linux server. But I wanted to know, is there any way that I can download all the rpms on windows machine on one go. And then move them to linux and configure a local repo? – Kiron Jul 17 '18 at 20:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.