How To Install libHX on Rocky Linux 8

In this tutorial we learn how to install libHX on Rocky Linux 8. libHX is Useful collection of routines for C and C++ programming

Introduction

In this tutorial we learn how to install libHX on Rocky Linux 8.

What is libHX

libHX is a C library (with some C++ bindings available) that provides data structures and functions commonly needed, such as maps, deques, linked lists, string formatting and autoresizing, option and config file parsing, type checking casts and more. libHX aids in quickly writing up C and C++ data processing programs, by consolidating tasks that often happen to be open-coded, such as (simple) config file reading, option parsing, directory traversal, and others, into a library. The focus is on reducing the amount of time (and secondarily, the amount of code) a developer has to spend for otherwise implementing such.

We can use yum or dnf to install libHX on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libHX.

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

sudo dnf -y install libHX

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

sudo yum -y install libHX

How To Uninstall libHX on Rocky Linux 8

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

sudo dnf remove libHX

libHX Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/87
/usr/lib/.build-id/87/90ef670f5f96435fcc8ceeadd7292a4835b0b0
/usr/lib/.build-id/c4
/usr/lib/.build-id/c4/add2306ec2f053e578d409b76a92bde6f6ece8
/usr/lib64/libHX.so.28
/usr/lib64/libHX.so.28.3.0
/usr/lib64/libHX_rtcheck.so
/usr/share/licenses/libHX
/usr/share/licenses/libHX/LICENSE.GPL3
/usr/share/licenses/libHX/LICENSE.LGPL2
/usr/share/licenses/libHX/LICENSE.LGPL3

References

Summary

In this tutorial we learn how to install libHX on Rocky Linux 8 using yum and dnf.