How To Install lftp on Kali Linux

In this tutorial we learn how to install lftp on Kali Linux. lftp is Sophisticated command-line FTP/HTTP/BitTorrent client programs

Introduction

In this tutorial we learn how to install lftp on Kali Linux.

What is lftp

lftp is:

Lftp is a file retrieving tool that supports FTP, HTTP, FISH, SFTP, HTTPS, FTPS and BitTorrent protocols under both IPv4 and IPv6. Lftp has an amazing set of features, while preserving its interface as simple and easy as possible.

The main two advantages over other ftp clients are reliability and ability to perform tasks in background. It will reconnect and reget the file being transferred if the connection broke. You can start a transfer in background and continue browsing on the ftp site. It does this all in one process. When you have started background jobs and feel you are done, you can just exit lftp and it automatically moves to nohup mode and completes the transfers. It has also such nice features as reput and mirror. It can also download a file as soon as possible by using several connections at the same time.

Lftp can also be scriptable, it can be used to mirror sites, it lets you copy files among remote servers (even between FTP and HTTP). It has an extensive online help. It supports bookmarks, and connecting to several ftp/http sites at the same time.

This package also includes lftpget - A simple non-interactive tool for downloading files.

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

Install lftp Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install lftp

Install lftp Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install lftp

Install lftp Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install lftp

How To Uninstall lftp on Kali Linux

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

sudo apt-get remove lftp

Uninstall lftp And Its Dependencies

To uninstall lftp and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove lftp

Remove lftp Configurations and Data

To remove lftp configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge lftp

Remove lftp configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge lftp

Dependencies

lftp have the following dependencies:

References

Summary

In this tutorial we learn how to install lftp package on Kali Linux using different package management tools: apt, apt-get and aptitude.