How To Install libxmlb on CentOS 8

In this tutorial we learn how to install libxmlb on CentOS 8. libxmlb is Library for querying compressed XML metadata

Introduction

In this tutorial we learn how to install libxmlb on CentOS 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. 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install libxmlb.

Install libxmlb on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install libxmlb using yum by running the following command:

sudo yum -y install libxmlb

Install libxmlb on CentOS 8 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install libxmlb using dnf by running the following command:

sudo dnf -y install libxmlb

How To Uninstall libxmlb on CentOS 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 CentOS 8 using yum and dnf.