https://github.com/d-w-arnold/homebrew-auto-upgrade
Adds a CLI prompt to auto-upgrade all your Homebrew packages 📦 ⬆️
https://github.com/d-w-arnold/homebrew-auto-upgrade
automation homebrew shell updater
Last synced: 2 days ago
JSON representation
Adds a CLI prompt to auto-upgrade all your Homebrew packages 📦 ⬆️
- Host: GitHub
- URL: https://github.com/d-w-arnold/homebrew-auto-upgrade
- Owner: d-w-arnold
- License: mit
- Created: 2021-02-19T18:53:51.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-22T01:19:06.000Z (over 3 years ago)
- Last Synced: 2025-06-04T03:14:23.054Z (about 1 month ago)
- Topics: automation, homebrew, shell, updater
- Language: Shell
- Homepage:
- Size: 174 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Homebrew Package Auto-Upgrade Tool

### Setup
1) Add the following lines to your `~/.bashrc`, `~/.zshrc`, etc. file(s):
(**IMPORTANT**: replace `` with the absolute path to this Github project repo)
(`UPDATE_HOMEBREW_DAYS` defaults to 7 days, if unset)
```shell
# ---------
# Homebrew Package Auto-Upgrade Config
# ---------# Change how often to auto-update Homebrew (in days)
export UPDATE_HOMEBREW_DAYS=7# Path to Homebrew auto-update installation (Github project repo)
export UPDATE_HOMEBREW_PATH=# Homebrew auto-update script
source $UPDATE_HOMEBREW_PATH/homebrew-updater.sh
```This Homebrew package auto-upgrade tool also stores a `.brew-last-update` file in your user's home directory, which
contains a record of when the user was last prompted to run the Homebrew auto-upgrade tool.#### (Optional)
2) You can edit the `homebrew_updater()` function, at line 14 in `homebrew-updater.sh`, to define your own Homebrew
package auto-upgrade steps.### Debug Logger
Each time your `~/.bashrc`, `~/.zshrc`, etc. file(s) are loaded, simple info and warning logs are sent to `debug.log`,
in this Git project repo.