How To Install perl-Class-Tiny on CentOS 7
Introduction
In this tutorial we learn how to install perl-Class-Tiny
on CentOS 7.
What is perl-Class-Tiny
This module offers a minimalist class construction kit in around 120 lines of code. Here is a list of features * defines attributes via import arguments * generates read-write accessors * supports lazy attribute defaults * supports custom accessors * superclass provides a standard new constructor * new takes a hash reference or list of key/value pairs * new has heuristics to catch constructor attribute typos * new calls BUILD for each class from parent to child * superclass provides a DESTROY method * DESTROY calls DEMOLISH for each class from child to parent
We can use yum
or dnf
to install perl-Class-Tiny
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Class-Tiny.
Install perl-Class-Tiny on CentOS 7 Using yum
Update yum database with yum
using the following command.
sudo yum makecache
After updating yum database, We can install perl-Class-Tiny
using yum
by running the following command:
sudo yum -y install perl-Class-Tiny
Install perl-Class-Tiny on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
sudo dnf makecache
After updating yum database, We can install perl-Class-Tiny
using dnf
by running the following command:
sudo dnf -y install perl-Class-Tiny
How To Uninstall perl-Class-Tiny on CentOS 7
To uninstall only the perl-Class-Tiny
package we can use the following command:
sudo dnf remove perl-Class-Tiny
References
Summary
In this tutorial we learn how to install perl-Class-Tiny
on CentOS 7 using yum
and dnf
.