How To Install libtie-cycle-perl on Kali Linux
Introduction
In this tutorial we learn how to install libtie-cycle-perl on Kali Linux.
What is libtie-cycle-perl
libtie-cycle-perl is:
You use Tie::Cycle to go through a list over and over again. Once you get to the end of the list, you go back to the beginning. You don’t have to worry about any of this since the magic of tie does that for you.
The tie takes an array reference as its third argument. The tie should succeed unless the argument is not an array reference. Previous versions required you to use an array that had more than one element (what’s the pointing of looping otherwise?), but I’ve removed that restriction since the number of elements you want to use may change depending on the situation.
During the tie, this module makes a shallow copy of the array reference. If the array reference contains references, and those references are changed after the tie, the elements of the cycle will change as well. See the included test.pl script for an example of this effect.
There are three methods to install libtie-cycle-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 libtie-cycle-perl Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install libtie-cycle-perl using apt-get by running the following command:
sudo apt-get -y install libtie-cycle-perlInstall libtie-cycle-perl Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install libtie-cycle-perl using apt by running the following command:
sudo apt -y install libtie-cycle-perlInstall libtie-cycle-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 libtie-cycle-perl using aptitude by running the following command:
sudo aptitude -y install libtie-cycle-perlHow To Uninstall libtie-cycle-perl on Kali Linux
To uninstall only the libtie-cycle-perl package we can use the following command:
sudo apt-get remove libtie-cycle-perlUninstall libtie-cycle-perl And Its Dependencies
To uninstall libtie-cycle-perl and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libtie-cycle-perlRemove libtie-cycle-perl Configurations and Data
To remove libtie-cycle-perl configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libtie-cycle-perlRemove libtie-cycle-perl configuration, data, and all of its dependencies
We can use the following command to remove libtie-cycle-perl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libtie-cycle-perlDependencies
libtie-cycle-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libtie-cycle-perl package on Kali Linux using different package management tools: apt, apt-get and aptitude.