How To Install libdatetime-event-recurrence-perl on Ubuntu 18.04

In this tutorial we learn how to install libdatetime-event-recurrence-perl on Ubuntu 18.04. libdatetime-event-recurrence-perl is Perl module to create recurring DateTime instances

Introduction

In this tutorial we learn how to install libdatetime-event-recurrence-perl on Ubuntu 18.04.

What is libdatetime-event-recurrence-perl

libdatetime-event-recurrence-perl is:

DateTime::Event::Recurrence provides a way to create sets of DateTime objects that recur at specified intervals. Often, you will want DateTime::Set objects for dates that should occur at intervals like “once a month” or “every day.”

More complex relationships can be created too, such as, “every Monday, Wednesday and Thursday at 10:00 AM and 2:00 PM.”

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

sudo apt-get -y install libdatetime-event-recurrence-perl

Install libdatetime-event-recurrence-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libdatetime-event-recurrence-perl

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

sudo aptitude -y install libdatetime-event-recurrence-perl

How To Uninstall libdatetime-event-recurrence-perl on Ubuntu 18.04

To uninstall only the libdatetime-event-recurrence-perl package we can use the following command:

sudo apt-get remove libdatetime-event-recurrence-perl

Uninstall libdatetime-event-recurrence-perl And Its Dependencies

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

sudo apt-get -y autoremove libdatetime-event-recurrence-perl

Remove libdatetime-event-recurrence-perl Configurations and Data

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

sudo apt-get -y purge libdatetime-event-recurrence-perl

Remove libdatetime-event-recurrence-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libdatetime-event-recurrence-perl

References

Summary

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