How To Install python3-libxml2 on Rocky Linux 8
Introduction
In this tutorial we learn how to install python3-libxml2
on Rocky Linux 8.
What is python3-libxml2
The libxml2-python3 package contains a Python 3 module that permits applications written in the Python programming language, version 3, to use the interface supplied by the libxml2 library to manipulate XML files. This library allows to manipulate XML files. It includes support to read, modify and write XML and HTML files. There is DTDs support this includes parsing and validation even with complex DTDs, either at parse time or later once the document has been modified.
We can use yum
or dnf
to install python3-libxml2
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-libxml2.
Install python3-libxml2 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-libxml2
using dnf
by running the following command:
sudo dnf -y install python3-libxml2
Install python3-libxml2 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-libxml2
using yum
by running the following command:
sudo yum -y install python3-libxml2
How To Uninstall python3-libxml2 on Rocky Linux 8
To uninstall only the python3-libxml2
package we can use the following command:
sudo dnf remove python3-libxml2
python3-libxml2 Package Contents on Rocky Linux 8
/usr/lib/.build-id
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/8f3284ccf0589615e23eea86c5664538a3e907
/usr/lib64/python3.6/site-packages/__pycache__/drv_libxml2.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/__pycache__/drv_libxml2.cpython-36.pyc
/usr/lib64/python3.6/site-packages/__pycache__/libxml2.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/__pycache__/libxml2.cpython-36.pyc
/usr/lib64/python3.6/site-packages/drv_libxml2.py
/usr/lib64/python3.6/site-packages/libxml2.py
/usr/lib64/python3.6/site-packages/libxml2mod.so
/usr/share/doc/python3-libxml2
/usr/share/doc/python3-libxml2/TODO
/usr/share/doc/python3-libxml2/apibuild.py
/usr/share/doc/python3-libxml2/index.py
/usr/share/doc/python3-libxml2/libxml2class.txt
/usr/share/doc/python3-libxml2/python.html
/usr/lib/.build-id
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/c7dcacd7ceb58596c398eb260e567c5c7cc6bd
/usr/lib64/python3.6/site-packages/__pycache__/drv_libxml2.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/__pycache__/drv_libxml2.cpython-36.pyc
/usr/lib64/python3.6/site-packages/__pycache__/libxml2.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/__pycache__/libxml2.cpython-36.pyc
/usr/lib64/python3.6/site-packages/drv_libxml2.py
/usr/lib64/python3.6/site-packages/libxml2.py
/usr/lib64/python3.6/site-packages/libxml2mod.so
/usr/share/doc/python3-libxml2
/usr/share/doc/python3-libxml2/TODO
/usr/share/doc/python3-libxml2/apibuild.py
/usr/share/doc/python3-libxml2/index.py
/usr/share/doc/python3-libxml2/libxml2class.txt
/usr/share/doc/python3-libxml2/python.html
References
Summary
In this tutorial we learn how to install python3-libxml2
on Rocky Linux 8 using yum and dnf.