How To Install libclass-xsaccessor-perl on Kali Linux
Introduction
In this tutorial we learn how to install libclass-xsaccessor-perl
on Kali Linux.
What is libclass-xsaccessor-perl
libclass-xsaccessor-perl is:
Class::XSAccessor implements fast XS accessors both for getting at and setting an object attribute. Additionally, the module supports mutators and simple predicates like those for testing the truth value of a variable. It works only with objects that are implemented as ordinary hashes.
The XS accessor methods were between 1.6 and 2.5 times faster than typical pure-perl accessors in some simple benchmarking. If you usually write clear code, a factor of two speed-up is a good estimate.
Refer to Class::XSAccessor::Array (also included in libclass-xsaccessor-perl) for an implementation that works with array-based objects.
There are three methods to install libclass-xsaccessor-perl
on Kali Linux. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libclass-xsaccessor-perl Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libclass-xsaccessor-perl
using apt-get
by running the following command:
sudo apt-get -y install libclass-xsaccessor-perl
Install libclass-xsaccessor-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libclass-xsaccessor-perl
using apt
by running the following command:
sudo apt -y install libclass-xsaccessor-perl
Install libclass-xsaccessor-perl Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libclass-xsaccessor-perl
using aptitude
by running the following command:
sudo aptitude -y install libclass-xsaccessor-perl
How To Uninstall libclass-xsaccessor-perl on Kali Linux
To uninstall only the libclass-xsaccessor-perl
package we can use the following command:
sudo apt-get remove libclass-xsaccessor-perl
Uninstall libclass-xsaccessor-perl And Its Dependencies
To uninstall libclass-xsaccessor-perl
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libclass-xsaccessor-perl
Remove libclass-xsaccessor-perl Configurations and Data
To remove libclass-xsaccessor-perl
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libclass-xsaccessor-perl
Remove libclass-xsaccessor-perl configuration, data, and all of its dependencies
We can use the following command to remove libclass-xsaccessor-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libclass-xsaccessor-perl
Dependencies
libclass-xsaccessor-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libclass-xsaccessor-perl
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.