Skip to content

Add the -c/--change option to checkupdates which only watch for new available updates since the last run

Robin Candau requested to merge antiz/pacman-contrib:checkupdates_watch into master

This MR adds support for a new -c/--change option that makes checkupdates only check for new available updates compared to the last execution ran with that option. In other words, the list of available updates is only printed if it differs from the last time checkupdates was run using --change.
This is useful to run checkupdates in a cronjob or systemd timer for instance, so you're not getting constantly notified of the same exact available updates over and over until you actually apply them.

This feature has been requested in #29 (closed) and its implementation was inspired by this script.


Closes #29 (closed)

Edited by Robin Candau

Merge request reports