Introduction
In this tutorial we learn how to install libgetargs-long-perl
on Ubuntu 22.04.
What is libgetargs-long-perl
libgetargs-long-perl is:
The Getargs::Long module allows usage of named parameters in function
calls, along with optional argument type-checking. It provides an easy
way to get at the parameters within the routine, and yields concise
descriptions for the common cases of all-mandatory and all-optional
parameter lists.
The validation of arguments can be done by a structure-driven routine
getargs() which is fine for infrequently called routines (but should be
slower), or via a dedicated routine created and compiled on the fly the
first time it is needed, by using the cgetargs() family (expected to be
faster).
The Log::Agent module is used to report errors, which leaves to the
application the choice of the final logging method: to a file, to
STDERR, or to syslog.
Note that this module is still in the alpha stage of development, and
the interface to it may change: indeed, it changed between 0.1.2 and
0.1.3.
There are three methods to install libgetargs-long-perl
on Ubuntu 22.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libgetargs-long-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 libgetargs-long-perl
using apt-get
by running the following command:
sudo apt-get -y install libgetargs-long-perl
Install libgetargs-long-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libgetargs-long-perl
using apt
by running the following command:
sudo apt -y install libgetargs-long-perl
Install libgetargs-long-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 Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libgetargs-long-perl
using aptitude
by running the following command:
sudo aptitude -y install libgetargs-long-perl
How To Uninstall libgetargs-long-perl on Ubuntu 22.04
To uninstall only the libgetargs-long-perl
package we can use the following command:
sudo apt-get remove libgetargs-long-perl
Uninstall libgetargs-long-perl And Its Dependencies
To uninstall libgetargs-long-perl
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove libgetargs-long-perl
Remove libgetargs-long-perl Configurations and Data
To remove libgetargs-long-perl
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge libgetargs-long-perl
Remove libgetargs-long-perl configuration, data, and all of its dependencies
We can use the following command to remove libgetargs-long-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libgetargs-long-perl
References
Summary
In this tutorial we learn how to install libgetargs-long-perl
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.