How To Install perl-JSON-XS on Rocky Linux 8

In this tutorial we learn how to install perl-JSON-XS on Rocky Linux 8. perl-JSON-XS is JSON serializing/de-serializing, done correctly and fast

Introduction

In this tutorial we learn how to install perl-JSON-XS on Rocky Linux 8.

What is perl-JSON-XS

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 or dnf to install perl-JSON-XS on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-JSON-XS.

Install perl-JSON-XS on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install perl-JSON-XS using dnf by running the following command:

sudo dnf -y install perl-JSON-XS

Install perl-JSON-XS on Rocky Linux 8 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 using yum by running the following command:

sudo yum -y install perl-JSON-XS

How To Uninstall perl-JSON-XS on Rocky Linux 8

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

sudo dnf remove perl-JSON-XS

perl-JSON-XS Package Contents on Rocky Linux 8

/usr/bin/json_xs
/usr/lib/.build-id
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/cfda8a61526758ba14f3e0823caae9038d3c0b
/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
/usr/share/doc/perl-JSON-XS/Changes
/usr/share/doc/perl-JSON-XS/README
/usr/share/doc/perl-JSON-XS/eg
/usr/share/doc/perl-JSON-XS/eg/bench
/usr/share/licenses/perl-JSON-XS
/usr/share/licenses/perl-JSON-XS/COPYING
/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 on Rocky Linux 8 using yum and dnf.