How To Install traceroute on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
2 minutes • 403 words
Introduction
In this tutorial we learn how to install traceroute on Ubuntu.
What is traceroute
traceroute is:
The traceroute utility displays the route used by IP packets on their way to a specified network (or Internet) host. Traceroute displays the IP number and host name (if possible) of the machines along the route taken by the packets. Traceroute is used as a network debugging tool. If you’re having network connectivity problems, traceroute will show you where the trouble is coming from along the route.
Install traceroute if you need a tool for diagnosing network connectivity problems.
There are three methods to install traceroute on Ubuntu. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install traceroute Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install traceroute using apt-get by running the following command:
sudo apt-get -y install traceroute
Install traceroute Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install traceroute using apt by running the following command:
sudo apt -y install traceroute
Install traceroute 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 traceroute using aptitude by running the following command:
sudo aptitude -y install traceroute
How To Uninstall traceroute on Ubuntu
To uninstall only the traceroute package we can use the following command:
sudo apt-get remove traceroute
Uninstall traceroute And Its Dependencies
To uninstall traceroute and its dependencies that are no longer needed by Ubuntu, we can use the command below:
sudo apt-get -y autoremove traceroute
Remove traceroute Configurations and Data
To remove traceroute configuration and data from Ubuntu we can use the following command:
sudo apt-get -y purge traceroute
Remove traceroute configuration, data, and all of its dependencies
We can use the following command to remove traceroute configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge traceroute
Dependencies
traceroute have the following dependencies:
References
Summary
In this tutorial we learn how to install traceroute package on Ubuntu using different package management tools: apt, apt-get and aptitude.