If you use brew as package manager on macOS, it is interesting to autoupdate the software installed with this tool.
autoupdate subcommand does this job. To automatically run
brew update every 24 hours, you can use this command:
brew autoupdate start
If you use the
--upgrade parameter, you are going to automatically run
brew upgrade, too.
brew autoupdate start --upgrade