brew is a package management tools on MacOS. Similarly apt-get on or Ubuntu yum on RHEL / CentOS same.
- Make sure your Mac computer to install ruby:
ruby -v
ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]
- Access https://brew.sh/
- Copy the installation command on the page:
Wait for the installation to complete, then use thebrew -v
command to verify the installation was successful: