How To Install pdl on Kali Linux
Introduction
In this tutorial we learn how to install pdl on Kali Linux.
What is pdl
pdl is:
PDL gives standard perl the ability to COMPACTLY store and SPEEDILY manipulate the large N-dimensional data arrays which are the bread and butter of scientific computing. The idea is to turn perl in to a free, array-oriented, numerical language in the same sense as commercial packages like IDL and MatLab. One can write simple perl expressions to manipulate entire numerical arrays all at once. For example, using PDL the perl variable $a can hold a 1024x1024 floating point image, it only takes 4Mb of memory to store it and expressions like $a=sqrt($a)+2 would manipulate the whole image in a few seconds.
A simple interactive shell (perldl) is provided for command line use together with a module (PDL) for use in perl scripts.
There are three methods to install pdl 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 pdl Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install pdl using apt-get by running the following command:
sudo apt-get -y install pdlInstall pdl Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install pdl using apt by running the following command:
sudo apt -y install pdlInstall pdl 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 pdl using aptitude by running the following command:
sudo aptitude -y install pdlHow To Uninstall pdl on Kali Linux
To uninstall only the pdl package we can use the following command:
sudo apt-get remove pdlUninstall pdl And Its Dependencies
To uninstall pdl and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove pdlRemove pdl Configurations and Data
To remove pdl configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge pdlRemove pdl configuration, data, and all of its dependencies
We can use the following command to remove pdl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge pdlDependencies
pdl have the following dependencies:
- dpkg
- libterm-readkey-perl
- libpod-parser-perl
- sensible-utils
- perl
- perlapi-5.32.0
- libc6
- libgd3
- libgfortran5
- libgsl25
- libhdf4-0-alt
- libncurses6
- libtinfo6
References
Summary
In this tutorial we learn how to install pdl package on Kali Linux using different package management tools: apt, apt-get and aptitude.