How To Install perl-DB_File.x86_64 on Amazon Linux 2

In this tutorial we learn how to install perl-DB_File.x86_64 in Amazon Linux 2. perl-DB_File.x86_64 is Perl5 access to Berkeley DB version 1.x

Introduction

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

What is perl-DB_File.x86_64

DB_File is a module which allows Perl programs to make use of the facilities provided by Berkeley DB version 1.x (if you have a newer version of DB, you will be limited to functionality provided by interface of version 1.x). The interface defined here mirrors the Berkeley DB interface closely.

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

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

sudo yum -y install perl-DB_File.x86_64

How To Uninstall perl-DB_File.x86_64 on Amazon Linux 2

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

sudo yum remove perl-DB_File.x86_64

perl-DB_File.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/perl5/vendor_perl/DB_File.pm
/usr/lib64/perl5/vendor_perl/auto/DB_File
/usr/lib64/perl5/vendor_perl/auto/DB_File/DB_File.so
/usr/share/doc/perl-DB_File-1.830
/usr/share/doc/perl-DB_File-1.830/Changes
/usr/share/doc/perl-DB_File-1.830/README
/usr/share/doc/perl-DB_File-1.830/dbinfo
/usr/share/man/man3/DB_File.3pm.gz

References

Summary

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