How to Install Homebrew in a right way for Mac (macOS M1/M2/M3) With zsh

preview_player
Показать описание
Installing Homebrew on your Mac is a fantastic way to simplify package management and enhance your experience with additional software. In this step-by-step tutorial, we'll guide you through the process of installing Homebrew on macOS using the zsh shell. Whether you're new to Mac or a seasoned user, this guide is designed for everyone.

**1. Open Terminal:**
Begin by opening the Terminal on your Mac. You can find it by searching for "Terminal" in Spotlight or navigating to Applications - Utilities - Terminal.

**2. Install Homebrew:**
Paste the following command in the Terminal and press Enter to start the Homebrew installation:

```bash
```

This command will download and execute the Homebrew installation script.

**3. Follow the On-Screen Instructions:**
During the installation, you may be prompted to install the Xcode Command Line Tools. Follow the on-screen instructions to proceed with the installation.

**4. Add Homebrew to zsh Profile:**
If you're using the zsh shell, you need to add Homebrew to your zsh profile. Open your zsh configuration file by running:

```bash
nano ~/.zshrc
```

Add the following line at the end of the file:

```bash
eval "$(/opt/homebrew/bin/brew shellenv)"
```

Save the file and exit by pressing `Ctrl + X`, then `Y`, and finally `Enter`.

**5. Restart zsh or Source the zshrc File:**
Restart zsh or source your updated zsh configuration by running:

```bash
source ~/.zshrc
```

**6. Test Homebrew Installation:**
To ensure Homebrew is installed correctly, run:

```bash
brew --version
```

This should display the version number of Homebrew, indicating a successful installation.

Congratulations! You've successfully installed Homebrew on your Mac using the zsh shell. Now you can use Homebrew to easily install and manage various packages and software on your macOS system.

Don't forget to like this video, share it with others who might find it helpful, and subscribe for more Mac-related tips and tutorials!

**Hashtags:**
#MacUsers #Homebrew #MacOS #TechTutorial #TerminalCommands #PackageManagement #TechForEveryone #ZshShell #TechGuide #DigitalProductivity #TechHelp #MacOSGuide #CommandLineTools #TechSolutions #MacApps #TechEnthusiast #HomebrewInstallation #ZshProfile #TechDIY #SoftwareManagement
Рекомендации по теме
Комментарии
Автор

You’re genius, I’m zero knowledge but you helped me with your simple steps but effective and I finally got it. Thank you very much and please keep it up ❤

victoriasamson
Автор

Literally just self starting coding and came across your vids, no experience what so ever
I load visual studio stuff in a fashion, then home brew, you have to listen. I put a path insted of export $PATH in the command line, but I realise I can change it in command. line so I didn't keep getting INCONSISTENT TYPE FOR ASSIGNMENT NOW homebrew installed thank you love the video keep it up with other stuff like this how to load up the packages etc. I if I can do it at age 59, get the picture and I don't have that much computor experience. I just play video over and over rewind rewind you will get it.

andrewcroxall
Автор

Awesome, Nicely explained each and every step 😍

AnkitKumar-jowy
Автор

Great explanation Cheers. In addition please do read the WARNING note if you get it as you may need to change your file path if this video doesnt work for you. It will read - Warning: /opt/homebrew/bin is not in your PATH.
Instructions on how to configure your shell for Homebrew can be found in the 'Next steps' section below.

kxander
Автор

Dude this guy is awesome, its working!

ceyda
Автор

Thank you so much!!! Really appreciated!!

willliu
Автор

Thank you very much Sr you're the best!

ManuelLopez-bmbp
Автор

Thank you my man, i spent way too much time trying to figure out why its not working!

frankulives
Автор

I have a question, you say that the line from your video to put in the file .zshrc is in the video description, but the lines are different. Is there a reason for the difference? Is one of them incorrect? Please let me know because I am completely new to homebrew and I don't know what to do.

JoshBartKzTSIS
Автор

Very helpful my friend.
Greetings from Mexico.

javiers.
Автор

Do you know about zsh bus error during run the example of geant4 toolkit program, please?

sarahabdelaziz
Автор

im new to mac thank you for your tutorial, so helpfull

nanamochi
Автор

everything worked out but final command brew help did not executed.
using MacBook m3 pro chip
please help

sushmeetsase
Автор

oh my gosh, thank you so much for this video i felt like i was going crazy

majaullt
Автор

thanks for this tutorial! managed to fix the issue.

memoriafiq
Автор

i simply installed homebrew and used the command for installing vs-code . it took arround 20 mins to completely download the vscode . is there anything wrong ? should i be worried ? i was doing this in new m3 air . plz help !

RavinderSingh-fb
Автор

So helpful, thanks a lot for this gem !

charlieplasman
Автор

Hi thanks for the video, Don't you think the we should run the two commands suggested by homebrew installation at the end, that would have done the job. what is the difference between .zprofile and .zshrc

devBotPlus
Автор

You are great, very easily you guided and its done for me, Thanks a lot

sadikmemon
Автор

Is it possible to install homebrew on External SSD drive? I'm using MAC Mini M1. Please let me know, I need an answer. Thank you!

JohnSmith-lume