How To Install perl-DBI on AlmaLinux 8

In this tutorial we learn how to install perl-DBI in AlmaLinux 8. perl-DBI is A database access API for perl

Introduction

In this tutorial we learn how to install perl-DBI on AlmaLinux 8.

What is perl-DBI

DBI is a database access Application Programming Interface (API) for the Perl Language. The DBI API Specification defines a set of functions, variables and conventions that provide a consistent database interface independent of the actual database being used.

We can use yum or dnf to install perl-DBI on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-DBI.

Install perl-DBI on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install perl-DBI

Install perl-DBI on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install perl-DBI using yum by running the following command:

sudo yum -y install perl-DBI

How To Uninstall perl-DBI on AlmaLinux 8

To uninstall only the perl-DBI package we can use the following command:

sudo dnf remove perl-DBI

References

Summary

In this tutorial we learn how to install perl-DBI on AlmaLinux 8 using yum and dnf.