When trying to install Virtualbox in OS X El capitan you may notice it hangs at Verifying "VirtualBox.pkg".

verify

You can by pass the warning trying to install via command line with:

$ sudo installer -package /Volumes/VirtualBox/VirtualBox.pkg -target /