Wget is a useful network utility for downloading files from a remote server over various protocols. This tutorial will help you to install wget on macOS using brew.
Before starting the installation of wget network utility using this tutorial you must have the following prerequisites.
- Terminal: You must have Mac Terminal access and little knowledge about working with the terminal application.
- Homebrew: You must have Homebrew installed on your macOS. You can also use the below command to install brew.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Now, execute the following command on the terminal to install brew on macOS.
brew install wget
You can use wget in various ways. Below are 2 sample commands to download the remote archive file or website homepage.
wget http://example.com/file.tar.gz wget http://example.org