How To Install libperlx-define-perl on Kali Linux
Introduction
In this tutorial we learn how to install libperlx-define-perl
on Kali Linux.
What is libperlx-define-perl
libperlx-define-perl is:
PerlX::Define is a yet another module for defining constants.
Differences from constant.pm:
- Cute syntax. Like constant.pm, constants get defined at compile time, not run time.
- Requires Perl 5.12 or above. If you’re lucky enough to be able to free yourself from the shackles of supporting decade-old versions of Perl, PerlX::Define is your friend.
- Only supports scalar constants. List constants are rarely useful. Your constant can of course be a reference to an array or hash, but this module doesn’t attempt to make the referred-to structure read only.
- Doesn’t try to handle some of the things constant.pm does like declaring constants using fully-qualified names, or defining constants pointing at magic scalars.
Prior to version 0.100, PerlX::Define was bundled with Moops.
There are three methods to install libperlx-define-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 libperlx-define-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 libperlx-define-perl
using apt-get
by running the following command:
sudo apt-get -y install libperlx-define-perl
Install libperlx-define-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libperlx-define-perl
using apt
by running the following command:
sudo apt -y install libperlx-define-perl
Install libperlx-define-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 libperlx-define-perl
using aptitude
by running the following command:
sudo aptitude -y install libperlx-define-perl
How To Uninstall libperlx-define-perl on Kali Linux
To uninstall only the libperlx-define-perl
package we can use the following command:
sudo apt-get remove libperlx-define-perl
Uninstall libperlx-define-perl And Its Dependencies
To uninstall libperlx-define-perl
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libperlx-define-perl
Remove libperlx-define-perl Configurations and Data
To remove libperlx-define-perl
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libperlx-define-perl
Remove libperlx-define-perl configuration, data, and all of its dependencies
We can use the following command to remove libperlx-define-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libperlx-define-perl
Dependencies
libperlx-define-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libperlx-define-perl
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.