How To Install libconfig on Fedora 34

libconfig is C/C++ configuration file library C/C++ configuration file library

Introduction

In this tutorial we learn how to install libconfig on Fedora 34.

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. libconfig 1.7.2 7.fc34 x86_64 73 k libconfig-1.7.2-7.fc34.src.rpm fedora C/C++ configuration file library http LGPLv2+ 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install libconfig.

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

sudo dnf -y install libconfig

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

sudo yum -y install libconfig

How To Uninstall libconfig on Fedora 34

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

sudo dnf remove libconfig

libconfig Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/58
/usr/lib/.build-id/58/3e0a4c23e7343e925cc56082339ac3c64fbfc5
/usr/lib/.build-id/79
/usr/lib/.build-id/79/adfa002a25d64c924228bf0cd89f57204865d8
/usr/lib64/libconfig++.so.11
/usr/lib64/libconfig++.so.11.0.2
/usr/lib64/libconfig.so.11
/usr/lib64/libconfig.so.11.0.2
/usr/share/doc/libconfig
/usr/share/doc/libconfig/AUTHORS
/usr/share/doc/libconfig/ChangeLog
/usr/share/doc/libconfig/README
/usr/share/licenses/libconfig
/usr/share/licenses/libconfig/COPYING.LIB
/usr/lib/.build-id
/usr/lib/.build-id/60
/usr/lib/.build-id/60/04ecc63f97e3977bbf9944faa33372a03d0801
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/c12870690f9df9e46eb952542737f884b817ed
/usr/lib/libconfig++.so.11
/usr/lib/libconfig++.so.11.0.2
/usr/lib/libconfig.so.11
/usr/lib/libconfig.so.11.0.2
/usr/share/doc/libconfig
/usr/share/doc/libconfig/AUTHORS
/usr/share/doc/libconfig/ChangeLog
/usr/share/doc/libconfig/README
/usr/share/licenses/libconfig
/usr/share/licenses/libconfig/COPYING.LIB

References

Summary

In this tutorial we learn how to install libconfig on Fedora 34 using yum and dnf.