--- aliases: - brew - homebrew --- Software can come from several different sources: 1. App Store 2. Just downloaded from the Web 3. Homebrew 4. built locally Whenever possible I use `brew` to manage software and its dependencies on my mac. # Automation The update # Software Sources - [ ] alle programme von mas-cli zu homebrew wechseln. #todo/p - [ ] script das wöchentlich updates zieht via homebrew #todo/p ## Homebrew ### Cheatsheat 1. ```brew update && brew upgrade `brew outdated` ``` 2. `brew upgrade && brew upgrade --cask` Upgrades all packages that have been installed through brew. ### Autoupdate My mac uses brew to autoupdate every 24 hours. I used the the [autoupdate package](https://github.com/DomT4/homebrew-autoupdate) and the following command for this: `brew autoupdate start 86400 --upgrade --cleanup --immediate --sudo` ## App Store In order to automate the app store interactions there is a command line interface (CLI) called [mas-cli](https://github.com/mas-cli/mas). It allows us to manage the dependencies in an automated manner. - To update all apps run: `mas upgrade` - To list all outdated apps run: `mas outdated`