How To Install perl-pgsql_perl5 on CentOS 8

In this tutorial we learn how to install perl-pgsql_perl5 on CentOS 8. perl-pgsql_perl5 is Pg – Perl5 extension for PostgreSQL

Introduction

In this tutorial we learn how to install perl-pgsql_perl5 on CentOS 8.

What is perl-pgsql_perl5

The Pg module permits you to access all functions of the Libpq interface of PostgreSQL. Libpq is the programmer’s interface to PostgreSQL. For examples of how to use this module, look at the file test.pl.

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

Install perl-pgsql_perl5 on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install perl-pgsql_perl5

Install perl-pgsql_perl5 on CentOS 8 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 perl-pgsql_perl5 using dnf by running the following command:

sudo dnf -y install perl-pgsql_perl5

How To Uninstall perl-pgsql_perl5 on CentOS 8

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

sudo dnf remove perl-pgsql_perl5

References

Summary

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