Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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"`