How To Install ruby-ice-cube on Debian 9
Introduction
In this tutorial we learn how to install ruby-ice-cube
on Debian 9.
What is ruby-ice-cube
ruby-ice-cube is:
ice_cube is a recurring date library for Ruby. It allows for quick, programatic expansion of recurring date rules. The API is modeled after iCalendar events, in a pleasant Ruby syntax. The power lies in the ability to specify multiple rules, and have ice_cube quickly figure out whether the schedule falls on a certain date (.occurs_on?), or what times it occurs at (.occurrences, .first, .all_occurrences).
There are three methods to install ruby-ice-cube
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 ruby-ice-cube 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-ice-cube
using apt-get
by running the following command:
sudo apt-get -y install ruby-ice-cube
Install ruby-ice-cube Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install ruby-ice-cube
using apt
by running the following command:
sudo apt -y install ruby-ice-cube
Install ruby-ice-cube 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-ice-cube
using aptitude
by running the following command:
sudo aptitude -y install ruby-ice-cube
How To Uninstall ruby-ice-cube on Debian 9
To uninstall only the ruby-ice-cube
package we can use the following command:
sudo apt-get remove ruby-ice-cube
Uninstall ruby-ice-cube And Its Dependencies
To uninstall ruby-ice-cube
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove ruby-ice-cube
Remove ruby-ice-cube Configurations and Data
To remove ruby-ice-cube
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge ruby-ice-cube
Remove ruby-ice-cube configuration, data, and all of its dependencies
We can use the following command to remove ruby-ice-cube
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ruby-ice-cube
Dependencies
ruby-ice-cube have the following dependencies:
References
Summary
In this tutorial we learn how to install ruby-ice-cube
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.