Since I don't install 'mission critical' application through brew, I've always had the following command run daily though a cronjob:
brew update && brew upgrade && brew cleanupSince I don't install 'mission critical' application through brew, I've always had the following command run daily though a cronjob:
brew update && brew upgrade && brew cleanupWhat I mean: "Unlike cron which skips job invocations when the computer is asleep, launchd will start the job the next time the computer wakes up. If multiple intervals transpire before the computer is woken, those events will be coalesced into one event upon wake from sleep."[1]
==> This operation has freed approximately 8.9GB of disk space.Overall I hate how slow brew is, especially `update` should be 10x faster, it should maybe warn about source builds that could take forever, and it should maybe give a summary like `apt` whether there are packages to be `autoremove`d.
Is that documented anywhere? I guess it makes sense for most people, but I often do `brew update && brew fetch $(brew outdated)`, then later rely on `brew upgrade` working without hitting the network. I'd hate for that to change.
[1] https://www.postgresql.org/docs/11/pgupgrade.html
[2] https://github.com/Homebrew/homebrew-core/blob/master/Formul...
==> This operation has freed approximately 41.3GB of disk space.
Automatic cleanup would have saved me a lot of confusion.
==> This operation has freed approximately 343.7MB of disk space.
Wait, that's not trivial.Wow, thanks