MINGW64 bash: wget: command not found

Solution 1:

This will be helpfull article.

https://gist.github.com/evanwill/0207876c3243bbb6863e65ec5dc3f058

The basic idea is that C:\Program Files\Git\mingw64\ is your / directory according to Git Bash (note: depending on how you installed it, the directory might be different. from the start menu, right click on the Git Bash icon and open file location. It might be something like C:\Users\name\AppData\Local\Programs\Git, the mingw64 in this directory is your root). If you go to that directory, you will find the typical linux root folder structure (bin, etc, lib and so on). If you are missing a utility, such as wget, track down a binary for windows and copy the files to the corrisponding directories. Sometimes the windows binary have funny prefixes, so you should rename the exe file to the standard name. Since bin is on the PATH, it will be automatically available to Git Bash.

It isn't easy. You have to find, download and copy to any global directory tools compiled for Windows environment (*.exe files like wget.exe) You can copy them to C:\Program Files\Git\mingw64\bin or any other directory listed in your system or user PATH variable to have global acccess to these files.

Solution 2:

Download the wget.exe file from your source, ie eternallybored

Then you downlaod and extract the Zip to a folder, in my case I keep all my resources in c:\Tools so I extracted it to C:\Tools\wget\ and then you should create a user variable for the exe.

So open start menu and search variables, open the link for "Edit System Environment Variables" and add a new user variable (I called it "WGET_HOME" and its value the directory "C:\Tools\wget" ).

Finally select the "PATH" variable and append to the list follwoing a ";" "%WGET_HOME%" and OK your way back.

Then after closing all open MinGW you will be able to use wget.