How To Install libconfuse on CentOS 7

In this tutorial we learn how to install libconfuse on CentOS 7. libconfuse is A configuration file parser library

Introduction

In this tutorial we learn how to install libconfuse on CentOS 7.

What is libconfuse

libConfuse is a configuration file parser library, licensed under the terms of the ISC license, and written in C. It supports sections and (lists of) values (strings, integers, floats, booleans or other sections), as well as some other features (such as single/double-quoted strings, environment variable expansion, functions and nested include statements). It makes it very easy to add configuration file capability to a program using a simple API. The goal of libConfuse is not to be the configuration file parser library with a gazillion of features. Instead, it aims to be easy to use and quick to integrate with your code.

We can use yum or dnf to install libconfuse on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install libconfuse.

Install libconfuse on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install libconfuse using yum by running the following command:

sudo yum -y install libconfuse

Install libconfuse on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install libconfuse using dnf by running the following command:

sudo dnf -y install libconfuse

How To Uninstall libconfuse on CentOS 7

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

sudo dnf remove libconfuse

References

Summary

In this tutorial we learn how to install libconfuse on CentOS 7 using yum and dnf.