How To Install python3-html5lib on CentOS 8

python3-html5lib is A python based HTML parser/tokenizer

Introduction

In this tutorial we learn how to install python3-html5lib on CentOS 8.

What is python3-html5lib

A python based HTML parser/tokenizer based on the WHATWG HTML5 specification for maximum compatibility with major desktop web browsers.

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

Install python3-html5lib on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install python3-html5lib

Install python3-html5lib on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install python3-html5lib

How To Uninstall python3-html5lib on CentOS 8

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

sudo dnf remove python3-html5lib

python3-html5lib Package Contents on CentOS 8

/usr/lib/python3.6/site-packages/html5lib
/usr/lib/python3.6/site-packages/html5lib-0.999999999-py3.6.egg-info
/usr/lib/python3.6/site-packages/html5lib-0.999999999-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/html5lib-0.999999999-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/html5lib-0.999999999-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/html5lib-0.999999999-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/html5lib-0.999999999-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/html5lib/__init__.py
/usr/lib/python3.6/site-packages/html5lib/__pycache__
/usr/lib/python3.6/site-packages/html5lib/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/__pycache__/_ihatexml.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/__pycache__/_ihatexml.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/__pycache__/_inputstream.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/__pycache__/_inputstream.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/__pycache__/_tokenizer.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/__pycache__/_tokenizer.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/__pycache__/_utils.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/__pycache__/_utils.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/__pycache__/constants.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/__pycache__/constants.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/__pycache__/html5parser.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/__pycache__/html5parser.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/__pycache__/serializer.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/__pycache__/serializer.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/_ihatexml.py
/usr/lib/python3.6/site-packages/html5lib/_inputstream.py
/usr/lib/python3.6/site-packages/html5lib/_tokenizer.py
/usr/lib/python3.6/site-packages/html5lib/_trie
/usr/lib/python3.6/site-packages/html5lib/_trie/__init__.py
/usr/lib/python3.6/site-packages/html5lib/_trie/__pycache__
/usr/lib/python3.6/site-packages/html5lib/_trie/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/_trie/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/_trie/__pycache__/_base.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/_trie/__pycache__/_base.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/_trie/__pycache__/datrie.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/_trie/__pycache__/datrie.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/_trie/__pycache__/py.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/_trie/__pycache__/py.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/_trie/_base.py
/usr/lib/python3.6/site-packages/html5lib/_trie/datrie.py
/usr/lib/python3.6/site-packages/html5lib/_trie/py.py
/usr/lib/python3.6/site-packages/html5lib/_utils.py
/usr/lib/python3.6/site-packages/html5lib/constants.py
/usr/lib/python3.6/site-packages/html5lib/filters
/usr/lib/python3.6/site-packages/html5lib/filters/__init__.py
/usr/lib/python3.6/site-packages/html5lib/filters/__pycache__
/usr/lib/python3.6/site-packages/html5lib/filters/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/filters/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/filters/__pycache__/alphabeticalattributes.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/filters/__pycache__/alphabeticalattributes.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/filters/__pycache__/base.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/filters/__pycache__/base.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/filters/__pycache__/inject_meta_charset.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/filters/__pycache__/inject_meta_charset.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/filters/__pycache__/lint.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/filters/__pycache__/lint.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/filters/__pycache__/optionaltags.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/filters/__pycache__/optionaltags.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/filters/__pycache__/sanitizer.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/filters/__pycache__/sanitizer.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/filters/__pycache__/whitespace.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/filters/__pycache__/whitespace.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/filters/alphabeticalattributes.py
/usr/lib/python3.6/site-packages/html5lib/filters/base.py
/usr/lib/python3.6/site-packages/html5lib/filters/inject_meta_charset.py
/usr/lib/python3.6/site-packages/html5lib/filters/lint.py
/usr/lib/python3.6/site-packages/html5lib/filters/optionaltags.py
/usr/lib/python3.6/site-packages/html5lib/filters/sanitizer.py
/usr/lib/python3.6/site-packages/html5lib/filters/whitespace.py
/usr/lib/python3.6/site-packages/html5lib/html5parser.py
/usr/lib/python3.6/site-packages/html5lib/serializer.py
/usr/lib/python3.6/site-packages/html5lib/treeadapters
/usr/lib/python3.6/site-packages/html5lib/treeadapters/__init__.py
/usr/lib/python3.6/site-packages/html5lib/treeadapters/__pycache__
/usr/lib/python3.6/site-packages/html5lib/treeadapters/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/treeadapters/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/treeadapters/__pycache__/genshi.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/treeadapters/__pycache__/genshi.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/treeadapters/__pycache__/sax.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/treeadapters/__pycache__/sax.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/treeadapters/genshi.py
/usr/lib/python3.6/site-packages/html5lib/treeadapters/sax.py
/usr/lib/python3.6/site-packages/html5lib/treebuilders
/usr/lib/python3.6/site-packages/html5lib/treebuilders/__init__.py
/usr/lib/python3.6/site-packages/html5lib/treebuilders/__pycache__
/usr/lib/python3.6/site-packages/html5lib/treebuilders/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/treebuilders/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/treebuilders/__pycache__/base.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/treebuilders/__pycache__/base.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/treebuilders/__pycache__/dom.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/treebuilders/__pycache__/dom.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/treebuilders/__pycache__/etree.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/treebuilders/__pycache__/etree.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/treebuilders/__pycache__/etree_lxml.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/treebuilders/__pycache__/etree_lxml.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/treebuilders/base.py
/usr/lib/python3.6/site-packages/html5lib/treebuilders/dom.py
/usr/lib/python3.6/site-packages/html5lib/treebuilders/etree.py
/usr/lib/python3.6/site-packages/html5lib/treebuilders/etree_lxml.py
/usr/lib/python3.6/site-packages/html5lib/treewalkers
/usr/lib/python3.6/site-packages/html5lib/treewalkers/__init__.py
/usr/lib/python3.6/site-packages/html5lib/treewalkers/__pycache__
/usr/lib/python3.6/site-packages/html5lib/treewalkers/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/treewalkers/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/treewalkers/__pycache__/base.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/treewalkers/__pycache__/base.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/treewalkers/__pycache__/dom.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/treewalkers/__pycache__/dom.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/treewalkers/__pycache__/etree.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/treewalkers/__pycache__/etree.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/treewalkers/__pycache__/etree_lxml.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/treewalkers/__pycache__/etree_lxml.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/treewalkers/__pycache__/genshi.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/html5lib/treewalkers/__pycache__/genshi.cpython-36.pyc
/usr/lib/python3.6/site-packages/html5lib/treewalkers/base.py
/usr/lib/python3.6/site-packages/html5lib/treewalkers/dom.py
/usr/lib/python3.6/site-packages/html5lib/treewalkers/etree.py
/usr/lib/python3.6/site-packages/html5lib/treewalkers/etree_lxml.py
/usr/lib/python3.6/site-packages/html5lib/treewalkers/genshi.py
/usr/share/doc/python3-html5lib
/usr/share/doc/python3-html5lib/CHANGES.rst
/usr/share/doc/python3-html5lib/README.rst
/usr/share/licenses/python3-html5lib
/usr/share/licenses/python3-html5lib/LICENSE

References

Summary

In this tutorial we learn how to install python3-html5lib on CentOS 8 using yum and dnf.