How To Install libdancer2-perl on Ubuntu 18.04

In this tutorial we learn how to install libdancer2-perl on Ubuntu 18.04. libdancer2-perl is lightweight yet powerful web application framework

Introduction

In this tutorial we learn how to install libdancer2-perl on Ubuntu 18.04.

What is libdancer2-perl

libdancer2-perl is:

Dancer2 is the new generation lightweight web-framework for Perl. It’s a complete rewrite of Dancer based on Moo. It’s designed to be powerful and flexible, but also easy to use - getting up and running with your web app is trivial, and an ecosystem of adaptors for common template engines, session storage, logging methods and plugins to make common tasks easy mean you can do what you want to do, your way, easily.

There are three methods to install libdancer2-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 libdancer2-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 libdancer2-perl using apt-get by running the following command:

sudo apt-get -y install libdancer2-perl

Install libdancer2-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libdancer2-perl

Install libdancer2-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 libdancer2-perl using aptitude by running the following command:

sudo aptitude -y install libdancer2-perl

How To Uninstall libdancer2-perl on Ubuntu 18.04

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

sudo apt-get remove libdancer2-perl

Uninstall libdancer2-perl And Its Dependencies

To uninstall libdancer2-perl and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libdancer2-perl

Remove libdancer2-perl Configurations and Data

To remove libdancer2-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libdancer2-perl

Remove libdancer2-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libdancer2-perl

References

Summary

In this tutorial we learn how to install libdancer2-perl package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.