https://github.com/mckernant1/auto-updater
Automatically update your package managers
https://github.com/mckernant1/auto-updater
homebrew-available package-manager-tool rust-cli
Last synced: about 1 month ago
JSON representation
Automatically update your package managers
- Host: GitHub
- URL: https://github.com/mckernant1/auto-updater
- Owner: mckernant1
- Created: 2020-02-01T00:54:12.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-12-04T03:28:13.000Z (3 months ago)
- Last Synced: 2025-12-07T09:29:39.468Z (3 months ago)
- Topics: homebrew-available, package-manager-tool, rust-cli
- Language: Rust
- Homepage:
- Size: 66.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Auto Updater
Add to your bashrc or zshrc to automatically check for updates on your set package managers
```bash
auto-updater upgrade
```
```bash
echo 'auto-updater upgrade' >> .zshrc
OR
echo 'auto-updater upgrade' >> .bashrc
```
## Install
```bash
brew tap mckernant1/tap
brew install auto-updater
```
## Add
To add a command do this. Then follow the prompts
```bash
auto-updater add
```
```bash
auto-updater add brew
```
## Upgrade
To upgrade a specific manager or ignore the timestamps
```bash
auto-updater upgrade [-f] [NAME]
```
You then get prompted to update not update or skip.
- Yes runs the commands and updates the last updated time
- No does not run the commands and does not update the last updated time
- Skip does not run the commands and updates the last updated time
```
It's time to update brew, would you like to update now (y/N/s):
```
### Json structure
Here is my example JSON structure
```json5
{
"brew": {
"frequency": "2d",
"lastUpdated": "2020-05-02T20:24:40.095050+00:00",
"commands": [
"brew update",
"brew upgrade",
"brew cask upgrade",
"brew cleanup"
]
},
"rustup": {
"frequency": "1m",
"lastUpdated": "2020-05-03T23:43:07.023288+00:00",
"commands": [
"rustup update"
]
},
"npm": {
"frequency": "1w",
"lastUpdated": "2020-04-27T17:02:15.277517+00:00",
"commands": [
"npm i -g npm",
"npm update -g"
]
}
}
```