How To Install iputils on CentOS 8

iputils is Network monitoring tools including ping Network monitoring tools including ping

Introduction

In this tutorial we learn how to install iputils on CentOS 8.

What is iputils

The iputils package contains basic utilities for monitoring a network, including ping. The ping command sends a series of ICMP protocol ECHO_REQUEST packets to a specified network host to discover whether the target machine is alive and receiving network traffic. iputils 20180629 7.el8 x86_64 148 k iputils-20180629-7.el8.src.rpm baseos Network monitoring tools including ping https BSD and GPLv2+ The iputils package contains basic utilities for monitoring a network, including ping. The ping command sends a series of ICMP protocol ECHO_REQUEST packets to a specified network host to discover whether the target machine is alive and receiving network traffic.

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

Install iputils on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install iputils

Install iputils on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install iputils

How To Uninstall iputils on CentOS 8

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

sudo dnf remove iputils

iputils Package Contents on CentOS 8

/usr/bin/ping
/usr/bin/tracepath
/usr/lib/.build-id
/usr/lib/.build-id/40
/usr/lib/.build-id/40/9f4436177611cb7234c53bb3f0887bcbba01ba
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/51a40cfc0f78a3618b941afabc2992627c1517
/usr/lib/.build-id/68
/usr/lib/.build-id/68/1e6878b36dccb6d5b3f24f0106125f4ea46ead
/usr/lib/.build-id/9c
/usr/lib/.build-id/9c/39c7a74493904d19ec72d89ea9af5395858eb1
/usr/lib/.build-id/c1
/usr/lib/.build-id/c1/fac6b475b4c0a7fc61b0b1154a21fe2ee82a57
/usr/lib/.build-id/de
/usr/lib/.build-id/de/f49779487bbda39c6d3b7d7705a3fdbfcf956f
/usr/lib/systemd/system/rdisc.service
/usr/sbin/arping
/usr/sbin/clockdiff
/usr/sbin/ifenslave
/usr/sbin/ping
/usr/sbin/ping6
/usr/sbin/rdisc
/usr/sbin/tracepath
/usr/sbin/tracepath6
/usr/share/doc/iputils
/usr/share/doc/iputils/README.bonding
/usr/share/licenses/iputils
/usr/share/licenses/iputils/bsd.txt
/usr/share/licenses/iputils/gpl-2.0.txt
/usr/share/man/man8/arping.8.gz
/usr/share/man/man8/clockdiff.8.gz
/usr/share/man/man8/ifenslave.8.gz
/usr/share/man/man8/ping.8.gz
/usr/share/man/man8/ping6.8.gz
/usr/share/man/man8/rdisc.8.gz
/usr/share/man/man8/tracepath.8.gz
/usr/share/man/man8/tracepath6.8.gz

References

Summary

In this tutorial we learn how to install iputils on CentOS 8 using yum and dnf.