How To Install python3-dominate on Rocky Linux 8

In this tutorial we learn how to install python3-dominate on Rocky Linux 8. python3-dominate is Python library for HTML documents

Introduction

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

What is python3-dominate

Dominate is a Python library for creating and manipulating HTML documents using an elegant DOM API. It allows you to write HTML pages in pure Python very concisely, which eliminates the need to learn another template language, and lets you take advantage of the more powerful features of Python.

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

Install python3-dominate 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-dominate using dnf by running the following command:

sudo dnf -y install python3-dominate

Install python3-dominate 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-dominate using yum by running the following command:

sudo yum -y install python3-dominate

How To Uninstall python3-dominate on Rocky Linux 8

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

sudo dnf remove python3-dominate

python3-dominate Package Contents on Rocky Linux 8

/usr/lib/python3.6/site-packages/dominate
/usr/lib/python3.6/site-packages/dominate-2.5.1-py3.6.egg-info
/usr/lib/python3.6/site-packages/dominate-2.5.1-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/dominate-2.5.1-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/dominate-2.5.1-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/dominate-2.5.1-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/dominate/__init__.py
/usr/lib/python3.6/site-packages/dominate/__pycache__
/usr/lib/python3.6/site-packages/dominate/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dominate/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/dominate/__pycache__/_version.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dominate/__pycache__/_version.cpython-36.pyc
/usr/lib/python3.6/site-packages/dominate/__pycache__/document.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dominate/__pycache__/document.cpython-36.pyc
/usr/lib/python3.6/site-packages/dominate/__pycache__/dom1core.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dominate/__pycache__/dom1core.cpython-36.pyc
/usr/lib/python3.6/site-packages/dominate/__pycache__/dom_tag.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dominate/__pycache__/dom_tag.cpython-36.pyc
/usr/lib/python3.6/site-packages/dominate/__pycache__/svg.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dominate/__pycache__/svg.cpython-36.pyc
/usr/lib/python3.6/site-packages/dominate/__pycache__/tags.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dominate/__pycache__/tags.cpython-36.pyc
/usr/lib/python3.6/site-packages/dominate/__pycache__/util.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dominate/__pycache__/util.cpython-36.pyc
/usr/lib/python3.6/site-packages/dominate/_version.py
/usr/lib/python3.6/site-packages/dominate/document.py
/usr/lib/python3.6/site-packages/dominate/dom1core.py
/usr/lib/python3.6/site-packages/dominate/dom_tag.py
/usr/lib/python3.6/site-packages/dominate/svg.py
/usr/lib/python3.6/site-packages/dominate/tags.py
/usr/lib/python3.6/site-packages/dominate/util.py
/usr/share/doc/python3-dominate
/usr/share/doc/python3-dominate/README.md
/usr/share/licenses/python3-dominate
/usr/share/licenses/python3-dominate/LICENSE.txt

References

Summary

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