how to check which packages homebrew has installed

Shell
brew list
Source

Also in Shell: