macOS Install wget network downloader utility

‮www‬.lautturi.com
macOS Install wget network downloader utility

To install wget on macOS, you will need to have root privileges or access to a user with sudo privileges.

  1. First, make sure that you have the Xcode command-line tools installed. You can check if they are already installed by running the following command:
xcode-select --version

If the command-line tools are not installed, you can install them by running the following command:

xcode-select --install
  1. Install Homebrew, a package manager for macOS, by running the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
  1. Once Homebrew is installed, you can use it to install wget. Run the following command:
brew install wget
  1. Once the installation is complete, you can start using wget. To download a file using wget, run the following command:
wget URL

Replace "URL" with the URL of the file that you want to download.

That's it! Wget should now be installed on your macOS system. You can use it to download files from the Internet.

Note: If you prefer, you can install wget using the "curl" command instead of Homebrew. To do this, run the following command:

curl -O URL

Replace "URL" with the URL of the wget binary. This will download the wget binary and save it to the current directory. You can then make the binary executable and move it to a directory in your PATH, such as /usr/local/bin. For example:

chmod +x wget
sudo mv wget /usr/local/bin

This will allow you to run wget from any directory.

Created Time:2017-10-30 10:17:55  Author:lautturi