How To Install libsort-fields-perl on Kali Linux
Introduction
In this tutorial we learn how to install libsort-fields-perl
on Kali Linux.
What is libsort-fields-perl
libsort-fields-perl is:
Sort::Fields provides a general purpose technique for efficiently sorting lists of lines that contain data separated into fields.
Sort::Fields automatically imports two subroutines, fieldsort and make_fieldsort, and two variants, stable_fieldsort and make_stable_fieldsort. make_fieldsort generates a sorting subroutine and returns a reference to it. fieldsort is a wrapper for the make_fieldsort subroutine.
The first argument to make_fieldsort is a delimiter string, which is used as a regular expression argument for a split operator. The delimiter string is optional. If it is not supplied, make_fieldsort splits each line using /\s+/.
There are three methods to install libsort-fields-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 libsort-fields-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 libsort-fields-perl
using apt-get
by running the following command:
sudo apt-get -y install libsort-fields-perl
Install libsort-fields-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libsort-fields-perl
using apt
by running the following command:
sudo apt -y install libsort-fields-perl
Install libsort-fields-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 libsort-fields-perl
using aptitude
by running the following command:
sudo aptitude -y install libsort-fields-perl
How To Uninstall libsort-fields-perl on Kali Linux
To uninstall only the libsort-fields-perl
package we can use the following command:
sudo apt-get remove libsort-fields-perl
Uninstall libsort-fields-perl And Its Dependencies
To uninstall libsort-fields-perl
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libsort-fields-perl
Remove libsort-fields-perl Configurations and Data
To remove libsort-fields-perl
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libsort-fields-perl
Remove libsort-fields-perl configuration, data, and all of its dependencies
We can use the following command to remove libsort-fields-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libsort-fields-perl
Dependencies
libsort-fields-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libsort-fields-perl
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.