How To Install libparse-keyword-perl on Ubuntu 18.04
Introduction
In this tutorial we learn how to install libparse-keyword-perl on Ubuntu 18.04.
What is libparse-keyword-perl
libparse-keyword-perl is:
Parse::Keyword allows you to write keyword-based syntax extensions without requiring you to write any C code yourself. It is similar to Devel::Declare, except that it uses the Perl parser API introduced in Perl 5.14 in order to allow you to parse parts of things using perl’s own parser, rather than having to fake it with balanced brace matching or other fragile things.
NB! This module has fundamental errors in the way it handles closures, which are not fixable. Runtime keywords will never be able to work properly with the current design of this module. There are certain cases where this module is still safe to use (keywords that only have effect at compile time, or keywords that never call any of the parse_* functions), but that is limiting enough to make this module mostly worthless, and its author may not continue maintain it. Be warned!
There are three methods to install libparse-keyword-perl on Ubuntu 18.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 libparse-keyword-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 libparse-keyword-perl using apt-get by running the following command:
sudo apt-get -y install libparse-keyword-perl
Install libparse-keyword-perl Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install libparse-keyword-perl using apt by running the following command:
sudo apt -y install libparse-keyword-perl
Install libparse-keyword-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 libparse-keyword-perl using aptitude by running the following command:
sudo aptitude -y install libparse-keyword-perl
How To Uninstall libparse-keyword-perl on Ubuntu 18.04
To uninstall only the libparse-keyword-perl package we can use the following command:
sudo apt-get remove libparse-keyword-perl
Uninstall libparse-keyword-perl And Its Dependencies
To uninstall libparse-keyword-perl and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove libparse-keyword-perl
Remove libparse-keyword-perl Configurations and Data
To remove libparse-keyword-perl configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge libparse-keyword-perl
Remove libparse-keyword-perl configuration, data, and all of its dependencies
We can use the following command to remove libparse-keyword-perl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libparse-keyword-perl
References
Summary
In this tutorial we learn how to install libparse-keyword-perl package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.