# YumListInstalled - Command yum list installed¶

Warning

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

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

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

repo = None

yum / dnf repository name, if available.

Type

str

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

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.

expired_cache = None

Indicates if the yum repo cache is expired.

Type

bool

parse_content(content)[source]

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.