Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mightykatun/update-script
Script that makes it easy to automate apt updates on linux
https://github.com/mightykatun/update-script
apt automation linux prettier update
Last synced: about 2 months ago
JSON representation
Script that makes it easy to automate apt updates on linux
- Host: GitHub
- URL: https://github.com/mightykatun/update-script
- Owner: mightykatun
- License: mit
- Created: 2024-11-16T16:17:06.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-16T16:20:40.000Z (about 2 months ago)
- Last Synced: 2024-11-16T17:21:30.576Z (about 2 months ago)
- Topics: apt, automation, linux, prettier, update
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Update-script
Script that makes it easy to automate apt updates on linux.Use ase follows:
`sudo apt update`\
Add the `-c` switch to run `sudo apt autoremove` at the end.There is a version of the script that can use ntfy to inform you in case you want to automate your updating via, e.g., a crontab.\
You can run: `sudo apt update -c -s`\ to differentiate when the script was run by an external script (hence the `-s` switch).The ntfy script adds a timestamp which allows you to run it through crontab and have it create a log file (hacky command warning ⚠️):\
`@reboot sleep 300 && sudo bash -c "/usr/var/bin/update -c -s >> /var/log/update.log 2>&1"`