How To Install libpopt-dev on Kali Linux

In this tutorial we learn how to install libpopt-dev on Kali Linux. libpopt-dev is lib for parsing cmdline parameters - development files

Introduction

In this tutorial we learn how to install libpopt-dev on Kali Linux.

What is libpopt-dev

libpopt-dev is:

Popt was heavily influenced by the getopt() and getopt_long() functions, but it allows more powerful argument expansion. It can parse arbitrary argv[] style arrays and automatically set variables based on command line arguments. It also allows command line arguments to be aliased via configuration files and includes utility functions for parsing arbitrary strings into argv[] arrays using shell-like rules.

This package contains the popt static library and header file.

There are three methods to install libpopt-dev 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 libpopt-dev Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libpopt-dev using apt-get by running the following command:

sudo apt-get -y install libpopt-dev

Install libpopt-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libpopt-dev using apt by running the following command:

sudo apt -y install libpopt-dev

Install libpopt-dev 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 libpopt-dev using aptitude by running the following command:

sudo aptitude -y install libpopt-dev

How To Uninstall libpopt-dev on Kali Linux

To uninstall only the libpopt-dev package we can use the following command:

sudo apt-get remove libpopt-dev

Uninstall libpopt-dev And Its Dependencies

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

sudo apt-get -y autoremove libpopt-dev

Remove libpopt-dev Configurations and Data

To remove libpopt-dev configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge libpopt-dev

Remove libpopt-dev configuration, data, and all of its dependencies

We can use the following command to remove libpopt-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libpopt-dev

Dependencies

libpopt-dev have the following dependencies:

References

Summary

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