install virtual box using brew code example
Example 1: brew install virtualbox
brew install --cask virtualbox
Example 2: virtualbox mac install brew
$ brew cask install virtualbox
brew install --cask virtualbox
$ brew cask install virtualbox