How To Install libconfig.x86_64 on Amazon Linux 2

In this tutorial we learn how to install libconfig.x86_64 in Amazon Linux 2. libconfig.x86_64 is C/C++ configuration file library

Introduction

In this tutorial we learn how to install libconfig.x86_64 on Amazon Linux 2.

What is libconfig.x86_64

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 to install libconfig.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install libconfig.x86_64.

Install libconfig.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install libconfig.x86_64 using yum by running the following command:

sudo yum -y install libconfig.x86_64

How To Uninstall libconfig.x86_64 on Amazon Linux 2

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

sudo yum remove libconfig.x86_64

libconfig.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libconfig++.so.9
/usr/lib64/libconfig++.so.9.1.3
/usr/lib64/libconfig.so.9
/usr/lib64/libconfig.so.9.1.3
/usr/share/doc/libconfig-1.4.9
/usr/share/doc/libconfig-1.4.9/AUTHORS
/usr/share/doc/libconfig-1.4.9/COPYING.LIB
/usr/share/doc/libconfig-1.4.9/ChangeLog
/usr/share/doc/libconfig-1.4.9/README

References

Summary

In this tutorial we learn how to install libconfig.x86_64 on Amazon Linux 2 using yum.