How To Install ruby-whenever on Debian 10

Learn how to install ruby-whenever on Debian 10 with this tutorial. ruby-whenever is Ruby library to abstract writing and deploying cron jobs

Introduction

In this tutorial we learn how to install ruby-whenever on Debian 10.

What is ruby-whenever

ruby-whenever is:

whenever provides a clean ruby syntax for writing and deploying cron jobs. It provides commands to install and uninstall cronjobs, so for example an application can install its cronjobs when it starts, and uninstall them when it stops for maintaince.

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

Install ruby-whenever Using apt-get

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

sudo apt-get update

After updating apt database, We can install ruby-whenever using apt-get by running the following command:

sudo apt-get -y install ruby-whenever

Install ruby-whenever Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ruby-whenever

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

sudo aptitude -y install ruby-whenever

How To Uninstall ruby-whenever on Debian 10

To uninstall only the ruby-whenever package we can use the following command:

sudo apt-get remove ruby-whenever

Uninstall ruby-whenever And Its Dependencies

To uninstall ruby-whenever and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove ruby-whenever

Remove ruby-whenever Configurations and Data

To remove ruby-whenever configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge ruby-whenever

Remove ruby-whenever configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ruby-whenever

Dependencies

ruby-whenever have the following dependencies:

References

Summary

In this tutorial we learn how to install ruby-whenever package on Debian 10 using different package management tools: apt, apt-get and aptitude.