How To Install libdbi on CentOS 7

In this tutorial we learn how to install libdbi on CentOS 7. libdbi is Database Independent Abstraction Layer for C

Introduction

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

What is libdbi

libdbi implements a database-independent abstraction layer in C, similar to the DBI/DBD layer in Perl. Writing one generic set of code, programmers can leverage the power of multiple databases and multiple simultaneous database connections by using this framework. The libdbi package contains just the libdbi framework. To make use of libdbi you will also need one or more plugins from libdbi-drivers, which contains the plugins needed to interface to specific database servers. libdbi implements a database-independent abstraction layer in C, similar to the DBI/DBD layer in Perl. Writing one generic set of code, programmers can leverage the power of multiple databases and multiple simultaneous database connections by using this framework. The libdbi package contains just the libdbi framework. To make use of libdbi you will also need one or more plugins from libdbi-drivers, which contains the plugins needed to interface to specific database servers.

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

Install libdbi on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install libdbi

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

sudo dnf -y install libdbi

How To Uninstall libdbi on CentOS 7

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

sudo dnf remove libdbi

References

Summary

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