How To Install micro on CentOS 8

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

Introduction

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

Install micro on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install micro

Install micro on CentOS 8 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install micro

How To Uninstall micro on CentOS 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 CentOS 8 using yum and dnf.