A homebrew tap storing a specific GDAL revision.
brew add grumbling-tom/tom-test-tap
brew install grumbling-tom/tom-test-tap/gdal
- Navigate to the gdal formula in homebrew-core.
- Find the commit that corresponds to the version you want to use.
- Copy the commit hash.
export GDAL_COMMIT_SHA=<sha>
https://raw.githubusercontent.com/Homebrew/homebrew-core/$GDAL_COMMIT_SHA/Formula/g/gdal.rb
curl -X GET https://raw.githubusercontent.com/Homebrew/homebrew-core/$GDAL_COMMIT_SHA/Formula/g/gdal.rb > Formula/gdal.rb
In running an extact, the formula loses its bottle
s (pre-built binaries).
One main advantage of using brew
for GDAL is to avoid needing to compile on a given machine. Given that, we are motivated to find an alternative solution that avails of upstream bottle
s.
Probably not, for reasons that Future Tom can elaborate on.