How To Install perltidy.noarch on Amazon Linux 2

In this tutorial we learn how to install perltidy.noarch in Amazon Linux 2. perltidy.noarch is Tool for indenting and reformatting Perl scripts

Introduction

In this tutorial we learn how to install perltidy.noarch on Amazon Linux 2.

What is perltidy.noarch

Perltidy is a Perl script which indents and reformats Perl scripts to make them easier to read. If you write Perl scripts, or spend much time reading them, you will probably find it useful. The formatting can be controlled with command line parameters. The default parameter settings approximately follow the suggestions in the Perl Style Guide. Perltidy can also output HTML of both POD and source code. Besides reformatting scripts, Perltidy can be a great help in tracking down errors with missing or extra braces, parentheses, and square brackets because it is very good at localizing errors.

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

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

sudo yum -y install perltidy.noarch

How To Uninstall perltidy.noarch on Amazon Linux 2

To uninstall only the perltidy.noarch package we can use the following command:

sudo yum remove perltidy.noarch

perltidy.noarch Package Contents on Amazon Linux 2

/usr/bin/perltidy
/usr/share/doc/perltidy-20121207
/usr/share/doc/perltidy-20121207/BUGS
/usr/share/doc/perltidy-20121207/CHANGES
/usr/share/doc/perltidy-20121207/COPYING
/usr/share/doc/perltidy-20121207/README
/usr/share/doc/perltidy-20121207/TODO
/usr/share/doc/perltidy-20121207/docs
/usr/share/doc/perltidy-20121207/docs/README
/usr/share/doc/perltidy-20121207/docs/stylekey.pod
/usr/share/doc/perltidy-20121207/docs/testfile.pl
/usr/share/doc/perltidy-20121207/docs/tutorial.pod
/usr/share/doc/perltidy-20121207/examples
/usr/share/doc/perltidy-20121207/examples/README
/usr/share/doc/perltidy-20121207/examples/bbtidy.pl
/usr/share/doc/perltidy-20121207/examples/break_long_quotes.pl
/usr/share/doc/perltidy-20121207/examples/ex_mp.pl
/usr/share/doc/perltidy-20121207/examples/filter_example.in
/usr/share/doc/perltidy-20121207/examples/filter_example.pl
/usr/share/doc/perltidy-20121207/examples/find_naughty.pl
/usr/share/doc/perltidy-20121207/examples/lextest
/usr/share/doc/perltidy-20121207/examples/perlcomment.pl
/usr/share/doc/perltidy-20121207/examples/perllinetype.pl
/usr/share/doc/perltidy-20121207/examples/perlmask.pl
/usr/share/doc/perltidy-20121207/examples/perltidyrc_dump.pl
/usr/share/doc/perltidy-20121207/examples/perlxmltok.pl
/usr/share/doc/perltidy-20121207/examples/testfa.t
/usr/share/doc/perltidy-20121207/examples/testff.t
/usr/share/man/man1/perltidy.1.gz
/usr/share/man/man3/Perl::Tidy.3pm.gz
/usr/share/perl5/vendor_perl/Perl
/usr/share/perl5/vendor_perl/Perl/Tidy.pm

References

Summary

In this tutorial we learn how to install perltidy.noarch on Amazon Linux 2 using yum.