How To Install oping on Ubuntu 22.04

In this tutorial we learn how to install oping on Ubuntu 22.04. oping is sends ICMP_ECHO requests to network hosts

Introduction

In this tutorial we learn how to install oping on Ubuntu 22.04.

What is oping

oping is:

oping uses ICMP packages (better known as “ping packets”) to test the reachability of network hosts. It supports pinging multiple hosts in parallel using IPv4 and/or IPv6 transparently.

This package contains two command line applications: “oping” is a replacement for tools like ping(1), ping6(1) and fping(1). “noping” is an ncurses-based tool which displays statistics while pinging and highlights aberrant round-trip times.

There are three methods to install oping on Ubuntu 22.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install oping Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install oping using apt-get by running the following command:

sudo apt-get -y install oping

Install oping Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install oping using apt by running the following command:

sudo apt -y install oping

Install oping Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install oping using aptitude by running the following command:

sudo aptitude -y install oping

How To Uninstall oping on Ubuntu 22.04

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

sudo apt-get remove oping

Uninstall oping And Its Dependencies

To uninstall oping and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove oping

Remove oping Configurations and Data

To remove oping configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge oping

Remove oping configuration, data, and all of its dependencies

We can use the following command to remove oping configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge oping

References

Summary

In this tutorial we learn how to install oping package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.