Debian/Ubuntu: Show available updates (or control if all updates are installed)

32 views
Skip to first unread message

Johannes Kastl

unread,
Feb 11, 2016, 2:10:56 PM2/11/16
to ansible...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi everyone,

is it possible to show all available updates on Debian/Ubuntu/...
via apt? Or rather, check if all updates have been installed without
errors?

Basically something like this (which does not work, I have not
tested why):

> ---
>
> - name: refresh cache
> apt: update_cache=yes
>
>
> - name: Show all available updates become: true shell: apt-get
> upgrade -u | mail -s "Available Updates on $(hostname -f)" root

Thanks in advance!

Johannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/

iEYEARECAAYFAla83KcACgkQzi3gQ/xETbIqcwCgklsEpGA0ozVe9UbVA4B5T9Qa
Sn4AniOhuEnc90YjfGyxAFbgqLPPKWDq
=id1c
-----END PGP SIGNATURE-----

Tobias Wolf

unread,
Feb 12, 2016, 5:16:11 AM2/12/16
to Ansible Project
For one thing, once my apt module pull request #2944 gets merged you can use « --check --diff » to see the list of packages to be upgraded.

Johannes Kastl

unread,
Feb 13, 2016, 2:24:20 PM2/13/16
to ansible...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 12.02.16 schrieb Tobias Wolf:
> For one thing, once my apt module pull request #2944 gets merged
> you can use « --check --diff » to see the list of packages to be
> upgraded.

Nice to know, thanks!

Johannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/

iEYEARECAAYFAla/gtEACgkQzi3gQ/xETbKi9wCgnbUMaHdtybg9ZiuQ9fKb10kZ
TzMAnRoXK+yOkkoujPNgDu2PD3VVcbhO
=l6U1
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages