How To Install libconfig on Rocky Linux 8

In this tutorial we learn how to install libconfig on Rocky Linux 8. libconfig is C/C++ configuration file library

Introduction

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

What is libconfig

Libconfig is a simple library for manipulating structured configuration files. This file format is more compact and more readable than XML. And unlike XML, it is type-aware, so it is not necessary to do string parsing in application code.

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

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

sudo dnf -y install libconfig

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

sudo yum -y install libconfig

How To Uninstall libconfig on Rocky Linux 8

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

sudo dnf remove libconfig

libconfig Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/23
/usr/lib/.build-id/23/8ca4c06900127005a4cc12c3d7a28691e0c3a2
/usr/lib/.build-id/ef
/usr/lib/.build-id/ef/5fab532665b4294c2e724d3099bf69b0a2d68c
/usr/lib/libconfig++.so.9
/usr/lib/libconfig++.so.9.2.0
/usr/lib/libconfig.so.9
/usr/lib/libconfig.so.9.2.0
/usr/share/doc/libconfig
/usr/share/doc/libconfig/AUTHORS
/usr/share/doc/libconfig/COPYING.LIB
/usr/share/doc/libconfig/ChangeLog
/usr/share/doc/libconfig/README
/usr/lib/.build-id
/usr/lib/.build-id/28
/usr/lib/.build-id/28/bae4f1bda02451c487651194abef7f8588b65f
/usr/lib/.build-id/74
/usr/lib/.build-id/74/9b61750bc9e9aed198b001bed46afaab71c0fa
/usr/lib64/libconfig++.so.9
/usr/lib64/libconfig++.so.9.2.0
/usr/lib64/libconfig.so.9
/usr/lib64/libconfig.so.9.2.0
/usr/share/doc/libconfig
/usr/share/doc/libconfig/AUTHORS
/usr/share/doc/libconfig/COPYING.LIB
/usr/share/doc/libconfig/ChangeLog
/usr/share/doc/libconfig/README

References

Summary

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