Certbot package not found RHEL7

I’ve never really done any server admin before, but I’m trying to install certbot on my RHEL 7 server with apache following these instructions. However, when I run sudo yum install python2-certbot-apache, the command returns

Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager
    rhel-7-server-extras-rpms                                                                                                                                    | 2.0 kB  00:00:00
    rhel-7-server-optional-rpms                                                                                                                                  | 2.0 kB  00:00:00
    rhel-7-server-rh-common-rpms                                                                                                                                 | 2.1 kB  00:00:00
    rhel-7-server-rpms                                                                                                                                           | 2.0 kB  00:00:00
    rhel-7-server-satellite-tools-6.2-rpms                                                                                                                       | 2.1 kB  00:00:00
    rhel-7-server-satellite-tools-6.3-rpms                                                                                                                       | 2.1 kB  00:00:00
    rhel-7-server-supplementary-rpms                                                                                                                             | 2.0 kB  00:00:00
    No package python2-certbot-apache available.
    Error: Nothing to do
    Uploading Enabled Repositories Report
    Loaded plugins: product-id, subscription-manager

And when I search for the certbot package (sudo yum search certbot) it returns “no matches found”.

Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager
Warning: No matches found for: certbot
No matches found
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager

I’d enabled EPEL on the server with sudo subscription-manager repos --enable "rhel-server-optional-rpms" --enable "rhel-server-extras-rpms" and sudo yum-config-manager --enable rhel-7-server-extras-rpms rhel-7-server-optional-rpms

What am I doing wrong here?

I can’t really see anything wrong…
But I would try:
sudo yum -y install yum-utils
sudo yum-config-manager --enable rhel-7-server-extras rhel-7-server-optional

I was told it is better to use acme.sh under centos rather than certbot. Of course that might not be the best advice these days but acme.sh works for me. Now for a bit of irony, I’m back on the forum because certbot was updated on my VPS and perhaps caused a problem. (I’m going to start another question to see if I should remove it). Maybe this output is useful:

sh-4.2# yum list certbot
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: sjc.edge.kernel.org
 * epel: mirror.prgmr.com
 * extras: mirror.fileplanet.com
 * updates: mirror.keystealth.org
Installed Packages
certbot.noarch                                                                          0.29.1-1.el7                                                                          @epel

And:

sh-4.2# repoquery -i certbot

Name        : certbot
Version     : 0.29.1
Release     : 1.el7
Architecture: noarch
Size        : 77540
Packager    : Fedora Project
Group       : Unspecified
URL         : https://pypi.python.org/pypi/certbot
Repository  : epel
Summary     : A free, automated certificate authority client
Source      : certbot-0.29.1-1.el7.src.rpm
Description :
certbot is a free, automated certificate authority that aims
to lower the barriers to entry for encrypting all HTTP traffic on the 
internet.

3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Thanks very much! I’ll look into acme.sh and see if some of that output helps. I’m not really sure what I’m doing at this point since this is sort of a side project for work (I’m more of an application dev). but it’s definitely educational!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.