How to update packages installed via Homebrew?

I've installed packages in my macOS using Homebrew, and installed GUI apps using Homebrew Cask.

How could I update my extensions and packages?


To have your packages and apps you just need to run these commands in your terminal:

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