Brew/Homebrew
Brew
Homebrew is a package manager for maxOS and Linux.
On macOS, it’s the primary package manager and comes built in to most modern versions of the OS (use brew -v
to check).
On linux it’s complementary to apt, and you have to install it yourself.
The following command installs brew and works on both macOS and Linux:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
On Linux you’ll be limited to the official packages that brew has - which is still a lot.
There’s a good amount of projects that are available via brew but not via apt.
On macOS, you also have access to cask
packages, which allows you to install many GUI applications via brew.
The list can be found here.
To install something with brew simply use:
brew update && brew install <package>
Upgrading can be done via:
# Single packagebrew upgrade <package># All packagesbrew upgrade