How To Install ruby-slow-enumerator-tools on Ubuntu 20.04
Introduction
In this tutorial we learn how to install ruby-slow-enumerator-tools
on Ubuntu 20.04.
What is ruby-slow-enumerator-tools
ruby-slow-enumerator-tools is:
This Ruby library provides tools for transforming Ruby enumerators that produce data slowly and unpredictably.
SlowEnumeratorTools.merge: given a collection of enumerables, creates a new enumerator that yields elements from any of these enumerables as soon as they become available.
SlowEnumeratorTools.batch: given an enumerable, creates a new enumerable that yields batches containing all elements currently available.
SlowEnumeratorTools.buffer: given an enumerable and a number, will create a buffer of that number of elements and try to fill it up with as many elements from that enumerable, so that they can be yielded immediately. Ruby-Versions: all
There are three methods to install ruby-slow-enumerator-tools
on Ubuntu 20.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 ruby-slow-enumerator-tools 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-slow-enumerator-tools
using apt-get
by running the following command:
sudo apt-get -y install ruby-slow-enumerator-tools
Install ruby-slow-enumerator-tools Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install ruby-slow-enumerator-tools
using apt
by running the following command:
sudo apt -y install ruby-slow-enumerator-tools
Install ruby-slow-enumerator-tools 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 ruby-slow-enumerator-tools
using aptitude
by running the following command:
sudo aptitude -y install ruby-slow-enumerator-tools
How To Uninstall ruby-slow-enumerator-tools on Ubuntu 20.04
To uninstall only the ruby-slow-enumerator-tools
package we can use the following command:
sudo apt-get remove ruby-slow-enumerator-tools
Uninstall ruby-slow-enumerator-tools And Its Dependencies
To uninstall ruby-slow-enumerator-tools
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove ruby-slow-enumerator-tools
Remove ruby-slow-enumerator-tools Configurations and Data
To remove ruby-slow-enumerator-tools
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge ruby-slow-enumerator-tools
Remove ruby-slow-enumerator-tools configuration, data, and all of its dependencies
We can use the following command to remove ruby-slow-enumerator-tools
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ruby-slow-enumerator-tools
References
Summary
In this tutorial we learn how to install ruby-slow-enumerator-tools
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.