How To Install lft on Debian 10

Learn how to install lft on Debian 10 with this tutorial. lft is layer-four traceroute

Introduction

In this tutorial we learn how to install lft on Debian 10.

What is lft

lft is:

This sends various TCP SYN and FIN probes (differing from Van Jacobson’s UDP-based method) utilizing the IP protocol “time to live” field and attempts to elicit an ICMP TIME_EXCEEDED response from each gateway along the path to some host. lft also listens for various TCP and ICMP messages along the way to assist network managers in ascertaining per-protocol heuristic routing information and can optionally retrieve various information about the networks it traverses.

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

Install lft Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install lft

Install lft Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install lft

Install lft 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 lft using aptitude by running the following command:

sudo aptitude -y install lft

How To Uninstall lft on Debian 10

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

sudo apt-get remove lft

Uninstall lft And Its Dependencies

To uninstall lft and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove lft

Remove lft Configurations and Data

To remove lft configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge lft

Remove lft configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge lft

Dependencies

lft have the following dependencies:

References

Summary

In this tutorial we learn how to install lft package on Debian 10 using different package management tools: apt, apt-get and aptitude.