Last Updated on January 10, 2023 by Vikash Ekka
Homebrew is a package manager for macOS that makes it easy to install and manage command-line software. You can use Homebrew to install a wide variety of command-line tools, including programming languages, databases, and utilities.
Prerequisites
- macOS system with access with administrator privileges
- Internet
Install Homebrew on macOS
To install Homebrew on your Mac, you can use the following command in your terminal:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/main/install.sh)"
This command will download and run the Homebrew installer script. The script will check your system for any dependencies and install them if needed. Once the installation is complete, you can use the brew
command to install and manage packages.
For example, you can use the following command to install the latest version of Node.js:
brew install node
You can use the following command to see a list of all the packages that are currently installed:
brew list
You can use the following command to search for a package:
brew search <package-name>
You can use the following command to update all the installed packages
brew update
and you can use the following command to upgrade a specific package
brew upgrade <package-name>
It’s important to note that Homebrew is intended for command-line tools, and it does not have a graphical user interface or support for GUI-based applications. And also you should always be careful when running commands with sudo
or from scripts you downloaded from internet, make sure you trust the source before running any commands.
Conclusion
Congratulations, you have successfully installed the Homebrew on macOS system, Please let us know in the below comment box if you are facing any issue while installing.
We will happy to assist you. Happy Learning !!!
[…] To install the Homebrew on macOS follow the instruction Link […]