Homebrew (brew) is the most popular package manager for macOS.
If you have purchased a new Mac or recently formatted it and want to install brew, follow the below easy steps.
Step 1: Open Terminal app
Step 2: Run the below command
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Step 3: Add brew to .zshrc profile
One the installation is completed just copy the lines next to "Run these two commands in your terminal to add Homebrew to your PATH" and run them in terminal.
==> Next steps:
Run these two commands in your terminal to add Homebrew to your PATH:
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/mac-user/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
Run brew help to get started
- Further documentation:
https://docs.brew.sh
Step 4: Test Brew Installation
Run brew version command to see if it is installed correctly.
% brew --version
Homebrew 4.0.19
Facing issues? Have Questions? Post them here! I am happy to answer!
Author Info:
Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.
Follow him on: X
You can also reach out to him via e-mail: rakesh@code2care.org
More Posts related to MacOS,
- How to show line numbers in Nano on Mac
- How to install Jupyter Notebook on macOS Sonoma
- How to Disable Remote Management using Mac Terminal
- Test internet speed using macOS Terminal command
- Docker Desktop needs privileged access macOS
- Google Search Hot Trends Screensaver for Mac OS X
- How to do calculations in Mac Terminal
- How to make TextEdit the default text Editor on Mac
- How to Show Full Website Address on Safari for Mac (Ventura/Sonoma)
- The Zsh Shell - Mac Tutorial
- Opening mac Terminal
- How to change the name of your Mac running on macOS Ventura 13
- How to find the Battery Cycle Count on macOS Ventura
- How to set an emoji as Zsh terminal prompt in macOS
- How to access Trash Folder using Mac Terminal Command
- macOS Ventura XCode Command Line Tools Installation
- Hide Bluetooth icon on Mac Menu Bar macOS Ventura 13
- How to run .sh file in Mac Terminal
- Terminal Command to get the list of available shells in macOS
- How to see Storage Information on macOS Ventura
- How to Go To /usr/local/bin on Mac Terminal?
- How to do screen recording on Mac
- How to Find File and Directory Size in Mac Terminal
- Open .bash_profile File in TextEdit using Terminal
- Remove Now Playing icon from macOS Big Sur Menu Bar
More Posts:
- 33: Python Program to find the current time in India (IST) - Python-Programs
- How to connect Relational and NoSQL databases with Spring Boot - HowTos
- Check If Python pip modules are outdated and New Version is Available - PIP
- Remove Now Playing icon from macOS Big Sur Menu Bar - MacOS
- Android Parsing Data for android-L failed Unsupported major.minor version 51.0 Error - Android
- How to Rename a file using Mac Terminal - MacOS
- Fix SharePoint Error - Unable to Display Named Item - SharePoint
- Read a file using Java 8 Stream - Java