๐Ÿ“ฆ

Homebrew & Package Managers

๐Ÿง‘โ€๐ŸŽ“ Apprentice

Install software like a pro

Package managers let you install, update, and remove software from the terminal with a single command.


By operating system

SystemManagerInstallation
macOSHomebrewSee below
Linuxapt, dnf, pacmanAlready installed
Windowswinget, scoopwinget comes included

Homebrew (macOS)

Installation

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Essential commands

# Install program
brew install git

# Install GUI app
brew install --cask visual-studio-code

# Search packages
brew search docker

# Update everything
brew update && brew upgrade

# List installed
brew list

Windows: winget

# Search
winget search vscode

# Install
winget install Microsoft.VisualStudioCode

# Update everything
winget upgrade --all

Linux: apt (Ubuntu/Debian)

# Update list
sudo apt update

# Install
sudo apt install git

# Upgrade everything
sudo apt upgrade

What to install first

# macOS
brew install git node pnpm python

# Windows
winget install Git.Git OpenJS.NodeJS Python.Python.3

# Linux
sudo apt install git nodejs npm python3

Useful links