Step 1: Install Package Managers
Time: 3 minutes
Purpose: Install system package managers for easy tool installation
Overview
Install package managers following official documentation for the most current instructions:
Platform | Package Manager | Official Documentation |
---|---|---|
macOS | Homebrew | brew.sh |
Windows | Chocolatey + PowerShell 7 | chocolatey.org/install |
Linux | Built-in (APT/DNF/YUM) | No installation needed |
macOS - Homebrew
Installation: Follow the official guide at brew.sh
Quick install:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Add to PATH (Apple Silicon Macs)
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zshrc && source ~/.zshrc
# Verify
brew --version
Windows - Chocolatey + PowerShell 7
Installation: Follow the official guide at chocolatey.org/install
PowerShell 7: Install from Microsoft PowerShell Docs
Quick setup:
# 1. Install Chocolatey (run as Administrator in any PowerShell)
Set-ExecutionPolicy Bypass -Scope Process -Force
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# 2. Install PowerShell 7
choco install powershell-core -y
# 3. Verify installations
choco --version
pwsh --version
Note: Use PowerShell 7 (pwsh
) for all remaining setup steps.
Linux - Native Package Managers
No installation needed. Your distribution includes a package manager:
- Ubuntu/Debian: APT (
apt
) - CentOS/RHEL/Fedora: DNF (
dnf
) - Older CentOS/RHEL: YUM (
yum
)
# Update package lists
sudo apt update # Ubuntu/Debian
sudo dnf update # Fedora/RHEL 8+
sudo yum update # Older RHEL/CentOS
Verification
Run the appropriate command for your system:
- macOS:
brew --version
- Windows:
choco --version
andpwsh --version
- Linux:
apt --version
,dnf --version
, oryum --version