Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for downloading formula and cask binaries in the background #17701

Closed
1 task done
metametapod opened this issue Jul 13, 2024 · 3 comments
Closed
1 task done
Labels
features New features

Comments

@metametapod
Copy link

Verification

Provide a detailed description of the proposed feature

It would be cool if there were a way to automatically download formula and cask upgrades in the background without installing. E.g. something like:

brew upgrade --download --cask transmit

Then when running brew upgrade later, it can prefer the cache if it's still up-to-date.

What is the motivation for the feature?

Currently there is only support for brew autoupdate start --upgrade, but that installs the update which can cause incompatibilities.

How will the feature be relevant to at least 90% of Homebrew users?

Adding an option to download would speed up Homebrew considerably especially for those on limited bandwidth connections, while still allowing one to vet updates before installing.

What alternatives to the feature have been considered?

As far as I'm aware there is no alternative available, other than running brew update which does not download binaries, or brew autoupdate start --upgrade which both downloads and installs the update.

@metametapod metametapod added the features New features label Jul 13, 2024
@MikeMcQuaid
Copy link
Member

Then when running brew upgrade later, it can prefer the cache if it's still up-to-date.

brew fetch --cask transmit should do this.

@carlocab
Copy link
Member

If you want it to be done in the background:

brew fetch --cask transmit &

@metametapod
Copy link
Author

metametapod commented Jul 14, 2024

Thank you, I didn't know about brew fetch. To prefetch all pending updates (both formulae and casks):

brew outdated | awk '{print $1}' | xargs brew fetch --deps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
features New features
Projects
None yet
Development

No branches or pull requests

3 participants