Home Homebrew
Post
Cancel

Homebrew

Homebrew is a package manager for macOS. It is similar to apt, yum, and other package managers. It can be used on Debian or Fedora Linux as well.

pros

  • packages are up to date
  • easy to use
  • intuitive package names
  • does not require sudo
  • arm64 support

cons

  • slow

Dependencies

Debian

1
sudo apt install -y build-essential procps curl file git

Fedora

1
2
3
sudo yum groupinstall 'Development Tools'
sudo yum install procps-ng curl file git
sudo yum install libxcrypt-compat

Installation

Run the install script and add the initializer to your shell profile and reload it.
(The yes '' | is to automate the installation without the need to press enter)

1
2
3
yes '' | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> ~/.zshrc
source ~/.zshrc

Usage

check available packages

1
brew search <package>

install a package

1
brew install <package>

update packages

1
brew update && brew upgrade

uninstall a package

1
brew uninstall <package>

install programs with cask

With cask you can install VS Code, Firefox, and other programs.

1
2
3
```bash
brew install --cask <package>

uninstall a program with cask

1
brew uninstall --cask <package>

search cask formulares

This post is licensed under CC BY 4.0 by the author.