How To Install perl-DBD-Pg.x86_64 on Amazon Linux 2

In this tutorial we learn how to install perl-DBD-Pg.x86_64 in Amazon Linux 2. perl-DBD-Pg.x86_64 is A PostgreSQL interface for perl

Introduction

In this tutorial we learn how to install perl-DBD-Pg.x86_64 on Amazon Linux 2.

What is perl-DBD-Pg.x86_64

DBD access to PostgreSQL databases.

We can use yum to install perl-DBD-Pg.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install perl-DBD-Pg.x86_64.

Install perl-DBD-Pg.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 perl-DBD-Pg.x86_64 using yum by running the following command:

sudo yum -y install perl-DBD-Pg.x86_64

How To Uninstall perl-DBD-Pg.x86_64 on Amazon Linux 2

To uninstall only the perl-DBD-Pg.x86_64 package we can use the following command:

sudo yum remove perl-DBD-Pg.x86_64

perl-DBD-Pg.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/perl5/vendor_perl/Bundle/DBD/Pg.pm
/usr/lib64/perl5/vendor_perl/DBD
/usr/lib64/perl5/vendor_perl/DBD/Pg.pm
/usr/lib64/perl5/vendor_perl/auto/DBD
/usr/lib64/perl5/vendor_perl/auto/DBD/Pg
/usr/lib64/perl5/vendor_perl/auto/DBD/Pg/Pg.so
/usr/share/doc/perl-DBD-Pg-2.19.3
/usr/share/doc/perl-DBD-Pg-2.19.3/Changes
/usr/share/doc/perl-DBD-Pg-2.19.3/README
/usr/share/doc/perl-DBD-Pg-2.19.3/README.dev
/usr/share/doc/perl-DBD-Pg-2.19.3/TODO
/usr/share/man/man3/Bundle::DBD::Pg.3pm.gz
/usr/share/man/man3/DBD::Pg.3pm.gz

References

Summary

In this tutorial we learn how to install perl-DBD-Pg.x86_64 on Amazon Linux 2 using yum.