How To Install libsort-naturally-perl on Kali Linux

In this tutorial we learn how to install libsort-naturally-perl on Kali Linux. libsort-naturally-perl is Sort naturally - sort lexically except for numerical parts

Introduction

In this tutorial we learn how to install libsort-naturally-perl on Kali Linux.

What is libsort-naturally-perl

libsort-naturally-perl is:

Sort::Naturally exports two functions, nsort and ncmp; they are used in implementing the idea of “natural sorting” algorithm. With that natural sorting, numeric substrings are compared numerically, and other word-characters are compared lexically.

There are three methods to install libsort-naturally-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-naturally-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-naturally-perl using apt-get by running the following command:

sudo apt-get -y install libsort-naturally-perl

Install libsort-naturally-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libsort-naturally-perl using apt by running the following command:

sudo apt -y install libsort-naturally-perl

Install libsort-naturally-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-naturally-perl using aptitude by running the following command:

sudo aptitude -y install libsort-naturally-perl

How To Uninstall libsort-naturally-perl on Kali Linux

To uninstall only the libsort-naturally-perl package we can use the following command:

sudo apt-get remove libsort-naturally-perl

Uninstall libsort-naturally-perl And Its Dependencies

To uninstall libsort-naturally-perl and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove libsort-naturally-perl

Remove libsort-naturally-perl Configurations and Data

To remove libsort-naturally-perl configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge libsort-naturally-perl

Remove libsort-naturally-perl configuration, data, and all of its dependencies

We can use the following command to remove libsort-naturally-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libsort-naturally-perl

Dependencies

libsort-naturally-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libsort-naturally-perl package on Kali Linux using different package management tools: apt, apt-get and aptitude.