Hey everyone! I just installed Homebrew on my MacBook Air M1 after following a YouTube tutorial. The installation appeared to be successful, as confirmed by Terminal. However, I am unsure how to proceed, how do I run Homebrew? I do not see an application to open.
How to run Homebrew after installing it on a MacSolved
Tags
Replies (3)
Hello, @gnishilda. Homebrew is a command-line tool, meaning it does not have a Graphical User Interface (GUI). Instead, it is accessed through Terminal and is primarily used to install, update, and manage software efficiently.
To verify your installation and view available commands, open Terminal and run:
1 |
brew -h |
This will display a list of Homebrew commands.
To install an application using Homebrew, use the following syntax:
1 |
brew install “applicationname” |
For example, to install Visual Studio Code, run:
1 |
brew install --cask visual-studio-code |
Hello, @gnishilda! Since you have successfully installed Homebrew, could you share the steps you followed? I am encountering errors while attempting to install it on my M1 Mac.
Hello @clauss, certainly! Installing Homebrew on an M1 Mac is an easy process. Please follow these steps:
- Open Terminal and execute the following command to install Homebrew:
code11/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- If you receive a warning stating that /opt/homebrew/bin is not in your PATH, you will need to update your shell configuration:
- Create a .zshrc file in your home directory:
code21touch ~/.zshrc
- Add the following line to the end of the file:
code31export PATH=/opt/homebrew/bin:$PATH
- Save the file and reload your shell by executing:
code41source ~/.zshrc
- To confirm that Homebrew is installed, run:
code51which brew
Open the .zshrc file using a text editor (as it is a hidden file, you can reveal hidden files in Finder by pressing Shift + Command + .).
- Create a .zshrc file in your home directory:
If the command outputs the location of the active Homebrew, the installation is successful. Let me know if you require any further assistance.