Mainly i want to update youtube-dl on my mac. I have used Linux so for that updating any app is very simple: apt-get update youtube-dl. But how to do it on Mac using home-brew. Is there any kind of general command or something which will work for all the apps?
brew update first, then you can use
brew upgrade to update all packages, or
brew upgrade youtube-dl to update only
Not for brew, but from the documentation, you can run
youtube-dl -U to update.