How to install wget on macOS

To install wget on macOS you can make use of the brew installer,

Run the below command to install wget,

% brew install wget
Command Output:
==> Downloading

Already downloaded: /Users/code2care/Library/Caches/Homebrew/downloads/3a61b127a2161ac4573557b1c9b6e48233fd658b3f1d349045914749115926c9--wget-1.21.1-1.bottle_manifest.json

==> Downloading

Already downloaded: /Users/code2care/Library/Caches/Homebrew/downloads/a9d50518f3f84743b3c6a198585bee715883810e86d637443c5369861854bf63--wget--1.21.1.arm64_big_sur.bottle.1.tar.gz

==> Pouring wget--1.21.1.arm64_big_sur.bottle.1.tar.gz
🍺  /opt/homebrew/Cellar/wget/1.21.1: 88 files, 4MB

If you want to uninstall wget use the command,

% brew uninstall wget
Uninstalling /opt/homebrew/Cellar/wget/1.21.1... (88 files, 4MB)

Warning: The following may be wget configuration files and have not been removed!
If desired, remove them manually with `rm -rf`:

Recent Posts:

Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.