How To Install erlang-cherly on Ubuntu 18.04
Introduction
In this tutorial we learn how to install erlang-cherly
on Ubuntu 18.04.
What is erlang-cherly
erlang-cherly is:
Cherly (sher-lee) was originally developed by Cliff Moon for erlang to deal with in memory caching based on LRU. Its functionality and performance were awesome, but as time goes on, its implementation gradually obsoletes and it’s hard to maintain. To overcome these problems, I forked and made Cherly improve with original purposes. Main improvements are described below.
- Replaced the hash storing structure (originally used Judy hash) with the combination of Open addressing and Tree structure based on golang’s hash implementation. This structure is very scalable and stable.
- Implemented slab allocator on off-heap.
- Replaced implemantations of port driver with NIFs.
- Rebarized
There are three methods to install erlang-cherly
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 erlang-cherly Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install erlang-cherly
using apt-get
by running the following command:
sudo apt-get -y install erlang-cherly
Install erlang-cherly Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install erlang-cherly
using apt
by running the following command:
sudo apt -y install erlang-cherly
Install erlang-cherly 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 erlang-cherly
using aptitude
by running the following command:
sudo aptitude -y install erlang-cherly
How To Uninstall erlang-cherly on Ubuntu 18.04
To uninstall only the erlang-cherly
package we can use the following command:
sudo apt-get remove erlang-cherly
Uninstall erlang-cherly And Its Dependencies
To uninstall erlang-cherly
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove erlang-cherly
Remove erlang-cherly Configurations and Data
To remove erlang-cherly
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge erlang-cherly
Remove erlang-cherly configuration, data, and all of its dependencies
We can use the following command to remove erlang-cherly
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge erlang-cherly
References
Summary
In this tutorial we learn how to install erlang-cherly
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.