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

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

Introduction

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

What is perl-DBD-MySQL.x86_64

DBD database. In other words Perl programming language and the MySQL programming API that comes with the MySQL relational database management system.

We can use yum to install perl-DBD-MySQL.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-MySQL.x86_64.

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

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

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

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

sudo yum remove perl-DBD-MySQL.x86_64

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

/usr/lib64/perl5/vendor_perl/Bundle
/usr/lib64/perl5/vendor_perl/Bundle/DBD
/usr/lib64/perl5/vendor_perl/Bundle/DBD/mysql.pm
/usr/lib64/perl5/vendor_perl/DBD
/usr/lib64/perl5/vendor_perl/DBD/mysql
/usr/lib64/perl5/vendor_perl/DBD/mysql.pm
/usr/lib64/perl5/vendor_perl/DBD/mysql/GetInfo.pm
/usr/lib64/perl5/vendor_perl/DBD/mysql/INSTALL.pod
/usr/lib64/perl5/vendor_perl/auto/DBD
/usr/lib64/perl5/vendor_perl/auto/DBD/mysql
/usr/lib64/perl5/vendor_perl/auto/DBD/mysql/mysql.so
/usr/share/doc/perl-DBD-MySQL-4.023
/usr/share/doc/perl-DBD-MySQL-4.023/ChangeLog
/usr/share/doc/perl-DBD-MySQL-4.023/README
/usr/share/doc/perl-DBD-MySQL-4.023/TODO
/usr/share/doc/perl-DBD-MySQL-4.023/eg
/usr/share/doc/perl-DBD-MySQL-4.023/eg/bug14979.pl
/usr/share/doc/perl-DBD-MySQL-4.023/eg/bug21028.pl
/usr/share/doc/perl-DBD-MySQL-4.023/eg/bug30033.pl
/usr/share/doc/perl-DBD-MySQL-4.023/eg/bug30033pg.pl
/usr/share/doc/perl-DBD-MySQL-4.023/eg/decimal_test.pl
/usr/share/doc/perl-DBD-MySQL-4.023/eg/issue21946.pl
/usr/share/doc/perl-DBD-MySQL-4.023/eg/prepare_memory_usage.pl
/usr/share/doc/perl-DBD-MySQL-4.023/eg/proc_example1.pl
/usr/share/doc/perl-DBD-MySQL-4.023/eg/proc_example2.pl
/usr/share/doc/perl-DBD-MySQL-4.023/eg/proc_example2a.pl
/usr/share/doc/perl-DBD-MySQL-4.023/eg/proc_example2b.pl
/usr/share/doc/perl-DBD-MySQL-4.023/eg/proc_example3.pl
/usr/share/doc/perl-DBD-MySQL-4.023/eg/proc_example4.pl
/usr/share/man/man3/Bundle::DBD::mysql.3pm.gz
/usr/share/man/man3/DBD::mysql.3pm.gz
/usr/share/man/man3/DBD::mysql::INSTALL.3pm.gz

References

Summary

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