How to Uninstall and Install ping Ubuntu 22.04

Updated: October 12, 2022

This is a virtual package. See the Debian policy for a definition of virtual packages. In this guide, I will show you how to install ping on Ubuntu 22.04.

Requirements to install

  • OS: Ubuntu 22.04 is needed for ping to work
  • Privileges: Make sure that you can run the sudo commands line.

Prerequisites to install ping on Ubuntu 22.04

Install ping Ubuntu 22.04

ping is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one that you think is easy and you can follow.

Install ping using APT

This is a popular method for installing any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to install ping on your Ubuntu 22.04.

Step 1: Update the APT database to download new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt-get -y update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can install ping Ubuntu by pasting this command into the terminal and executing it.

sudo apt -y install ping

Install ping using Aptitude

Aptitude allows users to view a list of available packages and manage package installation, upgrade, and removal. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt -y install aptitude

After installing aptitude, you can now install ping, just following these steps:

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install ping Ubuntu by pasting this command into the terminal and executing it.

sudo aptitude install ping

Uninstall ping on Ubuntu 22.04

Have you ever considered how difficult it is to uninstall an application from Ubuntu? You are mistaken; anyone, not just package administrators, can easily uninstall any program.

You can uninstall ping on Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove ping

You can also execute this command if you want to uninstall ping and remove its data and dependencies:

sudo apt autoremove --purge ping

Summary

In this guide, I showed you ways to install ping on Ubuntu 22.04 and ways to uninstall ping too. Please do not hesitate to contact me if you require any assistance. I’m delighted to respond to them.