Created
September 24, 2018 12:07
-
-
Save jonashackt/e58fdb0b5efba60c95e412028b4af323 to your computer and use it in GitHub Desktop.
Downgrade homebrew (cask) package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Uninstall current version you want to downgrade | |
brew cask uninstall <PackageName> | |
# Edit Cask file | |
brew cask edit <PackageName> | |
# e.g. Vagrant | |
brew cask edit vagrant | |
``` | |
cask 'vagrant' do | |
version '2.0.1' | |
sha256 '07f7be3a457a8422d576e6371c8499fbdea411b02aecc7ea3c5258494514c5f2' | |
# hashicorp.com/vagrant was verified as official when first introduced to the cask | |
url "https://releases.hashicorp.com/vagrant/#{version}/vagrant_#{version}_x86_64.dmg" | |
appcast 'https://github.com/hashicorp/vagrant/releases.atom' | |
name 'Vagrant' | |
homepage 'https://www.vagrantup.com/' | |
pkg 'vagrant.pkg' | |
uninstall script: { | |
executable: 'uninstall.tool', | |
input: ['Yes'], | |
sudo: true, | |
}, | |
pkgutil: 'com.vagrant.vagrant' | |
zap trash: '~/.vagrant.d' | |
end | |
``` | |
# change version and SHA256 | |
# look for in https://releases.hashicorp.com/vagrant/ | |
# Then reinstall brew package | |
brew cask reinstall vagrant | |
# check correct version with | |
vagrant --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Look at the history to find the version you want.