Trying to pin VirtualBox<7
amotl opened this issue · 4 comments
Dear Jack,
thanks a stack for conceiving this excellent program. Because Vagrant does not support VirtualBox 7.x yet, I would like to downgrade to VirtualBox 6 and stay on this version.
I've managed to downgrade VirtualBox to 6.1.38 using this recipe:
cd "$(brew --repo homebrew/cask)"
git checkout aa3c55951
HOMEBREW_NO_AUTO_UPDATE=1 brew reinstall --cask virtualbox
# Switch-back to `master` needed?
git switch master
$ VBoxManage --version
6.1.38r153438
Then I tried to pin VirtualBox like this:
brew tap buo/cask-upgrade
brew cu pin virtualbox
However when invoking brew upgrade --cask --greedy
, Homebrew still upgrades to VirtualBox 7 again:
$ brew upgrade --cask --greedy --dry-run
==> Would upgrade 2 outdated packages:
little-snitch 4.5.2 -> 5.5
virtualbox 6.1.38,153438 -> 7.0.0,153978
I am sure I am doing something wrong. Maybe you can help me out?
With kind regards,
Andreas.
Hey @amotl ,
Thanks for your question. As stated in the readme, "our" cask pinning doesn't prevent the upgrade from happening when using the standard brew commands. Therefore if you would like to pin it, then you have to use brew cu
to upgrade the apps. Hope that makes sense 🙂 Let me know if you have any other questions.
Dear Ondřej,
thanks for your quick response, and apologies for not reading the README thoroughly. Running brew cu
works perfectly, and does not upgrade to VirtualBox 7. Excellent!
Keep up the spirit, and with kind regards,
Andreas.
Hey Andreas,
Just FYI: I just noticed that they released virtualbox6
cask 🙂 so I guess you can use that as well (in homebrew-cask-versions
tap).