Learning and Sharing
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
No Result
View All Result

How to Download and Install Homebrew on macOS

November 17, 2022
in Blog, macOS
0
ADVERTISEMENT

Table of Contents

1. Open up a Terminal window. You can find the Terminal app in either the Utilities folder or the Applications folder or search in the Spotlight. Then execute the following command:

url='https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh'
/bin/bash -c "$(curl -fsSL $url)"

2. The installation process will prompt for the password. Just enter your password where required to complete the Homebrew installation. The process will take some time.

Note Note: On an M1-based Mac, you might need to go through an additional step to add brew to the PATH before you can use it otherwise you would get the error command not found.
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.
==> Installation successful!
...
==> Next steps:
- Run these three commands in your terminal to add Homebrew to your PATH:
    echo '# Set PATH, MANPATH, etc., for Homebrew.' >> /Users/bonben/.zprofile
    echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/bonben/.zprofile
    eval "$(/opt/homebrew/bin/brew shellenv)"
echo '# Set PATH, MANPATH, etc., for Homebrew.' >> /Users/bonben/.zprofile
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/bonben/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"

3. Once the installation is completed, use the following command to check the version.

brew --version
bonben@Gradys-MacBook-Air ~ % brew --version
Homebrew 3.6.11
Homebrew/homebrew-core (git revision 8a1f0e9b4df; last commit 2022-11-15

4. You may also run the below command to ensure everything is configured correctly. The belowcommand will show the instructions for correcting any issues.

brew doctor
bonben@Gradys-MacBook-Air ~ % brew doctor
Your system is ready to brew.

Install Software Using Homebrew

When you’re ready to install software, you’ll first need to find out what the package name is. You can do this by entering the command . For example, we”ll search installation package for Mozilla Firefox.
bonben@Gradys-MacBook-Air ~ % brew search "firefox"
==> Formulae
firefoxpwa
==> Casks
homebrew/cask-versions/firefox-beta               homebrew/cask-versions/firefox-esr
homebrew/cask-versions/firefox-developer-edition  homebrew/cask-versions/firefox-nightly

This will show a list of programs that you’ll be able to install with Homebrew. The package name is usually shown somewhere in the middle of the list. For example, to install the latest Firefox, you’ll need to use the package name firefox. 

bonben@Grady~ % brew install firefox
Running `brew update --auto-update`...
==> Tapping homebrew/cask
Cloning into '/opt/homebrew/Library/Taps/homebrew/homebrew-cask'...
remote: Enumerating objects: 687513, done.
remote: Counting objects: 100% (246/246), done.
remote: Compressing objects: 100% (178/178), done.
remote: Total 687513 (delta 123), reused 187 (delta 68), pack-reused 687267
Receiving objects: 100% (687513/687513), 326.20 MiB | 10.67 MiB/s, done.
Resolving deltas: 100% (488150/488150), done.
Tapped 4119 casks (4,191 files, 348.1MB).
==> Downloading https://download-installer.cdn..../106.0.5/mac/en-US/Firefox%20106.0.5.dmg
######################################################################## 100.0%
==> Installing Cask firefox
==> Moving App 'Firefox.app' to '/Applications/Firefox.app'
🍺  firefox was successfully installed!
bonben@Grady~ % brew uninstall firefox
==> Uninstalling Cask firefox
==> Backing App 'Firefox.app' up to '/opt/homebrew/Caskroom/firefox/106.0.5/Firefox.app'
==> Removing App '/Applications/Firefox.app'
==> Purging files for version 106.0.5 of Cask firefox

Upgrade Homebrew

You should also keep the homebrew up to date. Execute the following command to upgrade the Homebrew to the latest version.

cd "$(brew --repo)" git fetch && git reset --hard origin/master && brew update 

Uninstall Homebrew

Similar to installation Homebrew also provides you a script to uninstall it. Open a terminal and execute the following command to remove Homebrew from your system.

url='https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh'
/bin/bash -c "$(curl -fsSL $url)"

Conclusion

Installing third-party software can be a pain, especially if that software doesn’t come with a macOS installer. Homebrew offers a more flexible alternative that allows you to install almost any piece of software that you can imagine.

It’s a fantastic tool that will save you a lot of time and effort in the long run. However, it’s important to note that Homebrew is not supported by Apple. This means that if there’s a new version of macOS, the folks behind Homebrew will probably release a new version. But if Apple updates its operating system, you’ll likely have to wait a while before you see a new version of Homebrew.

ADVERTISEMENT
5/5 - (1 vote)
Previous Post

How to Download and Install AnyDesk in macOS

Next Post

How to Change Your Computer Name or Local Hostname on Mac

Related Posts

Running Hyper-V and VMware Workstation on The Same Machine

August 15, 2024

How to Uninstall All Autodesk Products At Once Silently

July 29, 2024
Ftr5

How to Uninstall the Autodesk Genuine Service on Windows

July 29, 2024
Ftr19

How to Fix Windows Cannot Read the ProductKey From the Unattend Answer File in VirtualBox

July 26, 2024
Ftr25

How to Update Windows Terminal in Windows 10/11

July 26, 2024

How to Disable The Beep Sound in WSL Terminal on Windows

July 26, 2024

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Turn On uBlock Origin Extension in Chrome (2025)
  • Images Hidden Due To Mature Content Settings In CivitAI
  • Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

Categories

Stay in Touch

Discord Server

Join the Discord server with the site members for all questions and discussions.

Telegram Community

Jump in Telegram server. Ask questions and discuss everything with the site members.

Youtube Channel

Watch more videos, learning and sharing with Leo ❤❤❤. Sharing to be better.

Newsletter

Join the movement and receive our weekly Tech related newsletter. It’s Free.

General

Microsoft Windows

Microsoft Office

VMware

VirtualBox

Technology

PowerShell

Microsoft 365

Microsoft Teams

Email Servers

Copyright 2025 © All rights Reserved. Design by Leo with ❤

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory