How To Install erlang-mnesia on CentOS 8

erlang-mnesia is A heavy duty real-time distributed database

Introduction

In this tutorial we learn how to install erlang-mnesia on CentOS 8.

What is erlang-mnesia

A heavy duty real-time distributed database.

We can use yum or dnf to install erlang-mnesia on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install erlang-mnesia.

Install erlang-mnesia on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install erlang-mnesia using dnf by running the following command:

sudo dnf -y install erlang-mnesia

Install erlang-mnesia on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install erlang-mnesia using yum by running the following command:

sudo yum -y install erlang-mnesia

How To Uninstall erlang-mnesia on CentOS 8

To uninstall only the erlang-mnesia package we can use the following command:

sudo dnf remove erlang-mnesia

erlang-mnesia Package Contents on CentOS 8

/usr/lib64/erlang/lib/mnesia-4.16
/usr/lib64/erlang/lib/mnesia-4.16/ebin
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia.app
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia.appup
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_app.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_backend_type.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_backup.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_bup.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_checkpoint.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_checkpoint_sup.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_controller.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_dumper.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_event.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_ext_sup.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_frag.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_frag_hash.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_index.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_kernel_sup.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_late_loader.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_lib.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_loader.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_locker.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_log.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_monitor.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_recover.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_registry.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_schema.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_snmp_hook.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_sp.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_subscr.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_sup.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_text.beam
/usr/lib64/erlang/lib/mnesia-4.16/ebin/mnesia_tm.beam
/usr/lib64/erlang/lib/mnesia-4.16/src
/usr/lib64/erlang/lib/mnesia-4.16/src/mnesia.hrl

References

Summary

In this tutorial we learn how to install erlang-mnesia on CentOS 8 using yum and dnf.