How To Install perl-JSON-XS on Fedora 36

In this tutorial we learn how to install perl-JSON-XS in Fedora 36. 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 Fedora 36.

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 Fedora 36. 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 Fedora 36 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 Fedora 36 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 Fedora 36

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 Fedora 36

/usr/bin/json_xs
/usr/lib/.build-id
/usr/lib/.build-id/a0
/usr/lib/.build-id/a0/ce7f4c955f949ca2bc582ca79b9f2cd9c21c3f
/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 Fedora 36 using yum and [dnf]((/fedora/36/dnf/).