How To Install perl-Test-Spec on Fedora 36

In this tutorial we learn how to install perl-Test-Spec in Fedora 36. perl-Test-Spec is Write tests in a declarative specification style

Introduction

In this tutorial we learn how to install perl-Test-Spec on Fedora 36.

What is perl-Test-Spec

This is a declarative specification-style testing system for behavior-driven development (BDD) in Perl. The tests (a.k.a. examples) are named with strings instead of subroutine names, so your fingers will suffer less fatigue from underscore-itis, with the side benefit that the test reports are more legible.

We can use yum or dnf to install perl-Test-Spec on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Test-Spec.

Install perl-Test-Spec 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-Test-Spec using dnf by running the following command:

sudo dnf -y install perl-Test-Spec

Install perl-Test-Spec 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-Test-Spec using yum by running the following command:

sudo yum -y install perl-Test-Spec

How To Uninstall perl-Test-Spec on Fedora 36

To uninstall only the perl-Test-Spec package we can use the following command:

sudo dnf remove perl-Test-Spec

perl-Test-Spec Package Contents on Fedora 36

/usr/share/doc/perl-Test-Spec
/usr/share/doc/perl-Test-Spec/Changes
/usr/share/doc/perl-Test-Spec/README.md
/usr/share/man/man3/Test::Spec.3pm.gz
/usr/share/man/man3/Test::Spec::Mocks.3pm.gz
/usr/share/perl5/vendor_perl/Test
/usr/share/perl5/vendor_perl/Test/Spec
/usr/share/perl5/vendor_perl/Test/Spec.pm
/usr/share/perl5/vendor_perl/Test/Spec/Context.pm
/usr/share/perl5/vendor_perl/Test/Spec/Example.pm
/usr/share/perl5/vendor_perl/Test/Spec/Mocks.pm
/usr/share/perl5/vendor_perl/Test/Spec/SharedHash.pm
/usr/share/perl5/vendor_perl/Test/Spec/TodoExample.pm

References

Summary

In this tutorial we learn how to install perl-Test-Spec on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).