How To Install micro on Fedora 34

micro is A modern and intuitive terminal-based text editor

Introduction

In this tutorial we learn how to install micro on Fedora 34.

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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install micro.

Install micro on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install micro

Install micro on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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 Fedora 34

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

sudo dnf remove micro

micro Package Contents on Fedora 34

/usr/bin/micro
/usr/lib/.build-id
/usr/lib/.build-id/b4
/usr/lib/.build-id/b4/5c8293768ed650fead3868bcece3e3c8b2233d
/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 Fedora 34 using yum and dnf.