How To Install python3-tidy on Fedora 36

In this tutorial we learn how to install python3-tidy in Fedora 36. python3-tidy is Python wrapper for tidy, from the HTML tidy project

Introduction

In this tutorial we learn how to install python3-tidy on Fedora 36.

What is python3-tidy

Python wrapper (bindings) for tidylib, this allows you to tidy HTML files through a Pythonic interface.

We can use yum or dnf to install python3-tidy on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-tidy.

Install python3-tidy on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install python3-tidy

Install python3-tidy on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install python3-tidy

How To Uninstall python3-tidy on Fedora 36

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

sudo dnf remove python3-tidy

python3-tidy Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/tidy
/usr/lib/python3.10/site-packages/tidy/__init__.py
/usr/lib/python3.10/site-packages/tidy/__pycache__
/usr/lib/python3.10/site-packages/tidy/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/tidy/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/tidy/__pycache__/error.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/tidy/__pycache__/error.cpython-310.pyc
/usr/lib/python3.10/site-packages/tidy/__pycache__/lib.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/tidy/__pycache__/lib.cpython-310.pyc
/usr/lib/python3.10/site-packages/tidy/__pycache__/test_tidy.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/tidy/__pycache__/test_tidy.cpython-310.pyc
/usr/lib/python3.10/site-packages/tidy/error.py
/usr/lib/python3.10/site-packages/tidy/lib.py
/usr/lib/python3.10/site-packages/tidy/test_data
/usr/lib/python3.10/site-packages/tidy/test_data/test.html
/usr/lib/python3.10/site-packages/tidy/test_tidy.py
/usr/lib/python3.10/site-packages/uTidylib-0.6-py3.10.egg-info
/usr/lib/python3.10/site-packages/uTidylib-0.6-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/uTidylib-0.6-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/uTidylib-0.6-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/uTidylib-0.6-py3.10.egg-info/top_level.txt
/usr/share/doc/python3-tidy
/usr/share/doc/python3-tidy/README.rst
/usr/share/licenses/python3-tidy
/usr/share/licenses/python3-tidy/LICENSE

References

Summary

In this tutorial we learn how to install python3-tidy on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).