How To Install python3-defusedxml on Rocky Linux 8
Introduction
In this tutorial we learn how to install python3-defusedxml on Rocky Linux 8.
What is python3-defusedxml
The defusedxml package contains several Python-only workarounds and fixes for denial of service and other vulnerabilities in Python’s XML libraries. In order to benefit from the protection you just have to import and use the listed functions / classes from the right defusedxml module instead of the original module. This is the python3 build.
We can use yum or dnf to install python3-defusedxml on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-defusedxml.
Install python3-defusedxml 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-defusedxml using dnf by running the following command:
sudo dnf -y install python3-defusedxml
Install python3-defusedxml 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-defusedxml using yum by running the following command:
sudo yum -y install python3-defusedxml
How To Uninstall python3-defusedxml on Rocky Linux 8
To uninstall only the python3-defusedxml package we can use the following command:
sudo dnf remove python3-defusedxml
python3-defusedxml Package Contents on Rocky Linux 8
/usr/lib/python3.6/site-packages/defusedxml
/usr/lib/python3.6/site-packages/defusedxml-0.6.0-py3.6.egg-info
/usr/lib/python3.6/site-packages/defusedxml-0.6.0-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/defusedxml-0.6.0-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/defusedxml-0.6.0-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/defusedxml-0.6.0-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/defusedxml/ElementTree.py
/usr/lib/python3.6/site-packages/defusedxml/__init__.py
/usr/lib/python3.6/site-packages/defusedxml/__pycache__
/usr/lib/python3.6/site-packages/defusedxml/__pycache__/ElementTree.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/defusedxml/__pycache__/ElementTree.cpython-36.pyc
/usr/lib/python3.6/site-packages/defusedxml/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/defusedxml/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/defusedxml/__pycache__/cElementTree.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/defusedxml/__pycache__/cElementTree.cpython-36.pyc
/usr/lib/python3.6/site-packages/defusedxml/__pycache__/common.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/defusedxml/__pycache__/common.cpython-36.pyc
/usr/lib/python3.6/site-packages/defusedxml/__pycache__/expatbuilder.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/defusedxml/__pycache__/expatbuilder.cpython-36.pyc
/usr/lib/python3.6/site-packages/defusedxml/__pycache__/expatreader.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/defusedxml/__pycache__/expatreader.cpython-36.pyc
/usr/lib/python3.6/site-packages/defusedxml/__pycache__/lxml.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/defusedxml/__pycache__/lxml.cpython-36.pyc
/usr/lib/python3.6/site-packages/defusedxml/__pycache__/minidom.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/defusedxml/__pycache__/minidom.cpython-36.pyc
/usr/lib/python3.6/site-packages/defusedxml/__pycache__/pulldom.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/defusedxml/__pycache__/pulldom.cpython-36.pyc
/usr/lib/python3.6/site-packages/defusedxml/__pycache__/sax.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/defusedxml/__pycache__/sax.cpython-36.pyc
/usr/lib/python3.6/site-packages/defusedxml/__pycache__/xmlrpc.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/defusedxml/__pycache__/xmlrpc.cpython-36.pyc
/usr/lib/python3.6/site-packages/defusedxml/cElementTree.py
/usr/lib/python3.6/site-packages/defusedxml/common.py
/usr/lib/python3.6/site-packages/defusedxml/expatbuilder.py
/usr/lib/python3.6/site-packages/defusedxml/expatreader.py
/usr/lib/python3.6/site-packages/defusedxml/lxml.py
/usr/lib/python3.6/site-packages/defusedxml/minidom.py
/usr/lib/python3.6/site-packages/defusedxml/pulldom.py
/usr/lib/python3.6/site-packages/defusedxml/sax.py
/usr/lib/python3.6/site-packages/defusedxml/xmlrpc.py
/usr/share/doc/python3-defusedxml
/usr/share/doc/python3-defusedxml/CHANGES.txt
/usr/share/doc/python3-defusedxml/README.html
/usr/share/doc/python3-defusedxml/README.txt
/usr/share/licenses/python3-defusedxml
/usr/share/licenses/python3-defusedxml/LICENSE
References
Summary
In this tutorial we learn how to install python3-defusedxml on Rocky Linux 8 using yum and dnf.