How To Install libperl-critic-perl on Ubuntu 18.04
Introduction
In this tutorial we learn how to install libperl-critic-perl
on Ubuntu 18.04.
What is libperl-critic-perl
libperl-critic-perl is:
Perl::Critic is an extensible framework for creating and applying software coding policies to Perl source code. By default, it is distributed with a number of policy modules that attempt to enforce various coding guidelines, including those discussed in Damian Conway’s Perl Best Practices. However, it is not limited to PBP and will even support policies that contradict PBP. You can enable, disable and customize those policies through the Perl::Critic interface. You can also create new Policy modules to suit your own tastes.
There are three methods to install libperl-critic-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 libperl-critic-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 libperl-critic-perl
using apt-get
by running the following command:
sudo apt-get -y install libperl-critic-perl
Install libperl-critic-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libperl-critic-perl
using apt
by running the following command:
sudo apt -y install libperl-critic-perl
Install libperl-critic-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 libperl-critic-perl
using aptitude
by running the following command:
sudo aptitude -y install libperl-critic-perl
How To Uninstall libperl-critic-perl on Ubuntu 18.04
To uninstall only the libperl-critic-perl
package we can use the following command:
sudo apt-get remove libperl-critic-perl
Uninstall libperl-critic-perl And Its Dependencies
To uninstall libperl-critic-perl
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove libperl-critic-perl
Remove libperl-critic-perl Configurations and Data
To remove libperl-critic-perl
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge libperl-critic-perl
Remove libperl-critic-perl configuration, data, and all of its dependencies
We can use the following command to remove libperl-critic-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libperl-critic-perl
References
Summary
In this tutorial we learn how to install libperl-critic-perl
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.