How To Install mtr on Fedora 34
Introduction
In this tutorial we learn how to install mtr
on Fedora 34.
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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install mtr.
Install mtr 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 mtr
using dnf
by running the following command:
sudo dnf -y install mtr
Install mtr 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 mtr
using yum
by running the following command:
sudo yum -y install mtr
How To Uninstall mtr on Fedora 34
To uninstall only the mtr
package we can use the following command:
sudo dnf remove mtr
mtr Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/4d
/usr/lib/.build-id/4d/9f0f2176d80c2aff3cedac8edbfca92a40295a
/usr/lib/.build-id/a2
/usr/lib/.build-id/a2/79d50dcebfa74223f0212e6a10471f7e028619
/usr/sbin/mtr
/usr/sbin/mtr-packet
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/mtr
/usr/share/doc/mtr
/usr/share/doc/mtr/AUTHORS
/usr/share/doc/mtr/FORMATS
/usr/share/doc/mtr/NEWS
/usr/share/doc/mtr/README.md
/usr/share/doc/mtr/SECURITY
/usr/share/licenses/mtr
/usr/share/licenses/mtr/COPYING
/usr/share/man/man8/mtr-packet.8.gz
/usr/share/man/man8/mtr.8.gz
/usr/lib/.build-id
/usr/lib/.build-id/c2
/usr/lib/.build-id/c2/46a57a3706a48f79d45a48b5f309b3f154ed93
/usr/lib/.build-id/d4
/usr/lib/.build-id/d4/92aeed52baa1c5d0aebdafb33773f14182830a
/usr/sbin/mtr
/usr/sbin/mtr-packet
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/mtr
/usr/share/doc/mtr
/usr/share/doc/mtr/AUTHORS
/usr/share/doc/mtr/FORMATS
/usr/share/doc/mtr/NEWS
/usr/share/doc/mtr/README.md
/usr/share/doc/mtr/SECURITY
/usr/share/licenses/mtr
/usr/share/licenses/mtr/COPYING
/usr/share/man/man8/mtr-packet.8.gz
/usr/share/man/man8/mtr.8.gz
References
Summary
In this tutorial we learn how to install mtr
on Fedora 34 using yum and dnf.