How To Install libaccessors-perl on Kali Linux
Introduction
In this tutorial we learn how to install libaccessors-perl
on Kali Linux.
What is libaccessors-perl
libaccessors-perl is:
The accessors pragma lets you create simple accessors at compile-time.
This saves you from writing them by hand, which tends to result in cut-n-paste errors and a mess of duplicated code. It can also help you reduce the ammount of unwanted direct-variable access that may creep into your codebase when you’re feeling lazy. accessors was designed with laziness in mind.
Method-chaining accessors are generated by default. Note that you can still use accessors::chained directly for reasons of backwards compatibility.
See accessors::classic for accessors that always return the current value if you don’t like method chaining.
There are three methods to install libaccessors-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 libaccessors-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 libaccessors-perl
using apt-get
by running the following command:
sudo apt-get -y install libaccessors-perl
Install libaccessors-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libaccessors-perl
using apt
by running the following command:
sudo apt -y install libaccessors-perl
Install libaccessors-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 libaccessors-perl
using aptitude
by running the following command:
sudo aptitude -y install libaccessors-perl
How To Uninstall libaccessors-perl on Kali Linux
To uninstall only the libaccessors-perl
package we can use the following command:
sudo apt-get remove libaccessors-perl
Uninstall libaccessors-perl And Its Dependencies
To uninstall libaccessors-perl
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libaccessors-perl
Remove libaccessors-perl Configurations and Data
To remove libaccessors-perl
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libaccessors-perl
Remove libaccessors-perl configuration, data, and all of its dependencies
We can use the following command to remove libaccessors-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libaccessors-perl
Dependencies
libaccessors-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libaccessors-perl
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.