How To Install perl-namespace-autoclean on CentOS 7
Introduction
In this tutorial we learn how to install perl-namespace-autoclean
on CentOS 7.
What is perl-namespace-autoclean
When you import a function into a Perl package, it will naturally also be available as a method. The ’namespace will remove all imported symbols at the end of the current package’s compile cycle. Functions called in the package itself will still be bound by their name, but they won’t show up as methods on your class or instances. This module is very similar to namespace matter if you imported them before or after you ‘use’d the pragma. It will also not touch anything that looks like a method.
We can use yum
or dnf
to install perl-namespace-autoclean
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install perl-namespace-autoclean.
Install perl-namespace-autoclean on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install perl-namespace-autoclean
using yum
by running the following command:
Install perl-namespace-autoclean 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.
After updating yum database, We can install perl-namespace-autoclean
using dnf
by running the following command:
How To Uninstall perl-namespace-autoclean on CentOS 7
To uninstall only the perl-namespace-autoclean
package we can use the following command:
References
Summary
In this tutorial we learn how to install perl-namespace-autoclean
on CentOS 7 using yum
and dnf
.