How To Install perl-Class-XSAccessor on Rocky Linux 8

In this tutorial we learn how to install perl-Class-XSAccessor on Rocky Linux 8. perl-Class-XSAccessor is Generate fast XS accessors without run-time compilation

Introduction

In this tutorial we learn how to install perl-Class-XSAccessor on Rocky Linux 8.

What is perl-Class-XSAccessor

Class XS. Additionally, it can provide predicates such as has_foo() for testing whether the attribute foo is defined in the object. It only works with objects that are implemented as ordinary hashes. Class implements the same interface for objects that use arrays for their internal representation.

We can use yum or dnf to install perl-Class-XSAccessor on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Class-XSAccessor.

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

sudo dnf -y install perl-Class-XSAccessor

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

sudo yum -y install perl-Class-XSAccessor

How To Uninstall perl-Class-XSAccessor on Rocky Linux 8

To uninstall only the perl-Class-XSAccessor package we can use the following command:

sudo dnf remove perl-Class-XSAccessor

perl-Class-XSAccessor Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/8fd6e4e8be8ed9805bd925f837459c42f94cc0
/usr/lib64/perl5/vendor_perl/Class
/usr/lib64/perl5/vendor_perl/Class/XSAccessor
/usr/lib64/perl5/vendor_perl/Class/XSAccessor.pm
/usr/lib64/perl5/vendor_perl/Class/XSAccessor/Array.pm
/usr/lib64/perl5/vendor_perl/Class/XSAccessor/Heavy.pm
/usr/lib64/perl5/vendor_perl/auto/Class
/usr/lib64/perl5/vendor_perl/auto/Class/XSAccessor
/usr/lib64/perl5/vendor_perl/auto/Class/XSAccessor/XSAccessor.so
/usr/share/doc/perl-Class-XSAccessor
/usr/share/doc/perl-Class-XSAccessor/Changes
/usr/share/doc/perl-Class-XSAccessor/README
/usr/share/man/man3/Class::XSAccessor.3pm.gz
/usr/share/man/man3/Class::XSAccessor::Array.3pm.gz
/usr/share/man/man3/Class::XSAccessor::Heavy.3pm.gz

References

Summary

In this tutorial we learn how to install perl-Class-XSAccessor on Rocky Linux 8 using yum and dnf.