Computing: Computer Administration

Installing the package manager Homebrew.

Most of the apps that you install on macOS are provided by Apple themselves and you can get them via Mac App Store. Another way to get Apple software is to download them from the Apple Developer website; here, you find, in particular, older versions of the Apple products (that aren't anymore available in the Store). Concerning 3rd party software, you can do as you do on Windows: download it and install it. A great part of such software is available as Mac package (.pkg file), that you can compare with a windows setup program (sometimes the PKG is delivered as the content of a DMG disk image). However, there is a more elegant way to do: Similar to what you do on Linux, using a package manager, that allows a more coherent installation of apps, as well as a simple way to uninstall a given package.

Homebrew is said to be the Missing Package Manager for macOS (or Linux). For details and the software documentation, please, visit the Homebrew website. Some interesting aspects concerning Homebrew:

To install Homebrew with all defaults, open a terminal and run the command (your password will be asked to do so):
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

The setup script informs you that the owner of the subdirectories of /usr/local will be changed to the current user and the group to "admin". There are also several new folders to be created in /usr/local. You'll have to hit the ENTER key to confirm and start installation.

Installing Homebrew package manager on macOS [1]

Installation should normally proceed without problems. In the terminal window, you will see the message "Installation successful!", together with some important information concerning the next steps to make, analytics, donations and the online documentation.

Installing Homebrew package manager on macOS [2]

The important point is that you have to add Homebrew to your path. In a terminal, run the following two commands:
    (echo; echo 'eval "$(/usr/local/bin/brew shellenv)"') >> /Users/{user-name}/.zprofile
    eval "$(/usr/local/bin/brew shellenv)"

Homebrew's analytics (cf. Homebrew documentation) are enabled by default. To prevent analytics to ever be sent, run the command
    brew analytics off

To get help with the Homebrew commands, type
    brew help

Homebrew is a rather complex software (with lots of possibilities) and describing its usage is outside the aim of this help text. Just some things that you should know (for a detailed description of Homebrew, please, visit the Homebrew Documentation website):


If you find this text helpful, please, support me and this website by signing my guestbook.