How To Install wget2 on Debian 10

Learn how to install wget2 on Debian 10 with this tutorial. wget2 is file and recursive website downloader

Introduction

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

What is wget2

wget2 is:

GNU Wget is a network utility to retrieve files from the web using HTTP(S) and FTP, the two most widely used internet protocols. It works non-interactively, so it will work in the background, after having logged off. The program supports recursive retrieval of web-authoring pages as well as FTP sites – you can use Wget to make mirrors of archives and home pages or to travel the web like a WWW robot.

Wget works particularly well with slow or unstable connections by continuing to retrieve a document until the document is fully downloaded. Re-getting files from where it left off works on servers (both HTTP and FTP) that support it. Both HTTP and FTP retrievals can be time stamped, so Wget can see if the remote file has changed since the last retrieval and automatically retrieve the new version if it has.

Wget supports proxy servers; this can lighten the network load, speed up retrieval, and provide access behind firewalls.

GNU Wget2 is the successor of GNU Wget.

There are three methods to install wget2 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 wget2 Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install wget2

Install wget2 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install wget2

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

sudo aptitude -y install wget2

How To Uninstall wget2 on Debian 10

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

sudo apt-get remove wget2

Uninstall wget2 And Its Dependencies

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

sudo apt-get -y autoremove wget2

Remove wget2 Configurations and Data

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

sudo apt-get -y purge wget2

Remove wget2 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge wget2

Dependencies

wget2 have the following dependencies:

References

Summary

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