How To Install libxmlb on Rocky Linux 8
Introduction
In this tutorial we learn how to install libxmlb
on Rocky Linux 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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libxmlb.
Install libxmlb on Rocky Linux 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 Rocky Linux 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 Rocky Linux 8
To uninstall only the libxmlb
package we can use the following command:
sudo dnf remove libxmlb
libxmlb Package Contents on Rocky Linux 8
/usr/lib/.build-id
/usr/lib/.build-id/14
/usr/lib/.build-id/14/478b41a51f92916f19fb72b0f9353a4d901865
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/b44b7a799aa5d3af68bcee9e944fae6c98a5f4
/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
/usr/lib/.build-id
/usr/lib/.build-id/4f
/usr/lib/.build-id/4f/a5ffb1006262e883ecf01206eca1921a61eab0
/usr/lib/.build-id/66
/usr/lib/.build-id/66/6ebd527b97b89ffab9f2cc82926f740db558b9
/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
References
Summary
In this tutorial we learn how to install libxmlb
on Rocky Linux 8 using yum and dnf.