brew

>Usage

Homebrew more commonly referred as "Brew" is a package manager that allows you to install and manage all the software packages you want to. It simplies the installation processes since brew is handling all the necessary dependencies and configurations making development easier.

>Synopsis

brew [command] [package]

>Commands

install

install is used to install any software / package or application from homebrew repositories. Homebrew downloads, installs and configures packages so that they are ready to use on your system when you call brew install. In addition, it installs any necessary dependencies for the software with simplicity and ease.

Example:

Dots

install

> brew install "packagename"


Package "packagename" installed.

remove

remove is used if we want to remove a package installed previously with brew. Along with the package, it also deletes its configurations.

Example:

Dots

remove

> brew remove "packagename"


Package "packagename" removed.

update

update is used if we want to update Homebrew's internal database of available software packages and their versions. When you running this command, Homebrew downloads the latest information about all the packages it can install, so it knows if there are any new versions or new packages available. This command does not update the installed packages themselves—only Homebrew’s list of packages.

Example:

Dots

update

> brew update


Packages updated.

upgrade

upgrade is used if we want to update already installed packages to their latest versions. When you run this command, Homebrew checks if newer versions of the installed packages are available and, if so, upgrades them. This is useful for keeping software packages up-to-date with the latest features, bug fixes, and security patches.

Example:

Dots

upgrade

> brew upgrade


Packages upgraded

search

search is used in the case we would like to find packages (also called “formulas”) in the Homebrew repository. This command helps you discover software packages available for installation, and it can also locate specific versions or cask packages for GUI applications.

Example:

Dots

search

> brew search "packagename"


Package updates aviable for "packagenames".

list

list is used in the case we would like to display a list of all packages currently installed on your system. This is useful for checking what software you have installed via Homebrew, along with any versions or dependencies.

Example:

Dots

list

> brew list


ack
autoconf
autojump
automake
coreutils
...

>Quiz

Progress: Question ? out of ?

Question Title

Page written by Ayman El Khadiri