[ACCEPTED]-How to update Homebrew SHA256?-sha
Accepted answer
After editing the formula, you can run brew fetch your-formula --build-from-source
to 3 fetch the tarball and display the new checksum. If 2 you've already downloaded the tarball somewhere, you 1 can calculate the hash with openssl sha256 < some_tarball.tar.gz
or shasum -a 256 some_tarball.tar.gz
.
For casks, I prefer to change the cask sha256 4 to something wrong and then run brew cask fetch {caskName}
, which 3 then throws an error that shows the "Actual" sha256 2 for the downloaded file. You can just copy 1 and paste that.
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.