How to install homebrew (brew) on M1 Mac

Homebrew now provides native support for MacBooks with M1 Silicon, installing brew on macOS Big Sur is simple, just open terminal and run the below command,

/bin/bash -c "$(curl -fsSL"

You will be prompted to enter password when you run the command and all required tools and packages will be installed.

Installing homebrew M1 Mac
Installing homebrew M1 Mac
code2care@mac / % /bin/bash -c "$(curl -fsSL"


==> This script will install:

==> The following new directories will be created:
==> The Xcode Command Line Tools will be installed.

Press RETURN to continue or any other key to abort

 * [new tag]             3.0.0                                               -> 3.0.0
HEAD is now at 3bcd919a7 Merge pull request #10578 
from MikeMcQuaid/formula_bottle_hash
==> Tapping homebrew/core
remote: Enumerating objects: 39, done.
remote: Counting objects: 100% (39/39), done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 906603 (delta 21), reused 26 (delta 13), pack-reused 906564
Receiving objects: 100% (906603/906603), 360.00 MiB | 916.00 KiB/s, done.
Resolving deltas: 100% (617458/617458), done.
 * [new branch]      master     -> origin/master
HEAD is now at f1b2a2e9b3 ffmpeg: update 4.3.1_9 bottle.
Warning: /opt/homebrew/bin is not in your PATH.
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
No analytics data has been sent yet (or will be during this `install` run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:

==> Next steps:
- Add Homebrew to your PATH in /Users/code2care/.zprofile:
    echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> /Users/code2care/.zprofile
    eval $(/opt/homebrew/bin/brew shellenv)
- Run `brew help` to get started
- Further documentation:

Make sure you add the brew installation dir to PATH: Follow this article to do so:

Try Out Code2care Dev Tools:


Android Java Linux Microsoft Google Python macOS Notepad++ Microsoft Teams CSS PHP SharePoint Html Linux C Programs Bootstrap jQuery Sublime Android Studio Facebook Eclipse WhatsApp News MySQL Json HowTos JavaScript FTP S3


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, Tutorials, Trouble-Shooting steps, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.
🎉 We are celebrating the 10th years of Code2care! Thank you for all your support! We hope we made a difference.
We strong support Gender Equality & Diversity.

We stand in solidarity with Ukraine - Make a donation to UNHCR -