how to check in a script if updates are available

Liam Proven lproven at gmail.com
Wed Mar 30 13:12:59 UTC 2022


On Tue, 29 Mar 2022 at 22:38, Lentes, Bernd
<bernd.lentes at helmholtz-muenchen.de> wrote:
>
> i didn't manage to install snapper because of a dependency which is so-called
> "not installable".

Oh. That's unfortunate. What dependency?


> 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.

OK, that sounds neat.

Another question does spring to mind: I believe Ubuntu has support for
automatic pre-installation snapshots on ZFS. Would you consider using
ZFS instead of Btrfs?

https://www.maketecheasier.com/use-zfs-snapshots-ubuntu/

https://arstechnica.com/gadgets/2020/03/ubuntu-20-04s-zsys-adds-zfs-snapshots-to-package-management/

-- 
Liam Proven ~ Profile: https://about.me/liamproven
Email: lproven at cix.co.uk ~ gMail/gTalk/FB: lproven at gmail.com
Twitter/LinkedIn: lproven ~ Skype: liamproven
UK: (+44) 7939-087884 ~ Czech [+ WhatsApp/Telegram/Signal]: (+420) 702-829-053




More information about the ubuntu-users mailing list