How To Install libxml2 on Fedora 34
Introduction
In this tutorial we learn how to install libxml2
on Fedora 34.
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. libxml2 2.9.12 4.fc34 i686 774 k libxml2-2.9.12-4.fc34.src.rpm updates Library providing XML and HTML support http MIT 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 34. In this tutorial we discuss both methods but you only need to choose one of method to install libxml2.
Install libxml2 on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install libxml2
using dnf
by running the following command:
sudo dnf -y install libxml2
Install libxml2 on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
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 34
To uninstall only the libxml2
package we can use the following command:
sudo dnf remove libxml2
libxml2 Package Contents on Fedora 34
/usr/bin/xmlcatalog
/usr/bin/xmllint
/usr/lib/.build-id
/usr/lib/.build-id/0b
/usr/lib/.build-id/0b/7a8b223a005d50d18631e7feb56c5b6b680511
/usr/lib/.build-id/44
/usr/lib/.build-id/44/5fbe375d41b833553fb5fbf488c2dbcbb2e79d
/usr/lib/.build-id/8d
/usr/lib/.build-id/8d/27d09549d5a2edeec773e3a4325b1323c21c3f
/usr/lib64/libxml2.so.2
/usr/lib64/libxml2.so.2.9.12
/usr/share/doc/libxml2
/usr/share/doc/libxml2/AUTHORS
/usr/share/doc/libxml2/NEWS
/usr/share/doc/libxml2/README
/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/14
/usr/lib/.build-id/14/54ba218d982292175de540b213159c8a194441
/usr/lib/.build-id/57
/usr/lib/.build-id/57/1902cc2f0d219707ae80a32f3d059abdb853a6
/usr/lib/.build-id/d5
/usr/lib/.build-id/d5/0f2b4702380d667c0f597842c6a4575efd9ab1
/usr/lib64/libxml2.so.2
/usr/lib64/libxml2.so.2.9.10
/usr/share/doc/libxml2
/usr/share/doc/libxml2/AUTHORS
/usr/share/doc/libxml2/NEWS
/usr/share/doc/libxml2/README
/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/18
/usr/lib/.build-id/18/5a0f5e611374057f49ef997aad7e8501ee1f4d
/usr/lib/.build-id/75
/usr/lib/.build-id/75/9225cb8d2d6c56df1adfe5d0ce6ce89e83d540
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/2beaf9b30574724bb0c09b0be3904f01ab43e2
/usr/lib/libxml2.so.2
/usr/lib/libxml2.so.2.9.10
/usr/share/doc/libxml2
/usr/share/doc/libxml2/AUTHORS
/usr/share/doc/libxml2/NEWS
/usr/share/doc/libxml2/README
/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/a1
/usr/lib/.build-id/a1/141708e31e8d7a5784efa16a3e1f22c68ee64c
/usr/lib/.build-id/de
/usr/lib/.build-id/de/da556532b25f87fadbf35b947847f561ee0f72
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/07b6f9ec11826958e84a468016189897a232f5
/usr/lib/libxml2.so.2
/usr/lib/libxml2.so.2.9.12
/usr/share/doc/libxml2
/usr/share/doc/libxml2/AUTHORS
/usr/share/doc/libxml2/NEWS
/usr/share/doc/libxml2/README
/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
- [libxml2 website](http://xmlsoft.org/ http://xmlsoft.org/)
Summary
In this tutorial we learn how to install libxml2
on Fedora 34 using yum and dnf.