How To Install perl-JSON-XS.x86_64 on Amazon Linux 2

In this tutorial we learn how to install perl-JSON-XS.x86_64 in Amazon Linux 2. perl-JSON-XS.x86_64 is JSON serializing/de-serializing, done correctly and fast

Introduction

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

What is perl-JSON-XS.x86_64

This module converts Perl data structures to JSON and vice versa. Its primary goal is to be correct and its secondary goal is to be fast. To reach the latter goal it was written in C.

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

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

sudo yum -y install perl-JSON-XS.x86_64

How To Uninstall perl-JSON-XS.x86_64 on Amazon Linux 2

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

sudo yum remove perl-JSON-XS.x86_64

perl-JSON-XS.x86_64 Package Contents on Amazon Linux 2

/usr/bin/json_xs
/usr/lib64/perl5/vendor_perl/JSON
/usr/lib64/perl5/vendor_perl/JSON/XS
/usr/lib64/perl5/vendor_perl/JSON/XS.pm
/usr/lib64/perl5/vendor_perl/JSON/XS/Boolean.pm
/usr/lib64/perl5/vendor_perl/auto/JSON
/usr/lib64/perl5/vendor_perl/auto/JSON/XS
/usr/lib64/perl5/vendor_perl/auto/JSON/XS/XS.so
/usr/share/doc/perl-JSON-XS-3.01
/usr/share/doc/perl-JSON-XS-3.01/COPYING
/usr/share/doc/perl-JSON-XS-3.01/Changes
/usr/share/doc/perl-JSON-XS-3.01/README
/usr/share/doc/perl-JSON-XS-3.01/eg
/usr/share/doc/perl-JSON-XS-3.01/eg/bench
/usr/share/man/man1/json_xs.1.gz
/usr/share/man/man3/JSON::XS.3pm.gz
/usr/share/man/man3/JSON::XS::Boolean.3pm.gz

References

Summary

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