How To Install libgetopt-mixed-perl on Debian 10

Learn how to install libgetopt-mixed-perl on Debian 10 with this tutorial. libgetopt-mixed-perl is Perl module for processing options in GNU-style (= long and short)

Introduction

In this tutorial we learn how to install libgetopt-mixed-perl on Debian 10.

What is libgetopt-mixed-perl

libgetopt-mixed-perl is:

This module is intended to be the “Getopt-to-end-all-Getop’s”. It combines flexibility and simplicity. It supports both short options (introduced by -') and long options (introduced by –’). Short options which do not take an argument can be grouped together. Short options which do take an argument must be the last option in their group, because everything following the option will be considered to be its argument.

There are three methods to install libgetopt-mixed-perl on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libgetopt-mixed-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 libgetopt-mixed-perl using apt-get by running the following command:

sudo apt-get -y install libgetopt-mixed-perl

Install libgetopt-mixed-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libgetopt-mixed-perl

Install libgetopt-mixed-perl Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libgetopt-mixed-perl using aptitude by running the following command:

sudo aptitude -y install libgetopt-mixed-perl

How To Uninstall libgetopt-mixed-perl on Debian 10

To uninstall only the libgetopt-mixed-perl package we can use the following command:

sudo apt-get remove libgetopt-mixed-perl

Uninstall libgetopt-mixed-perl And Its Dependencies

To uninstall libgetopt-mixed-perl and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove libgetopt-mixed-perl

Remove libgetopt-mixed-perl Configurations and Data

To remove libgetopt-mixed-perl configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge libgetopt-mixed-perl

Remove libgetopt-mixed-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libgetopt-mixed-perl

Dependencies

libgetopt-mixed-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libgetopt-mixed-perl package on Debian 10 using different package management tools: apt, apt-get and aptitude.