gogoWebsite

Installation and use of wget (Windows)

Updated to 4 months ago

catalogs

I. Proper installation!!! (see here for direct installation)

II. Download and installation of wget (wrong installation)

1.Download

2. Installation

3. Configuration environment

4. Verify successful installation

5. Possible problems

III. Uninstallation of wget

IV. Use of wget


We recommend reading the following before installing !!!!

The first chapter is the method I tried to install correctly, the installation method in the second chapter is the method I tried and failed to work, and the third chapter records the uninstallation method of the installation method in the second chapter. The third chapter records the uninstallation method of the installation method of chapter 2 as a warning.

I. Proper installation!!! (see here for direct installation)

Go to that URL and download the binary:GNU Wget 1.21.3 for Windows

Note: It's important to choose 32-bit or 64-bit depending on your computer!

I downloaded this one, FYI

Then you will get a folder in .zip format

Unzip it. Unzip it wherever you want.

There's all this stuff in there.

Then it will be copied under C:\Windows\System32 like so

Then win+R→cmd

Type in wget and the following screen appears to indicate successful installation

II. Download and installation of wget (wrong installation)

Previously, also according to other authors carried out the following installation, but I did not succeed, I was told that it does not work anymore, but the method in the first chapter was tested successfully. The third section is attached to the uninstallation of this method of installation.

1.Download

wget download link:Wget for Windows ()

Once on the page, click on this link to download the wget

After entering the interface, click download to download the file

Download to get the .exe file

Right click to run as administrator and start the installation

2. Installation

It's all the way down to next.

This installation directory can be changed, installed to the location you want to install, and remember this location, you need to add the environment later!

 

 

 

3. Configuration environment

(1) New system variables

This computer→Properties→Advanced System Settings→Environmental Variables→System Variables→New

Variable name: GNU_HOME

The value of the variable is the path where your wget is installed.

 (2) Add environment variables

System Variables→Edit→New→Enter Environment→OK

Environment: %GNU_HOME%\bin

4. Verify successful installation

Win+R→cmd→enter the following command

A string of commands appears indicating successful installation

wget --help

5. Possible problems

The following problems may also occur

Tried a few methods:

cd to this location and run the command doesn't work

cd C:\Windows\System32

III. Uninstallation of wget

I'm sure you've stepped in the pits and you've installed a wget that doesn't work, and since it doesn't work, we're going to uninstall it!!!!

Right-click Run.exe

Okay, uninstalled.

 

Remember to delete all the environments you just configured!!!!

IV. Use of wget

Suggested reference to this blogger:Use of wget

I have a small drive, so I need to download the files to a directory with a large drive.

wget -P directory address download address

wget -O Rename

Note: directory address can not have Chinese, spaces, otherwise it can not be resolved

Refer to this blog if you don't understand:Specify the download directory

  •  wget -i

This command is often used in the case of batch downloads, where you put the addresses of all the files you want to download into and then wget will automatically download all the files for you.