How To Install libconfig-general-perl on Kali Linux

In this tutorial we learn how to install libconfig-general-perl on Kali Linux. libconfig-general-perl is generic configuration module

Introduction

In this tutorial we learn how to install libconfig-general-perl on Kali Linux.

What is libconfig-general-perl

libconfig-general-perl is:

Config::General opens a configuration file and parses its contents for you. After parsing it returns a hash which contains all options and their associated values from your configuration file.

The format of configuration files supported by Config::General is inspired by the well known Apache configuration format, in fact, this module is fully capable of parsing Apache configurations, but the output is not usable by Apache. You can also just use simple name/value pairs in your configuration files.

In addition to the capabilities of an Apache configuration file it supports some enhancements such as here-documents, C-style comments and multi-line options.

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

sudo apt-get -y install libconfig-general-perl

Install libconfig-general-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libconfig-general-perl

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

sudo aptitude -y install libconfig-general-perl

How To Uninstall libconfig-general-perl on Kali Linux

To uninstall only the libconfig-general-perl package we can use the following command:

sudo apt-get remove libconfig-general-perl

Uninstall libconfig-general-perl And Its Dependencies

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

sudo apt-get -y autoremove libconfig-general-perl

Remove libconfig-general-perl Configurations and Data

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

sudo apt-get -y purge libconfig-general-perl

Remove libconfig-general-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libconfig-general-perl

Dependencies

libconfig-general-perl have the following dependencies:

References

Summary

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