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

Поділитися
Вставка
  • Опубліковано 21 лис 2023
  • 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
    /bin/bash -c "$(curl -fsSL raw.githubusercontent.com/Hom...)"
    ```
    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

КОМЕНТАРІ • 72

  • @victoriasamson4502
    @victoriasamson4502 3 місяці тому +2

    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 ❤

  • @adityaathiratha6104
    @adityaathiratha6104 6 місяців тому +1

    Thanks alot. Worked Step-by-step

  • @AnkitKumar-jo1wy
    @AnkitKumar-jo1wy 2 місяці тому +2

    Awesome, Nicely explained each and every step 😍

  • @memoriafiq
    @memoriafiq 4 місяці тому +1

    thanks for this tutorial! managed to fix the issue.

  • @charlieplasman6140
    @charlieplasman6140 5 місяців тому +1

    So helpful, thanks a lot for this gem !

  • @sadikmemon371
    @sadikmemon371 2 місяці тому

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

  • @estevaosobral5560
    @estevaosobral5560 4 місяці тому

    Great job, you help me a lot, thank you!

  • @javiers.996
    @javiers.996 4 місяці тому +1

    Very helpful my friend.
    Greetings from Mexico.

  • @andrewcroxall1416
    @andrewcroxall1416 5 місяців тому +2

    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.

  • @juanaguirre3702
    @juanaguirre3702 29 днів тому

    Exactly what I needed. Thanks

  • @omarawil3544
    @omarawil3544 4 місяці тому

    bro thanks you’re a time saver ❤

  • @DangGina
    @DangGina 6 місяців тому

    Perfect. Thank you so much.

  • @frankulives5932
    @frankulives5932 4 місяці тому

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

  • @JRTO_X
    @JRTO_X 5 місяців тому

    Very helpful thank you.

  • @SappyVespidae
    @SappyVespidae 2 місяці тому

    It worked!! Thank you so so much!!

  • @saqlainsiddiqi
    @saqlainsiddiqi 5 місяців тому

    Thank You for the help.🤩

  • @seanshah1651
    @seanshah1651 2 місяці тому

    Thank you for your guide

  • @aitemirturatbekov2742
    @aitemirturatbekov2742 2 місяці тому

    oh bro thank u sooo much for tutorial
    i did all step by step and i made it

  • @majaullt
    @majaullt 4 дні тому

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

  • @venugopal1831
    @venugopal1831 2 місяці тому

    Superb sir thank you sort it out problem

  • @EmmanuelPableo
    @EmmanuelPableo 15 днів тому

    great help, thank you

  • @fozhan
    @fozhan 7 місяців тому

    thanx mate it worked!!

  • @Stanley-24
    @Stanley-24 2 дні тому

    Thank you so much brother

  • @MrPixls
    @MrPixls 7 місяців тому

    you is a hero, thank you

  • @mariana_stashkiv
    @mariana_stashkiv 5 місяців тому

    Thank you so much 🙂

  • @dungnguyen-si2sz
    @dungnguyen-si2sz 2 місяці тому

    my kinggggg, thank you so muchhhh

  • @matiasperezlavooy6363
    @matiasperezlavooy6363 5 місяців тому +1

    TE AMO MI AMIGO. BENDICIONES

  • @aliteraphassane
    @aliteraphassane 4 місяці тому

    Thanks a lot !

  • @devBotPlus
    @devBotPlus 3 місяці тому

    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

  • @arding9848
    @arding9848 5 місяців тому

    thank you!

  • @tonytony-fc6gq
    @tonytony-fc6gq 2 місяці тому

    THANK YOU THANK YOU very much

  • @clar331
    @clar331 6 місяців тому

    worked perfectly, thank you :)!

    • @issansabimana5122
      @issansabimana5122 6 місяців тому

      Hello how did you put your password? cuz I tried to tap my password but I don't see anything

    • @clar331
      @clar331 6 місяців тому

      @@issansabimana5122 I just typed it in, youre not going to see any characters then press enter

    • @omarawil3544
      @omarawil3544 4 місяці тому

      @@issansabimana5122when the password pops up just type your password

  • @AnimasaunOladipupo
    @AnimasaunOladipupo 6 місяців тому

    Can't find the link you said you would give.... I'm stuck at the zshrc file 😢

  • @yassinadaou
    @yassinadaou 5 місяців тому

    I have a M2 and I get this error: Homebrew on Linux is not supported on ARM processors. what do I need to do to make it work?

  • @kxander8108
    @kxander8108 2 місяці тому

    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.

  • @sushmeetsase985
    @sushmeetsase985 20 днів тому

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

  • @navysen6570
    @navysen6570 6 місяців тому

    You saved my life man 🙏

    • @issansabimana5122
      @issansabimana5122 6 місяців тому

      Hello how did you put your password? cuz I tried to tap my password but I don't see anything

    • @reymundoalvarez380
      @reymundoalvarez380 5 місяців тому

      Password is hidden

  • @carolinapatricia7313
    @carolinapatricia7313 5 місяців тому

    thank u!!!

  • @DesignbyBK
    @DesignbyBK 6 місяців тому

    thanks for the help!

    • @issansabimana5122
      @issansabimana5122 6 місяців тому

      Hello how did you put your password? cuz I tried to tap my password but I don't see anything

    • @DesignbyBK
      @DesignbyBK 6 місяців тому

      @@issansabimana5122 When you put password in terminal you don't see anything. You just put password that you use to put on a lock screen of your mac. This could be different from your apple id.

    • @DesignbyBK
      @DesignbyBK 6 місяців тому

      @@issansabimana5122 while you'd type your password the prompt would remain blank. Once you've wrote the password just hit enter/return key.

  • @Iamlordmanu
    @Iamlordmanu 3 місяці тому

    once i input the code source .zshrc its says unmatched why?

  • @JohnSmith-lu4me
    @JohnSmith-lu4me 2 місяці тому

    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!

  • @user-ky4zv1sk1f
    @user-ky4zv1sk1f 4 місяці тому

    thanks

  • @CyouNtee
    @CyouNtee 2 місяці тому

    Noob here. Seeing all the hidden files on the home directory scared me. If i want to uninstall zsh is there a safe way to uninstall the files from the directory?

  • @khangluonguc1616
    @khangluonguc1616 6 місяців тому

    great. Thank you so much.

    • @issansabimana5122
      @issansabimana5122 6 місяців тому

      Hello how did you put your password? cuz I tried to tap my password but I don't see anything

    • @khangluonguc5187
      @khangluonguc5187 6 місяців тому

      That's right, Apple's mechanism will not see the password when you type it into the terminal.@@issansabimana5122

  • @Exdindia22
    @Exdindia22 Місяць тому

    After typing source .zshrc i get this .zshrc:export:1: path: inconsistent type for assignment

  • @chabachu
    @chabachu 7 днів тому

    6:37 when I do source .zshrc ENTER I get .zshrc:1: command not found: exporte, why is that? Anybody would help it is appreciated.

  • @maelg3943
    @maelg3943 Місяць тому

    the best

  • @merchbyyoussef3099
    @merchbyyoussef3099 13 днів тому

    first try bro . ur are the one

  • @Krish-zx5rh
    @Krish-zx5rh 8 місяців тому

    Bro i need ur help

  • @AnimToonDK-uv2hn
    @AnimToonDK-uv2hn Місяць тому

    I have stuck in source .zshrc ..... please I need a replay first

  • @marinamartinez6743
    @marinamartinez6743 4 місяці тому

    te tqm mucho

  • @e4stark
    @e4stark 6 місяців тому

    Golden

  • @alexwaterson-rosso2676
    @alexwaterson-rosso2676 7 місяців тому

    It worked!!!!!!!!!!!

    • @issansabimana5122
      @issansabimana5122 6 місяців тому

      Hello how did you put your password? cuz I tried to tap my password but I don't see anything

    • @reymundoalvarez380
      @reymundoalvarez380 5 місяців тому

      Hidden password is blank

  • @Krish-zx5rh
    @Krish-zx5rh 8 місяців тому

    On old video

  • @nnnnnnnin
    @nnnnnnnin 6 місяців тому

    This is the video which only helps you if you have m2/m3 macbook.

  • @user-vx7im2os7k
    @user-vx7im2os7k 2 місяці тому

    🎉

  • @ElevateWithSierra
    @ElevateWithSierra 3 дні тому

    not the termilolol @ 1:28

  • @Krish-zx5rh
    @Krish-zx5rh 8 місяців тому

    On telegram

  • @wilsonliang1453
    @wilsonliang1453 3 місяці тому

    thank you!