UpdateInfo - command yum updateinfo list -C
¶
Provides a list of available advisories
-
class
insights.parsers.yum_updateinfo.
YumUpdateinfo
(context, extra_bad_lines=None)[source]¶ Bases:
insights.core.CommandParser
Class for parsing the output of yum updateinfo list -C.
Expected output of the command is:
RSHA-2020-0001 security firefox-83.0-13.fc32.x86_64 RHBA-2020-0002 bugfix flatpak-libs-1.8.3-1.fc32.x86_64 RHEA-2020-0003 enhancement flatpak-selinux-1.8.3-1.fc32.noarch
Examples
>>> len(updateinfo.items) 3 >>> updateinfo.items[0] {'advisory': 'RSHA-2020-0001', 'type': 'security', 'package': 'firefox-83.0-13.fc32.x86_64'}
-
items
¶ Updatable packages, along with minimal advisory metadata
Type: list
-