How to install wget on Debian 12

H
Downloading the files on Linux systems, including Debian 12, is a straightforward task if you're using the GUI version of the operating system. However, if you are using the Lite operating system version then it will be difficult, because in that case, you are left with no option but to use the terminal to download files from the internet. To make this thing happen, Forget Command is used. It is a lightweight utility that allows Linux users to download files from the internet at quick speed and provides multiple options to download files as per your needs.

In this guide, you will find:

How to install wget on Debian 12

As a default, Forget Installed in Debian 12, however, if you accidentally removed this utility from your system, run the following command to reinstall it:

How to use wget on Debian 12

you can use Forget There are various ways to perform downloading on Debian 12, some of which are given below:

How to Download a File on Debian 12 with the wget Command

You can download any file from the Internet directly from the terminal on Debian 12 Forget Permission. You just need to add the URL of the file after this Forget Command with the following syntax:

How to download a file to specific location on Debian 12 with wget command

As a default, Forget The utility downloads the file to the default user location, however, you can specify the location of your choice by adding -P flag. You need to add the flag right after this Forget command then add the directory location where you want to save your file. then add url The file you want to download.

Here, in the below command, I am downloading discord in debate file download Directory:

sudo Forget -P ,Home,linux,download, https:,dl.discordapp.net,Apps,linux,0.0.39,discord-0.0.39.deb

How to download a file with a specific name on Debian 12 with the wget command

You can also specify the file name in addition to downloading it with the default name, this can be done by adding -O flag then specify the file name url of the file you want to download.

Here the discord file is downloaded with the common name given below discord-latest On Debian:

sudo Forget -O discord-latest https:,dl.discordapp.net,Apps,linux,0.0.39,discord-0.0.39.deb

How to download a file with a limit rate on Debian 12 with the wget command

You can also change the file downloading limit rate on Debian 12 using Forget Permission. This can be done by adding -limit rate Keyword, then add limit rate in MB url To start downloading the file on Debian:

Here, the following command will download discord File on Debian 12 with limit rate of 1.5MB:

sudo Forget –limit rate 1.5m https:,dl.discordapp.net,Apps,linux,0.0.39,discord-0.0.39.deb

How to download a file with wget command after interruption on Debian 12

You can also download the file from where it is stopped due to some interruption Forget Permission. This can be done by adding -C Flag following URL to download that specific file on Debian:

Forget -C https:,dl.discordapp.net,Apps,linux,0.0.39,discord-0.0.39.deb

How to download multiple files with wget command on Debian 12

you can also use Forget Commands on Debian 12 to download multiple files at once from the Internet. You can do this process using the steps given below:

step 1: First create a text file using the nano editor on Debian 12:

step 2: Then add the URLs of the files you want to download, making sure each line of the text file contains a URL:

step 3: Now save using text file CTRL+XAdd Y and press enter To exit.

step 4: then use Forget Command with -i flag followed by file name that contains multiple URLs:

This will start downloading multiple files onto your Debian system.

Bonus Method: How to Install wget2 on Debian 12

wget2 is an improved version of Forget Which makes downloading faster and includes features like HTTP/2 support, better compression handling, and more. Since it is currently in development mode, it is not pre-installed in Linux systems, including Debian 12. However, if you want to try it, you can install wget2 On Debian 12 by the following command:

sudo apart to install wget2 -y

Then use the following command to confirm wget2 Version on Debian:

Comment: Process of downloading files using wget2 is similar to the command Forget Permission. you have to change yourself Forget with wget2 In the commands given in the above section of this guide.

conclusion

Forget There is a powerful command-line utility for downloading files from the Internet to the terminal. It is preinstalled in Linux systems including Debian 12, however, if accidentally uninstalled, you can install it from appropriate installation Permission. In this guide, we have explained its installation and usage in detail. Forget Command on Debian 12. Following this guide, you will be able to download files with specific name along with the default name, download the file again after interruption and download multiple files at once on Debian 12.

Add comment

By Ranjan