YumListInstalled - Command yum list installed


This module is deprecated, please import the parsers in insights.parsers.yum_list instead.

class insights.parsers.yum_list_installed.YumInstalledRpm(data)[source]

Bases: InstalledRpm

The same as insights.parsers.installed_rpms.InstalledRpm but with an additional .repo attribute.


yum / dnf repository name, if available.



class insights.parsers.yum_list_installed.YumListInstalled(context)[source]

Bases: CommandParser, RpmList

YumListInstalled shares the insights.parsers.installed_rpms.RpmList interface with insights.parsers.installed_rpms.InstalledRpms. The only difference is YumListInstalled takes the output of yum list installed as its source data, and the YumInstalledRpm instances it produces contain a .repo attribute.


Indicates if the yum repo cache is expired.




yum list installed output is basically tabular with an ignorable set of rows at the top and a line “Installed Packages” that designates the following rows as data. Each column has a maximum width, and if any column overflows, the following columns wrap to the next line and indent to their usual starting positions. It’s also possible for the data rows to be followed by more lines that should be ignored. Since yum list installed is for human consumption, the footer lines can be syntactically ambiguous with data lines. We use heuristics to check for an invalid row to signal the end of data.