how to check in a script if updates are available

Lentes, Bernd bernd.lentes at helmholtz-muenchen.de
Wed Mar 30 18:14:17 UTC 2022



----- On Mar 30, 2022, at 3:12 PM, Liam Proven lproven at gmail.com wrote:

> 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?
I tried a second time and it went fine. Strange.

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

I'm satisfied with BTRFS. The ability for snapshots is great and until now i didn't have any problem.
I don't know anything about ZFS.

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/20220330/77a336bc/attachment.bin>


More information about the ubuntu-users mailing list