How To Install micro on AlmaLinux 8

In this tutorial we learn how to install micro in AlmaLinux 8. micro is A modern and intuitive terminal-based text editor

Introduction

In this tutorial we learn how to install micro on AlmaLinux 8.

What is micro

Micro is a terminal-based text editor that aims to be easy to use and intuitive, while also taking advantage of the full capabilities of modern terminals. It comes as one single, batteries-included, static binary with no dependencies, and you can download and use it right now. As the name indicates, micro aims to be somewhat of a successor to the nano editor by being easy to install and use in a pinch, but micro also aims to be enjoyable to use full time, whether you work in the terminal because you prefer it (like me), or because you need to (over ssh).

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

Install micro on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install micro

Install micro on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install micro using yum by running the following command:

sudo yum -y install micro

How To Uninstall micro on AlmaLinux 8

To uninstall only the micro package we can use the following command:

sudo dnf remove micro

References

Summary

In this tutorial we learn how to install micro on AlmaLinux 8 using yum and dnf.