How To Install liblocal-lib-perl on Kali Linux
Introduction
In this tutorial we learn how to install liblocal-lib-perl on Kali Linux.
What is liblocal-lib-perl
liblocal-lib-perl is:
local::lib is a Perl module that provides a quick, convenient way of setting up a user-local library located within the user’s home directory. It also constructs and prints out for the user the list of environment variables using the syntax appropriate for the user’s current shell (as specified by the SHELL environment variable), suitable for directly adding to one’s shell configuration file.
More generally, this module enables bootstrapping and usage of a directory containing Perl modules outside of Perl’s @INC. This makes it easier to ship an application with an app-specific copy of a Perl module, or collection of modules. It is also useful for the case where an upstream maintainer hasn’t applied a patch to a module of theirs that you need for your application.
There are three methods to install liblocal-lib-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 liblocal-lib-perl Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install liblocal-lib-perl using apt-get by running the following command:
sudo apt-get -y install liblocal-lib-perlInstall liblocal-lib-perl Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install liblocal-lib-perl using apt by running the following command:
sudo apt -y install liblocal-lib-perlInstall liblocal-lib-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 liblocal-lib-perl using aptitude by running the following command:
sudo aptitude -y install liblocal-lib-perlHow To Uninstall liblocal-lib-perl on Kali Linux
To uninstall only the liblocal-lib-perl package we can use the following command:
sudo apt-get remove liblocal-lib-perlUninstall liblocal-lib-perl And Its Dependencies
To uninstall liblocal-lib-perl and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove liblocal-lib-perlRemove liblocal-lib-perl Configurations and Data
To remove liblocal-lib-perl configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge liblocal-lib-perlRemove liblocal-lib-perl configuration, data, and all of its dependencies
We can use the following command to remove liblocal-lib-perl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge liblocal-lib-perlDependencies
liblocal-lib-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install liblocal-lib-perl package on Kali Linux using different package management tools: apt, apt-get and aptitude.