How To Install python3-certbot-nginx on Rocky Linux 8

In this tutorial we learn how to install python3-certbot-nginx on Rocky Linux 8. python3-certbot-nginx is The nginx plugin for certbot

Introduction

In this tutorial we learn how to install python3-certbot-nginx on Rocky Linux 8.

What is python3-certbot-nginx

Plugin for certbot that allows for automatic configuration of nginx

We can use yum or dnf to install python3-certbot-nginx on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-certbot-nginx.

Install python3-certbot-nginx on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-certbot-nginx using dnf by running the following command:

sudo dnf -y install python3-certbot-nginx

Install python3-certbot-nginx on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-certbot-nginx using yum by running the following command:

sudo yum -y install python3-certbot-nginx

How To Uninstall python3-certbot-nginx on Rocky Linux 8

To uninstall only the python3-certbot-nginx package we can use the following command:

sudo dnf remove python3-certbot-nginx

python3-certbot-nginx Package Contents on Rocky Linux 8

/usr/lib/python3.6/site-packages/certbot_nginx
/usr/lib/python3.6/site-packages/certbot_nginx-1.14.0-py3.6.egg-info
/usr/lib/python3.6/site-packages/certbot_nginx-1.14.0-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/certbot_nginx-1.14.0-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/certbot_nginx-1.14.0-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/certbot_nginx-1.14.0-py3.6.egg-info/entry_points.txt
/usr/lib/python3.6/site-packages/certbot_nginx-1.14.0-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/certbot_nginx-1.14.0-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/certbot_nginx/__init__.py
/usr/lib/python3.6/site-packages/certbot_nginx/__pycache__
/usr/lib/python3.6/site-packages/certbot_nginx/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/certbot_nginx/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/certbot_nginx/_internal
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/__init__.py
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/__pycache__
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/__pycache__/configurator.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/__pycache__/configurator.cpython-36.pyc
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/__pycache__/constants.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/__pycache__/constants.cpython-36.pyc
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/__pycache__/display_ops.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/__pycache__/display_ops.cpython-36.pyc
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/__pycache__/http_01.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/__pycache__/http_01.cpython-36.pyc
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/__pycache__/nginxparser.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/__pycache__/nginxparser.cpython-36.pyc
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/__pycache__/obj.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/__pycache__/obj.cpython-36.pyc
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/__pycache__/parser.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/__pycache__/parser.cpython-36.pyc
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/__pycache__/parser_obj.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/__pycache__/parser_obj.cpython-36.pyc
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/configurator.py
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/constants.py
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/display_ops.py
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/http_01.py
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/nginxparser.py
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/obj.py
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/parser.py
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/parser_obj.py
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/tls_configs
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/tls_configs/options-ssl-nginx-old.conf
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/tls_configs/options-ssl-nginx-tls12-only.conf
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/tls_configs/options-ssl-nginx-tls13-session-tix-on.conf
/usr/lib/python3.6/site-packages/certbot_nginx/_internal/tls_configs/options-ssl-nginx.conf
/usr/share/doc/python3-certbot-nginx
/usr/share/doc/python3-certbot-nginx/README.rst
/usr/share/licenses/python3-certbot-nginx
/usr/share/licenses/python3-certbot-nginx/LICENSE.txt

References

Summary

In this tutorial we learn how to install python3-certbot-nginx on Rocky Linux 8 using yum and dnf.