How To Install python3-defusedxml on Fedora 36
Introduction
In this tutorial we learn how to install python3-defusedxml
on Fedora 36.
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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-defusedxml.
Install python3-defusedxml 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-defusedxml
using dnf
by running the following command:
sudo dnf -y install python3-defusedxml
Install python3-defusedxml 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-defusedxml
using yum
by running the following command:
sudo yum -y install python3-defusedxml
How To Uninstall python3-defusedxml on Fedora 36
To uninstall only the python3-defusedxml
package we can use the following command:
sudo dnf remove python3-defusedxml
python3-defusedxml Package Contents on Fedora 36
/usr/lib/python3.10/site-packages/defusedxml
/usr/lib/python3.10/site-packages/defusedxml-0.7.1-py3.10.egg-info
/usr/lib/python3.10/site-packages/defusedxml-0.7.1-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/defusedxml-0.7.1-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/defusedxml-0.7.1-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/defusedxml-0.7.1-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/defusedxml/ElementTree.py
/usr/lib/python3.10/site-packages/defusedxml/__init__.py
/usr/lib/python3.10/site-packages/defusedxml/__pycache__
/usr/lib/python3.10/site-packages/defusedxml/__pycache__/ElementTree.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/defusedxml/__pycache__/ElementTree.cpython-310.pyc
/usr/lib/python3.10/site-packages/defusedxml/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/defusedxml/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/defusedxml/__pycache__/cElementTree.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/defusedxml/__pycache__/cElementTree.cpython-310.pyc
/usr/lib/python3.10/site-packages/defusedxml/__pycache__/common.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/defusedxml/__pycache__/common.cpython-310.pyc
/usr/lib/python3.10/site-packages/defusedxml/__pycache__/expatbuilder.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/defusedxml/__pycache__/expatbuilder.cpython-310.pyc
/usr/lib/python3.10/site-packages/defusedxml/__pycache__/expatreader.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/defusedxml/__pycache__/expatreader.cpython-310.pyc
/usr/lib/python3.10/site-packages/defusedxml/__pycache__/lxml.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/defusedxml/__pycache__/lxml.cpython-310.pyc
/usr/lib/python3.10/site-packages/defusedxml/__pycache__/minidom.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/defusedxml/__pycache__/minidom.cpython-310.pyc
/usr/lib/python3.10/site-packages/defusedxml/__pycache__/pulldom.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/defusedxml/__pycache__/pulldom.cpython-310.pyc
/usr/lib/python3.10/site-packages/defusedxml/__pycache__/sax.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/defusedxml/__pycache__/sax.cpython-310.pyc
/usr/lib/python3.10/site-packages/defusedxml/__pycache__/xmlrpc.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/defusedxml/__pycache__/xmlrpc.cpython-310.pyc
/usr/lib/python3.10/site-packages/defusedxml/cElementTree.py
/usr/lib/python3.10/site-packages/defusedxml/common.py
/usr/lib/python3.10/site-packages/defusedxml/expatbuilder.py
/usr/lib/python3.10/site-packages/defusedxml/expatreader.py
/usr/lib/python3.10/site-packages/defusedxml/lxml.py
/usr/lib/python3.10/site-packages/defusedxml/minidom.py
/usr/lib/python3.10/site-packages/defusedxml/pulldom.py
/usr/lib/python3.10/site-packages/defusedxml/sax.py
/usr/lib/python3.10/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 Fedora 36 using yum and [dnf]((/fedora/36/dnf/).