How To Install ruby-peach on Ubuntu 18.04

In this tutorial we learn how to install ruby-peach on Ubuntu 18.04. ruby-peach is parallel execution of each and map in Ruby

Introduction

In this tutorial we learn how to install ruby-peach on Ubuntu 18.04.

What is ruby-peach

ruby-peach is:

This Ruby module provides parallel (multi-threaded) versions of the each and map methods. This makes it each to (almost transparently) parallelize such loops.

There are three methods to install ruby-peach 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 ruby-peach 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-peach using apt-get by running the following command:

sudo apt-get -y install ruby-peach

Install ruby-peach Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ruby-peach

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

sudo aptitude -y install ruby-peach

How To Uninstall ruby-peach on Ubuntu 18.04

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

sudo apt-get remove ruby-peach

Uninstall ruby-peach And Its Dependencies

To uninstall ruby-peach and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove ruby-peach

Remove ruby-peach Configurations and Data

To remove ruby-peach configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge ruby-peach

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

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

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

References

Summary

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