How To Install libxmlb on Fedora 34

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 Fedora 34.

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.3.2 1.fc34 x86_64 107 k libxmlb-0.3.2-1.fc34.src.rpm updates 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install libxmlb.

Install libxmlb 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 libxmlb using dnf by running the following command:

sudo dnf -y install libxmlb

Install libxmlb 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 libxmlb using yum by running the following command:

sudo yum -y install libxmlb

How To Uninstall libxmlb on Fedora 34

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

sudo dnf remove libxmlb

libxmlb Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/51
/usr/lib/.build-id/51/86efe5537280757f3e3095ecfc46b1d2889641
/usr/lib/.build-id/8a
/usr/lib/.build-id/8a/666d2e253fbff5c0df3e58df9b8d331ce7fa32
/usr/lib/girepository-1.0
/usr/lib/girepository-1.0/Xmlb-2.0.typelib
/usr/lib/libxmlb.so.2
/usr/lib/libxmlb.so.2.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/78
/usr/lib/.build-id/78/e4fc5a4046871cb9d0b99b6929738c4072664e
/usr/lib/.build-id/a8
/usr/lib/.build-id/a8/ba39af0a9077eb9518f180a46bf2472bb73f90
/usr/lib64/girepository-1.0
/usr/lib64/girepository-1.0/Xmlb-2.0.typelib
/usr/lib64/libxmlb.so.2
/usr/lib64/libxmlb.so.2.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/7f
/usr/lib/.build-id/7f/1ffa85358bf24e54f687462d424eb974d1f330
/usr/lib/.build-id/ec
/usr/lib/.build-id/ec/cb303a40e63499a09eac4b2a3ecbdb27563a2a
/usr/lib/girepository-1.0
/usr/lib/girepository-1.0/Xmlb-2.0.typelib
/usr/lib/libxmlb.so.2
/usr/lib/libxmlb.so.2.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/8c
/usr/lib/.build-id/8c/3218805b86ec22c2cdbc39bd63d9bfb57fc9b1
/usr/lib/.build-id/9b
/usr/lib/.build-id/9b/6e2e4d23cc554557cd5ef311388200e80d0cd9
/usr/lib64/girepository-1.0
/usr/lib64/girepository-1.0/Xmlb-2.0.typelib
/usr/lib64/libxmlb.so.2
/usr/lib64/libxmlb.so.2.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 Fedora 34 using yum and dnf.