How to Download Wget for Mac without Homebrew

Hongtao Hao / 2020-10-07


There are four ways to download Wget :

  1. Via Xcode .

However, Xcode takes up more than 10 GB when installed. I don’t think it’s worth it to download Xcode simply for Wget.

  1. Official website of Gun

I tried to download wget2-1.99.2.tar.gz from https://ftp.gnu.org/gnu/wget/ which I got from https://www.gnu.org/software/wget/ .

cd ~/Downloads
curl -O https://ftp.gnu.org/gnu/wget/wget2-1.99.2.tar.gz
tar -zxvf wget2-1.99.2.tar.gz
cd wget2-1.99.2/
./configure
make
make install
wget http://ftp.gnu.org/gnu/wget/wget-1.19.5.tar.gz

However, errors occured. According to this article , it seems I have to install Xcode first; otherwise running ./configure won’t be successful.

  1. Brew

A more detailed answer is here by Farsheed and edited by gagarine . I didn’t have Homebrew installed, so I have to find another way.

  1. MacPorts

A more detailed answer is provided here by Farsheed and edited by gagarine .

I downloaded Macports first and then downloaded Wget from it. It worked.

Last modified on 2020-10-08