- Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"It asks for your Mac password once. Typing won't show on screen; that's normal.
- Add brew to your PATH
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile eval "$(/opt/homebrew/bin/brew shellenv)"Apple silicon Macs (M1 and later). Intel Macs can skip this step.
Check it worked
- Check brew works
brew doctorYou should see "Your system is ready to brew."
Undo it
- Remove Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
- Refresh the package list and update everythingNeeds sudo
sudo apt update && sudo apt upgrade -y - Install the basics most tools expectNeeds sudo
sudo apt install -y build-essential curl wget git unzipapt comes with Ubuntu and Debian, so there's nothing else to install.
Check it worked
- Check apt works
apt --version
- Check winget is there
winget --versionwinget comes with Windows 11. If this prints a version, skip the next step.
- Get winget from the Microsoft Store (only if the check failed)
Start-Process "ms-windows-store://pdp/?productid=9NBLGGH4NNS1"Install "App Installer", then open a new PowerShell window.
- Update everything already installed
winget upgrade --all --accept-source-agreements --accept-package-agreements
Check it worked
- Search for a package
winget search git