How To Install libappconfig-perl on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
3 minutes • 428 words
Introduction
In this tutorial we learn how to install libappconfig-perl
on Ubuntu.
What is libappconfig-perl
libappconfig-perl is:
AppConfig is a bundle of Perl5 modules for reading configuration files and parsing command line arguments. Note that writing configuration files is not supported at this time.
AppConfig supports a relaxed configuration file syntax with support for flags (booleans), single and multivalue (lists or hashes) items. A defined default and validation routine or regex can be defined for each option.
Environment variable, file variable and tilde (~) are supported and may be applied to selected configuration options. For long blocks of text you can also use Perl HEREDOC syntax. Additionally there is also a mechanism to utilise all these same features via a CGI.
There are three methods to install libappconfig-perl
on Ubuntu. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libappconfig-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 libappconfig-perl
using apt-get
by running the following command:
sudo apt-get -y install libappconfig-perl
Install libappconfig-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libappconfig-perl
using apt
by running the following command:
sudo apt -y install libappconfig-perl
Install libappconfig-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 libappconfig-perl
using aptitude
by running the following command:
sudo aptitude -y install libappconfig-perl
How To Uninstall libappconfig-perl on Ubuntu
To uninstall only the libappconfig-perl
package we can use the following command:
sudo apt-get remove libappconfig-perl
Uninstall libappconfig-perl And Its Dependencies
To uninstall libappconfig-perl
and its dependencies that are no longer needed by Ubuntu, we can use the command below:
sudo apt-get -y autoremove libappconfig-perl
Remove libappconfig-perl Configurations and Data
To remove libappconfig-perl
configuration and data from Ubuntu we can use the following command:
sudo apt-get -y purge libappconfig-perl
Remove libappconfig-perl configuration, data, and all of its dependencies
We can use the following command to remove libappconfig-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libappconfig-perl
Dependencies
libappconfig-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libappconfig-perl
package on Ubuntu using different package management tools: apt, apt-get and aptitude.