How To Install perl-File-Temp.noarch on Amazon Linux 2

In this tutorial we learn how to install perl-File-Temp.noarch in Amazon Linux 2. perl-File-Temp.noarch is Return name and handle of a temporary file safely

Introduction

In this tutorial we learn how to install perl-File-Temp.noarch on Amazon Linux 2.

What is perl-File-Temp.noarch

File safe way. There is both a function interface and an object-oriented interface. The File tempfile() function can be used to return the name and the open file handle of a temporary file. The tempdir() function can be used to create a temporary directory.

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

Install perl-File-Temp.noarch 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-File-Temp.noarch using yum by running the following command:

sudo yum -y install perl-File-Temp.noarch

How To Uninstall perl-File-Temp.noarch on Amazon Linux 2

To uninstall only the perl-File-Temp.noarch package we can use the following command:

sudo yum remove perl-File-Temp.noarch

perl-File-Temp.noarch Package Contents on Amazon Linux 2

/usr/share/doc/perl-File-Temp-0.23.01
/usr/share/doc/perl-File-Temp-0.23.01/Changes
/usr/share/doc/perl-File-Temp-0.23.01/LICENSE
/usr/share/doc/perl-File-Temp-0.23.01/README
/usr/share/doc/perl-File-Temp-0.23.01/misc
/usr/share/doc/perl-File-Temp-0.23.01/misc/benchmark.pl
/usr/share/doc/perl-File-Temp-0.23.01/misc/results.txt
/usr/share/man/man3/File::Temp.3pm.gz
/usr/share/perl5/vendor_perl/File
/usr/share/perl5/vendor_perl/File/Temp.pm

References

Summary

In this tutorial we learn how to install perl-File-Temp.noarch on Amazon Linux 2 using yum.