
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
Have Questions? Post them here!
- How to find path of file on Mac Terminal
- How to disable Siri on Mac Monterey
- [fix] macOS Ventura xcrun: error: invalid active developer path missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
- Select Line Number TextEdit on Mac
- Go to Specific file path using Mac Finder
- How to find Java HOME in Mac Terminal
- bash: command not found error [macOS Terminal Linux, Unix or Windows]
- Must Know Homebrew Commands for Mac/Linux Users
- How to Insert an Inverted Question Mark on Mac ¿
- Hide Keyboard Text Input Icon on macOS Ventura Menu Bar
- How to make macOS Terminal window Transparent (or Opaque)
- How to check of Updates on Microsoft Edge Browser on Mac (macOS)
- Limit scrollback rows in macOS Terminal
- How to identify installed Java (JDK) Version on macOS
- Keyboard Shortcut to delete a file on a Mac [Macbook]
- Open Docker from Terminal Command on Mac
- Installing MongoDB on Linux/Unix/macOS/Ubuntu
- How to take a screenshot on a Mac - updated for Ventura 13 [updated 2023]
- ls: .: Operation not permitted - Mac Terminal ZSH Error
- How to remove username from Mac Menu Bar?
- macOS Ventura XCode Command Line Tools Installation
- Where is .zshrc file located in macOS
- How to Show Path of Files or App in Mac Spotlight Search
- How to enable root user on Mac Terminal
- Install Java 17 (LTS) JDK on ARM based M1/M2 Mac Natively
- Convert Java Map Collection Object to JSON String using Jackson - Java
- How to connect to SFTP location using Terminal command - FTP
- How to add multiple spaces between html page text - Html
- Failed to load resource: net::ERR_CACHE_MISS PHP - PHP
- Facebook, Messenger, and Instagram down in many regions - UK, Europe, Australia - Facebook
- How to install Python on Ubuntu - Ubuntu
- Fix bash: script.sh: Permission denied Error - Bash
- Clear Screen shortcut macOS Terminal - MacOS