how to check in a script if updates are available
Lentes, Bernd
bernd.lentes at helmholtz-muenchen.de
Tue Mar 29 20:36:27 UTC 2022
----- On Mar 29, 2022, at 4:27 PM, Liam Proven lproven at gmail.com wrote:
>
> The `snapper` tool from openSUSE does precisely this, and it's FOSS
> and it runs on Ubuntu.
>
> http://snapper.io/
>
> I don't know if you are rolling your own, but this may make it easier.
>
Hi Liam,
i didn't manage to install snapper because of a dependency which is so-called
"not installable".
While googling i stumbled across https://www.cyberciti.biz/faq/how-to-set-up-automatic-updates-for-ubuntu-linux-18-04/.
It gave me the hint to use unattended-upgrades.
First i start unattended-upgrades --dry-run. If i have an output then there is something to install.
If no output, nothing to install.
That solved the problem for me.
Bernd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2217 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20220329/7ccadb9b/attachment.bin>
More information about the ubuntu-users
mailing list