Is there a command to update the apt-check results so I can use bash script to check them?
I run upgrade and it shows 0 but apt-check still shows 12 packages can be updated. How often is this suppose to update on its own? I have numerous servers. Some seem to update instantly. Others go days still showing updates are available when they aren't.
I have read that rebooting can reset it but thats silly. Why would you need to reboot to refresh a simple message especially when most updates do NOT require a reboot.
# apt-get update && apt-get upgrade
0 upgraded, 0 newly installed, 0 to remove
# /usr/lib/update-notifier/apt-check --human-readable
12 packages can be updated.
9 updates are security updates.
sudo apt-get dist-upgrade
will probably upgrade the 12 packages – cmak.fr Mar 08 '19 at 19:13