How To Install mtr on AlmaLinux 8

In this tutorial we learn how to install mtr in AlmaLinux 8. mtr is Network diagnostic tool combining ’traceroute’ and ‘ping’

Introduction

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

What is mtr

MTR combines the functionality of the ’traceroute’ and ‘ping’ programs in a single network diagnostic tool. When MTR is started, it investigates the network connection between the host MTR runs on and the user-specified destination host. Afterwards it determines the address of each network hop between the machines and sends a sequence of ICMP echo requests to each one to determine the quality of the link to each machine. While doing this, it prints running statistics about each machine. MTR provides two user interfaces command line, e.g. for SSH sessions; and a GTK+ interface for X (provided in the mtr-gtk package).

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

Install mtr 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 mtr using dnf by running the following command:

sudo dnf -y install mtr

Install mtr 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 mtr using yum by running the following command:

sudo yum -y install mtr

How To Uninstall mtr on AlmaLinux 8

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

sudo dnf remove mtr

References

Summary

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