Homebrew is the best package manager for Mac.
The guy who wrote this didn't get hired by Google ffs... who cares about old bubble sort comp-sci bullshit. Seriously.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
All the packages I use on Mac are stored in the DevOps-Bash-tools repo.
Core build packages and core utils
Desktop Packages - long list of cool & techie packages for Mac
Desktop Casks - major GUI 3rd party apps
Desktop Taps - more 3rd party apps
brew install "$package"
brew reinstall "$package"
brew remove "$package"
brew info "$package"
List files for package:
brew ls --verbose "$package"
Fix SSL of a package:
brew_fix_openssl_dependencies.sh
Partial port from private Knowledge Base page 2013+