Introduction
In this tutorial we learn how to install erlang-folsom
on Ubuntu 22.04.
What is erlang-folsom
erlang-folsom is:
Folsom is an Erlang based metrics system inspired by Coda Hale’s metrics
(https://github.com/codahale/metrics/). The metrics API’s purpose is to collect
realtime metrics from your Erlang applications and publish them via Erlang APIs
and output plugins. folsom is not a persistent store. There are 6 types of
metrics: counters, gauges, histograms (and timers), histories, meter_readers
and meters. Metrics can be created, read and updated via thefolsom_metrics
module.
There are three methods to install erlang-folsom
on Ubuntu 22.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-folsom 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-folsom
using apt-get
by running the following command:
sudo apt-get -y install erlang-folsom
Install erlang-folsom Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install erlang-folsom
using apt
by running the following command:
sudo apt -y install erlang-folsom
Install erlang-folsom 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-folsom
using aptitude
by running the following command:
sudo aptitude -y install erlang-folsom
How To Uninstall erlang-folsom on Ubuntu 22.04
To uninstall only the erlang-folsom
package we can use the following command:
sudo apt-get remove erlang-folsom
Uninstall erlang-folsom And Its Dependencies
To uninstall erlang-folsom
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove erlang-folsom
Remove erlang-folsom Configurations and Data
To remove erlang-folsom
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge erlang-folsom
Remove erlang-folsom configuration, data, and all of its dependencies
We can use the following command to remove erlang-folsom
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge erlang-folsom
References
Summary
In this tutorial we learn how to install erlang-folsom
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.