[ACCEPTED]-How to update Homebrew SHA256?-sha

Accepted answer
Score: 39

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.

Score: 0

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.

More Related questions