This Gist provides a script and a launchd configuration file to automatically update Homebrew packages and casks on a daily schedule. It uses the macOS-native launchd system, which is more reliable than cron for systems that may be asleep during a scheduled run.
- Create the Script:
- Place the
update_brew.shfile in a directory within your user's home folder, such as~/bin/. - Make the script executable by running (
mkdir -p ~/binif you do not have this directory):
- Place the