GNU wget package is a free command-line tool that allows you to download single or multiple files from the web. It offers different options that allow you to download multiple files using HTTP, HTTPS, and FTP protocols, resume the download process, limit bandwidth, mirror websites, download in the background, etc.
In this tutorial, we will explore how to install wget package on Debian 11 bullseye distribution.
When you install a package on your system using the `wget` command and you see the following message on the terminal.
Bash: wget command not found
It means the `wget` command is not installed on your system. In this case, you need to install the `wget` package on your system to resolve this error.
Steps to install wget on Debian 11
The following steps we can perform for the installation of wget on Debian 11 system:
Step 1: Update system apt repositories
Update the system packages index files by using the following command:
$ sudo apt-get update
It is recommended, always keep the newest version of an application in your system. So, you can upgrade the installed packages using the following command:
$ sudo apt upgrade
Step 2: Find information about the wget package
First, search for the `wget` package by using the `apt-cache` command:
$ sudo apt-cache search wget
You can also directly retrieve the information about the wget package by using the following command:
$ sudo apt info wget
$ sudo apt-cache show wget
Step 3: Install Wget on Debian
Install the `wget` package by using the following command:
$ sudo apt-get install wget
Uninstall wget from Debian
You can also remove or uninstall the `wget` command by running the following command:
$ sudo apt-get remove wget
How to use the Wget command?
The wget command allows you to download a package or utility through the command line. The syntax if the wget command is :
$ wget [options] URL
We explained in this tutorial how to install wget command on Debian 11 bullseye distribution. Moreover, we noticed how to use the wget command and get package information. Using the wget command, you can download a single or even multiple files at a time through a command line. You can get more information about the wget command by visiting the official GNU website.