How To Install micro on Rocky Linux 8

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

Introduction

In this tutorial we learn how to install micro on Rocky Linux 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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install micro.

Install micro on Rocky Linux 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 Rocky Linux 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 Rocky Linux 8

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

sudo dnf remove micro

micro Package Contents on Rocky Linux 8

/usr/bin/micro
/usr/lib/.build-id
/usr/lib/.build-id/3d
/usr/lib/.build-id/3d/23f189c7beb4515c51edb1c473b1a997cb0ecb
/usr/share/doc/micro
/usr/share/doc/micro/README.md
/usr/share/licenses/micro
/usr/share/licenses/micro/LICENSE
/usr/share/licenses/micro/LICENSE-THIRD-PARTY

References

Summary

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