How To Install libscalar-properties-perl on Kali Linux
Introduction
In this tutorial we learn how to install libscalar-properties-perl on Kali Linux.
What is libscalar-properties-perl
libscalar-properties-perl is:
Scalar::Properties attempts to make Perl more object-oriented by taking an idea from Ruby: Everything you manipulate is an object, and the results of those manipulations are objects themselves.
‘hello world’->length (-1234)->abs “oh my god, it’s full of properties”->index(‘g’)
The first example asks a string to calculate its length. The second example asks a number to calculate its absolute value. And the third example asks a string to find the index of the letter ‘g’.
Using this module you can have run-time properties on initialized scalar variables and literal values. The word ‘properties’ is used in the Perl 6 sense: out-of-band data, little sticky notes that are attached to the value. While attributes (as in Perl 5’s attribute pragma, and see the Attribute::* family of modules) are handled at compile-time, properties are handled at run-time.
There are three methods to install libscalar-properties-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 libscalar-properties-perl Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install libscalar-properties-perl using apt-get by running the following command:
sudo apt-get -y install libscalar-properties-perlInstall libscalar-properties-perl Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install libscalar-properties-perl using apt by running the following command:
sudo apt -y install libscalar-properties-perlInstall libscalar-properties-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 updateAfter updating apt database, We can install libscalar-properties-perl using aptitude by running the following command:
sudo aptitude -y install libscalar-properties-perlHow To Uninstall libscalar-properties-perl on Kali Linux
To uninstall only the libscalar-properties-perl package we can use the following command:
sudo apt-get remove libscalar-properties-perlUninstall libscalar-properties-perl And Its Dependencies
To uninstall libscalar-properties-perl and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libscalar-properties-perlRemove libscalar-properties-perl Configurations and Data
To remove libscalar-properties-perl configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libscalar-properties-perlRemove libscalar-properties-perl configuration, data, and all of its dependencies
We can use the following command to remove libscalar-properties-perl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libscalar-properties-perlDependencies
libscalar-properties-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libscalar-properties-perl package on Kali Linux using different package management tools: apt, apt-get and aptitude.