How To Install libdancer-session-cookie-perl on Ubuntu 18.04

In this tutorial we learn how to install libdancer-session-cookie-perl on Ubuntu 18.04. libdancer-session-cookie-perl is encrypted cookie-based session backend for Dancer

Introduction

In this tutorial we learn how to install libdancer-session-cookie-perl on Ubuntu 18.04.

libdancer-session-cookie-perl is:

Dancer::Session::Cookie implements a session engine for sessions stored entirely in cookies. Usually only session id is stored in cookies and the session data itself is saved in some external storage, e.g. database. This module allows one to avoid using external storage at all.

Since server cannot trust any data returned by client in cookies, this module uses cryptography to ensure integrity and also secrecy. The data your application stores in sessions is completely protected from both tampering and analysis on the client-side.

There are three methods to install libdancer-session-cookie-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.

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libdancer-session-cookie-perl using apt-get by running the following command:

sudo apt-get -y install libdancer-session-cookie-perl

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libdancer-session-cookie-perl

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 libdancer-session-cookie-perl using aptitude by running the following command:

sudo aptitude -y install libdancer-session-cookie-perl

To uninstall only the libdancer-session-cookie-perl package we can use the following command:

sudo apt-get remove libdancer-session-cookie-perl

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

sudo apt-get -y autoremove libdancer-session-cookie-perl

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

sudo apt-get -y purge libdancer-session-cookie-perl

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

sudo apt-get -y autoremove --purge libdancer-session-cookie-perl

References

Summary

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