def yum_install(**kwargs):
if '<STR_LIT>' in kwargs:<EOL><INDENT>repo = kwargs['<STR_LIT>']<EOL><DEDENT>for pkg in list(kwargs['<STR_LIT>']):<EOL><INDENT>if is_package_installed(distribution='<STR_LIT>', pkg=pkg) is False:<EOL><INDENT>if '<STR_LIT>' in locals():<EOL><INDENT>log_green("<STR_LIT>" % (pkg, repo))<EOL>sudo("<STR_LIT>" % (repo, pkg))<EOL><DEDENT>else:<EOL><INDENT>log_green("<STR_LIT>" % pkg)<EOL>sudo("<STR_LIT>" % pkg)<EOL><DEDENT><DEDENT><DEDENT>
installs a yum package