How To Install libxml2 on Fedora 36
Introduction
In this tutorial we learn how to install libxml2
on Fedora 36.
What is libxml2
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. The output can be a simple SAX stream or and in-memory DOM like representations. In this case one can use the built-in XPath and XPointer implementation to select sub nodes or ranges. A flexible Input/Output mechanism is available, with existing HTTP and FTP modules and combined to an URI library.
We can use yum
or dnf
to install libxml2
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install libxml2.
Install libxml2 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 libxml2
using dnf
by running the following command:
sudo dnf -y install libxml2
Install libxml2 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 libxml2
using yum
by running the following command:
sudo yum -y install libxml2
How To Uninstall libxml2 on Fedora 36
To uninstall only the libxml2
package we can use the following command:
sudo dnf remove libxml2
libxml2 Package Contents on Fedora 36
/usr/bin/xmlcatalog
/usr/bin/xmllint
/usr/lib/.build-id
/usr/lib/.build-id/08
/usr/lib/.build-id/08/f6c157399af670f7bb6bb396cbd7ded044b7bf
/usr/lib/.build-id/aa
/usr/lib/.build-id/aa/df5879c68f117634a6bd13135e48749e846fc9
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/365fc4231e29f62016855a3096c47ba88a9836
/usr/lib64/libxml2.so.2
/usr/lib64/libxml2.so.2.9.14
/usr/share/doc/libxml2
/usr/share/doc/libxml2/NEWS
/usr/share/doc/libxml2/README.md
/usr/share/doc/libxml2/TODO
/usr/share/licenses/libxml2
/usr/share/licenses/libxml2/Copyright
/usr/share/man/man1/xmlcatalog.1.gz
/usr/share/man/man1/xmllint.1.gz
/usr/share/man/man3/libxml.3.gz
/usr/bin/xmlcatalog
/usr/bin/xmllint
/usr/lib/.build-id
/usr/lib/.build-id/21
/usr/lib/.build-id/21/9d65494a11ed7c2932da0854db3d2353ba2f98
/usr/lib/.build-id/84
/usr/lib/.build-id/84/9088d60d0215bd6854fe1fdeaa9e3de04753ac
/usr/lib/.build-id/94
/usr/lib/.build-id/94/e4d940fc870de923987e471565220e79d1fa55
/usr/lib64/libxml2.so.2
/usr/lib64/libxml2.so.2.9.13
/usr/share/doc/libxml2
/usr/share/doc/libxml2/NEWS
/usr/share/doc/libxml2/README.md
/usr/share/doc/libxml2/TODO
/usr/share/licenses/libxml2
/usr/share/licenses/libxml2/Copyright
/usr/share/man/man1/xmlcatalog.1.gz
/usr/share/man/man1/xmllint.1.gz
/usr/share/man/man3/libxml.3.gz
References
Summary
In this tutorial we learn how to install libxml2
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).