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

In this tutorial we learn how to install perl-File-Inplace.noarch in Amazon Linux 2. perl-File-Inplace.noarch is Perl module for in-place editing of files

Introduction

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

What is perl-File-Inplace.noarch

File editing a file in-place. Inspired by variations of perl’s -i option, this module is intended for somewhat more structured and reusable editing than command line perl typically allows. File either all of the changes made will be saved to the file, or none will. It also offers functionality such as backup creation, automatic field splitting per-line, automatic chomping/unchomping, and aborting edits partially through without affecting the original file.

We can use yum to install perl-File-Inplace.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-Inplace.noarch.

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

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

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

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

sudo yum remove perl-File-Inplace.noarch

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

/usr/share/doc/perl-File-Inplace-0.20
/usr/share/doc/perl-File-Inplace-0.20/Changes
/usr/share/doc/perl-File-Inplace-0.20/README
/usr/share/man/man3/File::Inplace.3pm.gz
/usr/share/perl5/vendor_perl/File
/usr/share/perl5/vendor_perl/File/Inplace.pm

References

Summary

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