Development
Homebrew
What is Homebrew?
Homebrew is a popular open-source package manager for macOS and Linux. It simplifies the installation and management of software by allowing users to install applications and tools from the command line.
Install
> /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Basic Usage
Search a package
> brew search <query>
Install a package
> brew install <package-name>
Install a package with a specific version:
> brew install php@8.2
Update Homebrew itself
> brew update
Check outdated packages
> brew outdated
Upgrade installed packages
> brew upgrade
Services
List all services
> brew services list
Start a service
> brew services start <service-name>
Stop a service
> brew services stop php
Restart a service
> brew services restart <service-name>