If you have an ARM-based M1 or M2 Apple Silicon Mac and want to install Brew (homebrew) follow the below steps,
- Open Terminal App,
- Now run the script:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Source: https://github.com/homebrew/install#uninstall-homebrew
- Now open .zshrc profile file to set brew PATH permanently,
nano ~/.zshrc
Add this line to the file export PATH=/opt/homebrew/bin:$PATH
- Now reload your shell: source ~/.zshrc
- Try running brew version command to see if got installed correctly.
% brew --version
Homebrew 3.5.10
Homebrew/homebrew-core (git revision ccafaef56d8; last commit 2022-09-04)
If the path is not set correctly or brew is not installed properly you will get an error like,
brew --version
zsh: command not found brew
Facing issues? Have Questions? Post them here! I am happy to answer!
More Posts related to macOS,
- How to list all users in Mac Terminal
- Docker Desktop needs privileged access macOS
- Mac: How to show count of files and folders in Finder
- How to Change Background Color TextEdit on Mac
- How to adjust MacBook Desktop icons size
- Test internet speed using macOS Terminal command
- How to change the default font and text size in Microsoft Excel for Mac
- How to install Java on macOS [Big Sur]
- How to come out of dquote prompt in Terminal - macOS/Linux
- How to Increase MacBook Trackpad Cursor Speed on macOS Ventura/Sonoma
- Fix: Microsoft Excel Quit Unexpectedly on Mac
- How to Adjust macOS System Font Size
- How to Quit Applications on Mac Using Terminal
- How to check zsh installed version using terminal
- Two Ways to Extract rar (*.rar) files on Mac
- How to Right Click on Mac Desktop?
- How to Add Brew to PATH M1/M2 Mac
- How to search (find) in macOS Terminal Console Text
- macOS 13 Ventura - The New About this Mac Window
- TextEdit Get the count of lines in a file
- How to run .sh file in Mac Terminal
- Google Search Hot Trends Screensaver for Mac OS X
- Check Reboot History Mac
- [Solution] Mac Update Stuck Preparing macOS Ventura 13.0 About 30 minutes remaining
- Display Safari URL address link on hover
More Posts:
- Run only a Single Unit Test using Gradle - Gradle
- [Fix] Microsoft Windows Store error 0x00000005 (Windows 8/10/11) - Windows
- How to install Yarn on Mac (macOS) - MacOS
- Share Story Feed on Facebook using URL - Facebook
- Transfer files between Android and Mac OS X using usb cable - Mac-OS-X
- Bash For Loop Example - Bash
- Java 8 - Convert List to Map Examples - Java
- How to convert Java String to byte[] Array - Java