How To Install libnamespace-clean-perl on Kali Linux

In this tutorial we learn how to install libnamespace-clean-perl on Kali Linux. libnamespace-clean-perl is module for keeping imports and functions out of the current namespace

Introduction

In this tutorial we learn how to install libnamespace-clean-perl on Kali Linux.

What is libnamespace-clean-perl

libnamespace-clean-perl is:

namespace::clean is a Perl pragma for keeping imported functions out of the current namespace. This is especially important because Perl functions are naturally available as methods, which can complicate subclassing.

Using the namespace::clean pragma will remove all previously declared or imported symbols at the end of the current package’s compile cycle. This means that functions called in the package itself will still be bound by their name, but they won’t show up as methods on your class or instances.

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

sudo apt-get -y install libnamespace-clean-perl

Install libnamespace-clean-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libnamespace-clean-perl

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

sudo aptitude -y install libnamespace-clean-perl

How To Uninstall libnamespace-clean-perl on Kali Linux

To uninstall only the libnamespace-clean-perl package we can use the following command:

sudo apt-get remove libnamespace-clean-perl

Uninstall libnamespace-clean-perl And Its Dependencies

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

sudo apt-get -y autoremove libnamespace-clean-perl

Remove libnamespace-clean-perl Configurations and Data

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

sudo apt-get -y purge libnamespace-clean-perl

Remove libnamespace-clean-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libnamespace-clean-perl

Dependencies

libnamespace-clean-perl have the following dependencies:

References

Summary

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