I often run brew update followed by brew upgrade.

Can I do that in one step?

1 Answer 1


Yes, by putting the following line in your ~/.bash_profile file:

alias brewu='brew update && brew upgrade --lock'

brewu can be replaced by whatever alias you want to use.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .