What is it according to Wikipedia
Homebrew is a free and open-source software package management system that simplifies the installation of software on Apple's macOS operating system.
Make sure that current user owns the sub directories, otherwise Homebrew will complain not having access to create the
sudo chown -R $(whoami) /usr/local/*
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Reload the changes:
- Try it out:
brew install wget
That's it, all set!
Note: If you are using zsh, make sure you add that line to:
.zshrc as well (it has to be at the very end).
Opting out of Analytics
Homebrew analytics helps maintainers and leaving it on is appreciated. However, if you want to opt out of Homebrew’s analytics, this will prevent analytics from ever being sent:
brew analytics off
How do I update my local packages?
First update the formulae and Homebrew itself:
You can now find out what is outdated with:
Upgrade everything with:
Or upgrade a specific formula with:
brew upgrade <formula>
List all packages installed
How do I stop certain formulae from being updated?
To stop something from being updated/upgraded:
brew pin <formula>
To allow that formulae to update again:
brew unpin <formula>