brew install apache2 code example Example 1: brew install iterm2 $ brew cask install iterm2 Example 2: ubuntu install apache2 sudo apt-get install apache2