How To Install Ping On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora And Raspbian?

How To Install Ping On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora And Raspbian?

ping

Send ICMP ECHO_REQUEST packets to network hosts.

Maintainer: Guillem Jover



Section: net

Install ping

  • Debian apt-get install inetutils-ping Click to copy
  • Ubuntu apt-get install inetutils-ping Click to copy
  • Alpine OS apk add iputils Click to copy
  • Arch Linux pacman -S iputils Click to copy
  • Kali Linux apt-get install inetutils-ping Click to copy
  • CentOS yum install iputils Click to copy
  • Fedora dnf install iputils Click to copy
  • Raspbian apt-get install inetutils-ping Click to copy

Send ICMP ECHO_REQUEST packets to network hosts.

How to use ping?

Below are few example commands for ping that you can use in the terminal.

Ping host:
ping hostClick to copy
Ping a host only a specific number of times:
ping -c count hostClick to copy
Ping host, specifying the interval in seconds between requests (default is 1 second):
ping -i seconds hostClick to copy
Ping host without trying to lookup symbolic names for addresses:
ping -n hostClick to copy
Ping host and ring the bell when a packet is received (if your terminal supports it):
ping -a hostClick to copy
Also display a message if no response was received:
ping -O hostClick to copy
To install the latest version of ping in your favorite operating system just copy the ping installation command from above and paste it into terminal. It will download and install the latest version of ping 2026 package in your OS.