上QQ阅读APP看书,第一时间看更新
Command-line installation
If you already have the command-line program brew installed, then getting VirtualBox is as easy as running the following command:
$ brew cask install virtualbox
You may be prompted for a superuser password to complete the installation.
Homebrew is available from https://brew.sh/ and is effectively the package manager that macOS needs, but doesn't have out of the box. I can't readily recommend blindly running scripts from mysterious websites, so be sure you understand what's being done (read the code) before you take the plunge and install brew.