How To Install libnet-traceroute-perl on Debian 9

In this tutorial we learn how to install libnet-traceroute-perl on Debian 9. libnet-traceroute-perl is traceroute(1) functionality in perl

Introduction

In this tutorial we learn how to install libnet-traceroute-perl on Debian 9.

What is libnet-traceroute-perl

libnet-traceroute-perl is:

Net::Traceroute implements a parser for various traceroute implementations. At present, it can parse most LBL traceroute derivatives used on typical unixes, and the traceroute of cisco IOS. Traceroutes known not to be supported include that of Microsoft Windows and HP-UX.

This module has two basic modes of operation, one, where it will run traceroute for you, and the other where you provide text from previously runing traceroute to parse.

There are three methods to install libnet-traceroute-perl on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libnet-traceroute-perl Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libnet-traceroute-perl

Install libnet-traceroute-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libnet-traceroute-perl using apt by running the following command:

sudo apt -y install libnet-traceroute-perl

Install libnet-traceroute-perl 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libnet-traceroute-perl using aptitude by running the following command:

sudo aptitude -y install libnet-traceroute-perl

How To Uninstall libnet-traceroute-perl on Debian 9

To uninstall only the libnet-traceroute-perl package we can use the following command:

sudo apt-get remove libnet-traceroute-perl

Uninstall libnet-traceroute-perl And Its Dependencies

To uninstall libnet-traceroute-perl and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove libnet-traceroute-perl

Remove libnet-traceroute-perl Configurations and Data

To remove libnet-traceroute-perl configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libnet-traceroute-perl

Remove libnet-traceroute-perl configuration, data, and all of its dependencies

We can use the following command to remove libnet-traceroute-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libnet-traceroute-perl

Dependencies

libnet-traceroute-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libnet-traceroute-perl package on Debian 9 using different package management tools: apt, apt-get and aptitude.