How To Install ruby-memoize on Ubuntu 18.04
Introduction
In this tutorial we learn how to install ruby-memoize
on Ubuntu 18.04.
What is ruby-memoize
ruby-memoize is:
The memoize library allows you to cache methods for faster lookup. Cached results can either be stored in memory (the default) or to a file.
This library is deprecated. Memoization alternatives are memoist, memoizable and simple_memoize.
There are three methods to install ruby-memoize
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-memoize 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-memoize
using apt-get
by running the following command:
sudo apt-get -y install ruby-memoize
Install ruby-memoize Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install ruby-memoize
using apt
by running the following command:
sudo apt -y install ruby-memoize
Install ruby-memoize 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-memoize
using aptitude
by running the following command:
sudo aptitude -y install ruby-memoize
How To Uninstall ruby-memoize on Ubuntu 18.04
To uninstall only the ruby-memoize
package we can use the following command:
sudo apt-get remove ruby-memoize
Uninstall ruby-memoize And Its Dependencies
To uninstall ruby-memoize
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove ruby-memoize
Remove ruby-memoize Configurations and Data
To remove ruby-memoize
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge ruby-memoize
Remove ruby-memoize configuration, data, and all of its dependencies
We can use the following command to remove ruby-memoize
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ruby-memoize
References
Summary
In this tutorial we learn how to install ruby-memoize
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.