$ /usr/bin/ruby -e '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)'
$ brew install wget
$ /usr/local/bin/wget url
$ /usr/local/bin/wget url/file.tar.gz
$ /usr/local/bin/wget https://www.cyberciti.biz/
$ xcode-select --install
$ cd /tmp
$ curl -O http://ftp.gnu.org/gnu/wget/wget-1.15.tar.gz
$ ls -l
$ tar xvf wget-1.15.tar.gz
$ cd wget-1.15
$ ./configure --with-ssl=openssl
$ make
$ sudo make install
$ whereis wget
$ type -a wget
export PATH=${PATH}:/usr/local/bin
wget url
wget http://www.cyberciti.biz/
wget ftp://url/
$ wget --version
### Step #1: Grab and install latest openssl version 1.19.1 using source code ###
$ cd /tmp/
$ curl -O https://www.openssl.org/source/openssl-1.1.0e.tar.gz
$ tar -zxvf openssl-1.1.0e.tar.gz
$ cd openssl-1.1.0e
$ ./config
$ make
$ sudo make install
### Step #2: Grab and install wget version 1.19.1 using source code ###
$ cd /tmp
$ curl -O http://ftp.gnu.org/gnu/wget/wget-1.19.1.tar.gz
$ tar -zxvf wget-1.19.1.tar.gz
$ cd wget-1.19.1
$ export OPENSSL_CFLAGS='-I/usr/local/include'
$ export OPENSSL_LIBS='-L/usr/local/lib -lssl -lcrypto -lz'
$ ./configure --with-ssl=openssl
$ make
$ sudo make install
$ /usr/local/bin/wget url