How To Install libxmlb on CentOS 8

libxmlb is Library for querying compressed XML metadata 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. libxmlb 0.1.15 1.el8 x86_64 91 k libxmlb-0.1.15-1.el8.src.rpm baseos Library for querying compressed XML metadata https LGPLv2+ 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 dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install libxmlb

Install libxmlb on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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 CentOS 8

To uninstall only the libxmlb package we can use the following command:

sudo dnf remove libxmlb

libxmlb Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/33
/usr/lib/.build-id/33/a2e60f45bf888cbb3c1646dbd350df5de378dc
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/38b70a2ad466e742b6758fcc297ecc53d2d237
/usr/lib64/girepository-1.0
/usr/lib64/girepository-1.0/Xmlb-1.0.typelib
/usr/lib64/libxmlb.so.1
/usr/lib64/libxmlb.so.1.0.0
/usr/libexec/xb-tool
/usr/share/doc/libxmlb
/usr/share/doc/libxmlb/README.md
/usr/share/licenses/libxmlb
/usr/share/licenses/libxmlb/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/37
/usr/lib/.build-id/37/ae5fcc852512e7c316ec1b664e5d7333948ed7
/usr/lib/.build-id/af
/usr/lib/.build-id/af/ca9e989ba1d2d49e142c5837d01d99a59f05e1
/usr/lib/girepository-1.0
/usr/lib/girepository-1.0/Xmlb-1.0.typelib
/usr/lib/libxmlb.so.1
/usr/lib/libxmlb.so.1.0.0
/usr/libexec/xb-tool
/usr/share/doc/libxmlb
/usr/share/doc/libxmlb/README.md
/usr/share/licenses/libxmlb
/usr/share/licenses/libxmlb/LICENSE

References

Summary

In this tutorial we learn how to install libxmlb on CentOS 8 using yum and dnf.