How To Install libstat-lsmode-perl on Kali Linux

In this tutorial we learn how to install libstat-lsmode-perl on Kali Linux. libstat-lsmode-perl is Perl module to format file modes like ls -l

Introduction

In this tutorial we learn how to install libstat-lsmode-perl on Kali Linux.

What is libstat-lsmode-perl

libstat-lsmode-perl is:

Stat::lsMode provides Perl functions to format file modes in the same way that ls -l does (into strings like drwxr-xr-x, for example). It handles all the expected variations, including setuid, setgid, and sticky bits and special file types.

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

sudo apt-get -y install libstat-lsmode-perl

Install libstat-lsmode-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libstat-lsmode-perl

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

sudo aptitude -y install libstat-lsmode-perl

How To Uninstall libstat-lsmode-perl on Kali Linux

To uninstall only the libstat-lsmode-perl package we can use the following command:

sudo apt-get remove libstat-lsmode-perl

Uninstall libstat-lsmode-perl And Its Dependencies

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

sudo apt-get -y autoremove libstat-lsmode-perl

Remove libstat-lsmode-perl Configurations and Data

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

sudo apt-get -y purge libstat-lsmode-perl

Remove libstat-lsmode-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libstat-lsmode-perl

Dependencies

libstat-lsmode-perl have the following dependencies:

References

Summary

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