This Article Clearly and Simply Shows How to Install and Setup Homebrew on macOS.
It is a Basic Task but Ofter some Details are Granted as Known from Everybody …
The Homebrew Tool is Very Useful if you Want to Easily Extend the Mac Software Library fishing on the Unix Aquarium the Nice Stuff!
The content and details are expressly reduced to give Focus only to the Essentials Instructions and Commands and Make the Tut Easier to Understand ;)

-
Open a Terminal Window
(Press “Enter” to Execute Commands)Applications >> Utilities >> Terminal.
-
Login as SuperUser
sudo su
If Got “User is Not in Sudoers file” then see: How to Enable sudo
-
Move to the Target Directory
cd /usr/local
-
Install Homebrew
mkdir homebrew && curl -L https://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C homebrew
If Not XCode Installed then Install Mac Command line Tools:
Mac Command-Line-Tools