How To Install libdate-leapyear-perl on Debian 9

In this tutorial we learn how to install libdate-leapyear-perl on Debian 9. libdate-leapyear-perl is Perl module to determine whether or not a year is a leapyear

Introduction

In this tutorial we learn how to install libdate-leapyear-perl on Debian 9.

What is libdate-leapyear-perl

libdate-leapyear-perl is:

Date::Leapyear is a simple, non-OO module to determine whether or not a year is a leap year. It exports one function, isleap, which returns 1 or 0, which determines whether a year is leap or not

There are three methods to install libdate-leapyear-perl on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libdate-leapyear-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 libdate-leapyear-perl using apt-get by running the following command:

sudo apt-get -y install libdate-leapyear-perl

Install libdate-leapyear-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libdate-leapyear-perl

Install libdate-leapyear-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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libdate-leapyear-perl

How To Uninstall libdate-leapyear-perl on Debian 9

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

sudo apt-get remove libdate-leapyear-perl

Uninstall libdate-leapyear-perl And Its Dependencies

To uninstall libdate-leapyear-perl and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove libdate-leapyear-perl

Remove libdate-leapyear-perl Configurations and Data

To remove libdate-leapyear-perl configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libdate-leapyear-perl

Remove libdate-leapyear-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libdate-leapyear-perl

Dependencies

libdate-leapyear-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libdate-leapyear-perl package on Debian 9 using different package management tools: apt, apt-get and aptitude.