How To Install libdbi-drivers on CentOS 7

In this tutorial we learn how to install libdbi-drivers on CentOS 7. libdbi-drivers is Database-specific drivers for libdbi

Introduction

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

What is libdbi-drivers

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. libdbi-drivers contains the database-specific plugins needed to connect libdbi to particular database servers.

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

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

sudo yum -y install libdbi-drivers

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

sudo dnf -y install libdbi-drivers

How To Uninstall libdbi-drivers on CentOS 7

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

sudo dnf remove libdbi-drivers

References

Summary

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