Homebrew is an awesome command-line software management solution for macOS (similar to MacPorts). It can install pretty much all software required for web development and keep it organised (under
/usr/local) and updated with a single command.
- Installs packages quickly without having to download and run the installers via a web browser.
- Builds everything from source (unless installing from cask) which makes it secure. Compares checksums of the download files against known references.
- Places everything under
/usr/localand doesn’t use root privileges for added security and limited system access.
Here is how to install some of the most popular packages. In most cases you just need to run
brew install PACKAGENAME or
brew cask install PACKAGENAME for packages that are distributed as binaries.
brew install node
brew install composer
Install Visual Studio Code:
brew cask install visual-studio-code
brew cask install atom
brew cask install virtualbox
brew cask install vagrant
Install Docker and Docker Compose:
brew install docker docker-compose
Update Homebrew and the package information:
Update all installed packages:
Remove old versions of packages:
List all installed packages: