6

I'm trying to install certbot on RHEL server.

Instructions to enable epel-release

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

then

# subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms"

epel-release-7-11 was installed.

# yum install certbot
Loaded plugins: product-id, search-disabled-repos, subscription-manager
No package certbot available.
Error: Nothing to do

I even downloaded rpm manually from fedora project epel

removed and cleared all cache. But install package is not available.

2
  • What does yum repolist say? Can you install other packages from epel?
    – omajid
    Nov 29, 2018 at 18:33
  • epel/x86_64 Extra Packages for Enterprise is present. yum install banner part of epel does install.
    – vbnr
    Nov 29, 2018 at 18:39

5 Answers 5

14

For future reference, I could install executing the following lines:

sudo yum -y install yum-utils

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

sudo yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional

sudo yum install certbot

https://certbot.eff.org/lets-encrypt/centosrhel7-other

4

It's success for me.

before install certbot, I execute the following lines:

 yum remove epel-release
 yum clean all

then execute the following lines:

sudo yum -y install yum-utils

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

sudo yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional

sudo yum install certbot
1
  • THANK YOU! I was wondering why yum install was so esoteric for this widely used product. Dec 31, 2021 at 16:22
3

For me with same error just using this command simply solved the problem:

yum install epel-release

seems other sugesstions are a little excessive or unrelated.

1
  • This works because certbot is not part of the default for RHEL or all derivative projects (CentOS, Rocky Linux, AlmaLinux, etc.) but it is included in the EPEL repository. EPEL, part of Fedora Linux, is arguably the most official (and ths generally most stable / tested) of the supplemental repositories for RHEL-derived distros, and the ability to install it with yum (or dnf) is included in RHEL. For this reason, I would preferentially install something from it, rather than any other repository.
    – cazort
    Sep 13, 2021 at 20:51
2

Go to /etc/yum.repo.d/epel.repo and delete # before the "baseurl" and save it. after that:

yum install certbot

on this way my problem was solved

0

In EC2 Amazon Linux do

$ sudo amazon-linux-extras install epel

then do

$ sudo yum install certbot

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.