I suppose one could identify the command they typically intend to run, and map "brew updo" to it.
@marcoarment You've made a typo in "topgrade".
@marcoarment you gotta update the "available software" feed before upgrading to the application versions listed in it.
Might help you remember ... but prob not.
@marcoarment Thankfully, I suppose, it at least matches the much longer history of Apt syntax behavior on Debian/Ubuntu servers, where you have to *update* the repo lists before being able to *upgrade* any outdated packages.
(And then I also make it easier by aliasing `brew update ; brew upgrade ; brew cleanup` as one run every few days.)
@matt_garber Not “any outdated packages,” “ALL outdated packages.”
You can `apt upgrade rsync` and it will happily ignore the argument and upgrade all packages.
@marcoarment
@marcoarment yep, yep, yep
Like `ln -s <source> <target>` or `ln -s <target> <source>`. Which is it? Hope I never end up in a situation where lives depend on getting it right...
cp and mv do, in that you can provide multiple sources to one destination, which puts the destination at the end. So I read it as ln -s <what> <where at>Update = ask the servers about the latest news
Upgrade = have work done on my computer
It's how I keep this straight in my head on Linux using apt in Ubuntu.
@marcoarment You don’t have to brew update, it’s automatic. It makes sure brew itself is up to date and downloads the latest formulae. Auto-update is on by default and will run once every 24h before commands: install, upgrade and tap.
Brew upgrade bumps all packages to their latest working versions given the dependencies between them.
@marcoarment Out of the blue … „update“ could mean „look for updates of Brew itself“ (so update the command / directory cache)
„Upgrade“ then probably installs new versions of everything you have installed with brew before.
But I’m probably wrong … and if it’s this or vice versa it should be decent commands or parameter like „brew update -self“ and „brew update -all“ or something 🤷♂️
@marcoarment alias bupdate="brew update && brew upgrade"
… made this years ago and never bothered again. But I am more concerened about the amount of what is all that for and why did I install it in my machine over the years when I do that.
@marcoarment I've been using this and only this for years now.
% cat ~/bin/brewupdate.sh
#!/bin/bash
brew update && echo && brew outdated && echo && read -p "Proceed with upgrade? (Ctrl-C if not) " a && brew upgrade && brew cleanup
@marcoarment Similar to what others said. I add this alias to my bash/zsh profile on all my Macs:
`alias upall='brew update && brew upgrade'`
And for consistency I do the same on my ubuntu/debian servers
`alias upall='sudo apt update && sudo apt upgrade'`
So now I just can `upall` on any cli I touch to pull the main package updates.