Brew upgrade --cleanup === brew update && brew upgrade && brew cleanup && brew cask upgrade && brew cask cleanup?


#1

Is my understanding correct?

brew update && brew upgrade && brew cleanup && brew cask upgrade && brew cask cleanup

(Sean Molenaar) #2

cask commands are separate from normal commands but as far as I know brew upgrade –cleanup does perform the same actions as brew update && brew upgrade && brew cleanup.


#3

@SMillerDev, @MikeMcQuaid said:

Users do not need to brew upgrade Cask any more: it’s done automatically on any brew update or git pull of the Cask tap.

Am I misinterpreting this?


(Mike McQuaid) #4

You are not correct. It’s just brew update && brew upgrade && brew cleanup $FORMULAE_THAT_WERE_UPGRADED.


#5

Got it, thanks for clarifying! So I’ll continue running brew upgrade and brew cask upgrade as separate commands.

Was hoping to make them into one command but I’ll just create an alias such as:
alias bu='brew upgrade --cleanup && brew cask upgrade'


#6

Am I at least right that brew cask upgrade runs brew cask cleanup automatically? I’m wondering if this should be made more clear.

Update: Opened separate question: Does brew cask upgrade automatically run brew cask cleanup or should I run cleanup every time after upgrade?