Skip to content

How to Install wget on MacOS

Category
macOS
Versions & support
About macOS →
On this page

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.

  • 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

Rahul

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

Leave a Reply

Your email address will not be published. Required fields are marked *


Back to top