How To Install libxmlb on AlmaLinux 8
Introduction
In this tutorial we learn how to install libxmlb
on AlmaLinux 8.
What is libxmlb
XML is slow to parse and strings inside the document cannot be memory mapped as they do not have a trailing NUL char. The libxmlb library takes XML source, and converts it to a structured binary representation with a deduplicated string table – where the strings have the NULs included. This allows an application to mmap the binary XML file, do an XPath query and return some strings without actually parsing the entire document. This is all done using (almost) zero allocations and no actual copying of the binary data.
We can use yum
or dnf
to install libxmlb
on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libxmlb.
Install libxmlb on AlmaLinux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install libxmlb
using dnf
by running the following command:
sudo dnf -y install libxmlb
Install libxmlb on AlmaLinux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install libxmlb
using yum
by running the following command:
sudo yum -y install libxmlb
How To Uninstall libxmlb on AlmaLinux 8
To uninstall only the libxmlb
package we can use the following command:
sudo dnf remove libxmlb
References
Summary
In this tutorial we learn how to install libxmlb
on AlmaLinux 8 using yum and dnf.