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.
Prerequisites
Before starting the installation of wget network utility using this tutorial you must have the following prerequisites.
Advertisement
- 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)"
Install wget
Now, execute the following command on the terminal to install brew on macOS.
brew install wget
Using 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