13 C
Texas

How to install Wget in Windows 10

Hello, how are you? This time we’re going to talk about Wget. It is a tool created by the GNU Project. Its main purpose is to get content and files from different web servers. Besides, it supports downloads via FTP, SFTP, HTTP, and HTTPS. Its features include recursive download, conversion of links for offline viewing of local HTML, and support for proxies. It is a widely known program in Linux environments, since its appearance in 1996. However, it can also be ported to Windows, where its use is not well known. For that reason, we will see how to install and use Wget in Windows 10.

Installing Wget in Windows 10

Wget is a free tool and relatively simple to install in a Linux environment. Just type the appropriate commands to each distribution, and you’re done. However, when it comes to Windows, the situation changes. There are many installers and options that end up with installation errors. However, we’ve got this version that works properly. Go to this link and download version 1.11.4-1

Download 1.11.4-1 version
Download 1.11.4-1 version

Next, we proceed to run the installer. Just double click and the wizard will start, press next to continue:

Wget setup wizard
Wget setup wizard

Then accept the license terms, and click Next to continue the installation.

Accept the agreement of license
Accept the agreement of license
- Advertisement -

Select the folder where the program will be installed. Click next to continue the installation.

Select destination location
Select destination location

Next, select the components to install. To ensure proper operation, check both boxes and press Next to continue the installation.

Select the components to install
Select the components to install

Next, you can create direct access to the application and its respective location

Adding a shortcut folder
Adding a shortcut folder

You can install additional icons. Click Next to continue

Select additional tasks
Select additional tasks

Verify the installation options and press Install to finish the process.

Ready to install
Ready to install

Once the installation is finished, we will see the following screen.

successful installation
successful installation

Using Wget in Windows 10

Please note that Wget does not have a graphical interface, so you will have to use it through command in the CMD. To check that the program is actually installed, please go to the installation directory. Depending on the installation options selected, it should be as follows:

C:\Program Files (x86)\GnuWin32\bin

What we need to do is open a command prompt. With this intention, press the Win+R combination and type CMD

Run a CMD

Once there, use the CD command to navigate to the file location mentioned above. Then type Wget to use the program.

Wget in action
Wget in action

Add environment variable

We have correctly installed Wget. However, to be able to use it we always have to navigate to the installation folder of the program. This is cumbersome, so if we want to use Wget from any directory, we need to add an environment variable. With this in mind, please follow this path: Control Panel>System and Security>System>Advanced system settings

Enter in Advanced system settings
Enter in Advanced system settings

On the next screen, choose Environment Variables

Select Environment Variables
Select Environment Variables

Next, we are going to create a new environment variable. With that intention, please select Path and press Edit.

Creating a new Environment Variable
Creating a new Environment Variable

On the next screen first select New, then Browse. You must select the address where the program is installed.

Setting the new path
Setting the new path

Press ok in each of the open windows, and we can run Wget every time we open a Command Prompt. It doesn’t matter which directory we’re in. Let’s test the Wget command, downloading its executable for windows 10. With this intention, we enter this command in the CMD

wget https://sourceforge.net/projects/gnuwin32/files/wget/1.11.4-1/wget-1.11.4-1-setup.exe/download
Wget downloading a file
Wget downloading a file

Using Wget in Windows Subsystem for Linux

We have already seen how to use bash in windows 10. Through WSL we can also use Wget natively. To do this, we’ll open ubuntu and run the following command:

 sudo apt-get install wget 

Enter your password, and wait while the program is installed. Now we are ready to use wget in Windows 10.

Wget en WSL
Wget en WSL

Finally, we have seen how to install Wget in Windows 10. We can do it natively or using the Windows Subsystem for Linux. Both methods are valid for using this powerful download tool. Not only will we have access to files, but also to complete pages so that they can run offline. All right, that’s it for now, if you have any questions, don’t hesitate to ask. We are here to serve! until next time!

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article