How To Install python3-lxml on Fedora 36

In this tutorial we learn how to install python3-lxml in Fedora 36. python3-lxml is XML processing library combining libxml2/libxslt with the ElementTree API

Introduction

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

What is python3-lxml

lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries. It provides safe and convenient access to these libraries using the ElementTree It extends the ElementTree API significantly to offer support for XPath, RelaxNG, XML Schema, XSLT, C14N and much more.To contact the project, go to the project home page < or see our bug tracker at case you want to use the current … Python 3 version.

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

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

sudo dnf -y install python3-lxml

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

sudo yum -y install python3-lxml

How To Uninstall python3-lxml on Fedora 36

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

sudo dnf remove python3-lxml

python3-lxml Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/55
/usr/lib/.build-id/55/b6415b662e92424e0d71fea7feb343e7e87207
/usr/lib/.build-id/a7
/usr/lib/.build-id/a7/f8b77438932ecede65b9e180ecd005056f0df7
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/4cdd50127ecd4a79059ff5fbc060d51a11e965
/usr/lib/.build-id/bf
/usr/lib/.build-id/bf/1bf3e28f65ffbd33ee522afb95000d2d92083b
/usr/lib/.build-id/cc
/usr/lib/.build-id/cc/8fe9239ef6830fd878c01d9ce0d5edf3f1f320
/usr/lib/.build-id/cd
/usr/lib/.build-id/cd/6e58018cb0bbc3ba5d6942892633f5c94603a2
/usr/lib/.build-id/fb
/usr/lib/.build-id/fb/1397eafdcd055aed2d5a57766628936de8e64e
/usr/lib64/python3.10/site-packages/lxml
/usr/lib64/python3.10/site-packages/lxml-4.7.1-py3.10.egg-info
/usr/lib64/python3.10/site-packages/lxml-4.7.1-py3.10.egg-info/PKG-INFO
/usr/lib64/python3.10/site-packages/lxml-4.7.1-py3.10.egg-info/SOURCES.txt
/usr/lib64/python3.10/site-packages/lxml-4.7.1-py3.10.egg-info/dependency_links.txt
/usr/lib64/python3.10/site-packages/lxml-4.7.1-py3.10.egg-info/not-zip-safe
/usr/lib64/python3.10/site-packages/lxml-4.7.1-py3.10.egg-info/requires.txt
/usr/lib64/python3.10/site-packages/lxml-4.7.1-py3.10.egg-info/top_level.txt
/usr/lib64/python3.10/site-packages/lxml/ElementInclude.py
/usr/lib64/python3.10/site-packages/lxml/__init__.py
/usr/lib64/python3.10/site-packages/lxml/__pycache__
/usr/lib64/python3.10/site-packages/lxml/__pycache__/ElementInclude.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/lxml/__pycache__/ElementInclude.cpython-310.pyc
/usr/lib64/python3.10/site-packages/lxml/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/lxml/__pycache__/__init__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/lxml/__pycache__/_elementpath.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/lxml/__pycache__/_elementpath.cpython-310.pyc
/usr/lib64/python3.10/site-packages/lxml/__pycache__/builder.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/lxml/__pycache__/builder.cpython-310.pyc
/usr/lib64/python3.10/site-packages/lxml/__pycache__/cssselect.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/lxml/__pycache__/cssselect.cpython-310.pyc
/usr/lib64/python3.10/site-packages/lxml/__pycache__/doctestcompare.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/lxml/__pycache__/doctestcompare.cpython-310.pyc
/usr/lib64/python3.10/site-packages/lxml/__pycache__/pyclasslookup.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/lxml/__pycache__/pyclasslookup.cpython-310.pyc
/usr/lib64/python3.10/site-packages/lxml/__pycache__/sax.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/lxml/__pycache__/sax.cpython-310.pyc
/usr/lib64/python3.10/site-packages/lxml/__pycache__/usedoctest.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/lxml/__pycache__/usedoctest.cpython-310.pyc
/usr/lib64/python3.10/site-packages/lxml/_elementpath.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/lxml/_elementpath.py
/usr/lib64/python3.10/site-packages/lxml/builder.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/lxml/builder.py
/usr/lib64/python3.10/site-packages/lxml/cssselect.py
/usr/lib64/python3.10/site-packages/lxml/doctestcompare.py
/usr/lib64/python3.10/site-packages/lxml/etree.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/lxml/etree.h
/usr/lib64/python3.10/site-packages/lxml/etree_api.h
/usr/lib64/python3.10/site-packages/lxml/html
/usr/lib64/python3.10/site-packages/lxml/html/ElementSoup.py
/usr/lib64/python3.10/site-packages/lxml/html/__init__.py
/usr/lib64/python3.10/site-packages/lxml/html/__pycache__
/usr/lib64/python3.10/site-packages/lxml/html/__pycache__/ElementSoup.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/lxml/html/__pycache__/ElementSoup.cpython-310.pyc
/usr/lib64/python3.10/site-packages/lxml/html/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/lxml/html/__pycache__/__init__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/lxml/html/__pycache__/_diffcommand.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/lxml/html/__pycache__/_diffcommand.cpython-310.pyc
/usr/lib64/python3.10/site-packages/lxml/html/__pycache__/_html5builder.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/lxml/html/__pycache__/_html5builder.cpython-310.pyc
/usr/lib64/python3.10/site-packages/lxml/html/__pycache__/_setmixin.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/lxml/html/__pycache__/_setmixin.cpython-310.pyc
/usr/lib64/python3.10/site-packages/lxml/html/__pycache__/builder.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/lxml/html/__pycache__/builder.cpython-310.pyc
/usr/lib64/python3.10/site-packages/lxml/html/__pycache__/clean.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/lxml/html/__pycache__/clean.cpython-310.pyc
/usr/lib64/python3.10/site-packages/lxml/html/__pycache__/defs.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/lxml/html/__pycache__/defs.cpython-310.pyc
/usr/lib64/python3.10/site-packages/lxml/html/__pycache__/diff.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/lxml/html/__pycache__/diff.cpython-310.pyc
/usr/lib64/python3.10/site-packages/lxml/html/__pycache__/formfill.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/lxml/html/__pycache__/formfill.cpython-310.pyc
/usr/lib64/python3.10/site-packages/lxml/html/__pycache__/html5parser.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/lxml/html/__pycache__/html5parser.cpython-310.pyc
/usr/lib64/python3.10/site-packages/lxml/html/__pycache__/soupparser.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/lxml/html/__pycache__/soupparser.cpython-310.pyc
/usr/lib64/python3.10/site-packages/lxml/html/__pycache__/usedoctest.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/lxml/html/__pycache__/usedoctest.cpython-310.pyc
/usr/lib64/python3.10/site-packages/lxml/html/_diffcommand.py
/usr/lib64/python3.10/site-packages/lxml/html/_html5builder.py
/usr/lib64/python3.10/site-packages/lxml/html/_setmixin.py
/usr/lib64/python3.10/site-packages/lxml/html/builder.py
/usr/lib64/python3.10/site-packages/lxml/html/clean.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/lxml/html/clean.py
/usr/lib64/python3.10/site-packages/lxml/html/defs.py
/usr/lib64/python3.10/site-packages/lxml/html/diff.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/lxml/html/diff.py
/usr/lib64/python3.10/site-packages/lxml/html/formfill.py
/usr/lib64/python3.10/site-packages/lxml/html/html5parser.py
/usr/lib64/python3.10/site-packages/lxml/html/soupparser.py
/usr/lib64/python3.10/site-packages/lxml/html/usedoctest.py
/usr/lib64/python3.10/site-packages/lxml/includes
/usr/lib64/python3.10/site-packages/lxml/includes/__init__.pxd
/usr/lib64/python3.10/site-packages/lxml/includes/__init__.py
/usr/lib64/python3.10/site-packages/lxml/includes/__pycache__
/usr/lib64/python3.10/site-packages/lxml/includes/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/lxml/includes/__pycache__/__init__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/lxml/includes/c14n.pxd
/usr/lib64/python3.10/site-packages/lxml/includes/config.pxd
/usr/lib64/python3.10/site-packages/lxml/includes/dtdvalid.pxd
/usr/lib64/python3.10/site-packages/lxml/includes/etree_defs.h
/usr/lib64/python3.10/site-packages/lxml/includes/etreepublic.pxd
/usr/lib64/python3.10/site-packages/lxml/includes/htmlparser.pxd
/usr/lib64/python3.10/site-packages/lxml/includes/lxml-version.h
/usr/lib64/python3.10/site-packages/lxml/includes/relaxng.pxd
/usr/lib64/python3.10/site-packages/lxml/includes/schematron.pxd
/usr/lib64/python3.10/site-packages/lxml/includes/tree.pxd
/usr/lib64/python3.10/site-packages/lxml/includes/uri.pxd
/usr/lib64/python3.10/site-packages/lxml/includes/xinclude.pxd
/usr/lib64/python3.10/site-packages/lxml/includes/xmlerror.pxd
/usr/lib64/python3.10/site-packages/lxml/includes/xmlparser.pxd
/usr/lib64/python3.10/site-packages/lxml/includes/xmlschema.pxd
/usr/lib64/python3.10/site-packages/lxml/includes/xpath.pxd
/usr/lib64/python3.10/site-packages/lxml/includes/xslt.pxd
/usr/lib64/python3.10/site-packages/lxml/isoschematron
/usr/lib64/python3.10/site-packages/lxml/isoschematron/__init__.py
/usr/lib64/python3.10/site-packages/lxml/isoschematron/__pycache__
/usr/lib64/python3.10/site-packages/lxml/isoschematron/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/lxml/isoschematron/__pycache__/__init__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/lxml/isoschematron/resources
/usr/lib64/python3.10/site-packages/lxml/isoschematron/resources/rng
/usr/lib64/python3.10/site-packages/lxml/isoschematron/resources/rng/iso-schematron.rng
/usr/lib64/python3.10/site-packages/lxml/isoschematron/resources/xsl
/usr/lib64/python3.10/site-packages/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl
/usr/lib64/python3.10/site-packages/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl
/usr/lib64/python3.10/site-packages/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
/usr/lib64/python3.10/site-packages/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl
/usr/lib64/python3.10/site-packages/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl
/usr/lib64/python3.10/site-packages/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl
/usr/lib64/python3.10/site-packages/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl
/usr/lib64/python3.10/site-packages/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl
/usr/lib64/python3.10/site-packages/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt
/usr/lib64/python3.10/site-packages/lxml/lxml.etree.h
/usr/lib64/python3.10/site-packages/lxml/lxml.etree_api.h
/usr/lib64/python3.10/site-packages/lxml/objectify.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/lxml/pyclasslookup.py
/usr/lib64/python3.10/site-packages/lxml/sax.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/lxml/sax.py
/usr/lib64/python3.10/site-packages/lxml/usedoctest.py
/usr/share/doc/python3-lxml
/usr/share/doc/python3-lxml/README.rst
/usr/share/doc/python3-lxml/readme.txt
/usr/share/licenses/python3-lxml
/usr/share/licenses/python3-lxml/BSD.txt
/usr/share/licenses/python3-lxml/LICENSES.txt
/usr/share/licenses/python3-lxml/elementtree.txt

References

Summary

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