Skip to content

Instantly share code, notes, and snippets.

@wojciechowskimar
Created January 2, 2019 11:38
Show Gist options
  • Save wojciechowskimar/af33aa7b3dc4bcd2d6212c43bde65cdd to your computer and use it in GitHub Desktop.
Save wojciechowskimar/af33aa7b3dc4bcd2d6212c43bde65cdd to your computer and use it in GitHub Desktop.
The following Homebrew commands can be used to install VirtualBox on macOS. Oracle Virtual Box is an application and hence brew cask commands are used.
#!/bin/bash
brew update # Fetch latest version of homebrew and formula.
brew tap caskroom/cask # Tap the Caskroom/Cask repository from Github using HTTPS.
brew search virtualbox # Searches all known Casks for a partial or exact match.
brew cask info virtualbox # Displays information about the given Cask
brew cask install virtualbox # Install the given cask.
brew cleanup # For all installed or specific formulae, remove any older versions from the cellar.
# Visit https://www.code2bits.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment