How To Install libclass-accessor-perl on Kali Linux

In this tutorial we learn how to install libclass-accessor-perl on Kali Linux. libclass-accessor-perl is Perl module that automatically generates accessors

Introduction

In this tutorial we learn how to install libclass-accessor-perl on Kali Linux.

What is libclass-accessor-perl

libclass-accessor-perl is:

Class::Accessor automagically generates accessor/mutator methods for your class. Most of the time, writing accessors is an exercise in cutting and pasting. If you make your module a subclass of Class::Accessor and declare your accessor fields with mk_accessors() then you will find yourself with a set of automatically generated accessors which can even be customized.

There are three methods to install libclass-accessor-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-accessor-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-accessor-perl using apt-get by running the following command:

sudo apt-get -y install libclass-accessor-perl

Install libclass-accessor-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libclass-accessor-perl using apt by running the following command:

sudo apt -y install libclass-accessor-perl

Install libclass-accessor-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-accessor-perl using aptitude by running the following command:

sudo aptitude -y install libclass-accessor-perl

How To Uninstall libclass-accessor-perl on Kali Linux

To uninstall only the libclass-accessor-perl package we can use the following command:

sudo apt-get remove libclass-accessor-perl

Uninstall libclass-accessor-perl And Its Dependencies

To uninstall libclass-accessor-perl and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove libclass-accessor-perl

Remove libclass-accessor-perl Configurations and Data

To remove libclass-accessor-perl configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge libclass-accessor-perl

Remove libclass-accessor-perl configuration, data, and all of its dependencies

We can use the following command to remove libclass-accessor-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libclass-accessor-perl

Dependencies

libclass-accessor-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libclass-accessor-perl package on Kali Linux using different package management tools: apt, apt-get and aptitude.