def yum_install_from_url(pkg_name, url):
if is_package_installed(distribution='<STR_LIT>', pkg=pkg_name) is False:<EOL><INDENT>log_green("<STR_LIT>" % (pkg_name, url))<EOL>with settings(hide('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'),<EOL>warn_only=True, capture=True):<EOL><INDENT>result = sudo("<STR_LIT>" % url)<EOL>if result.return_code == <NUM_LIT:0>:<EOL><INDENT>return True<EOL><DEDENT>elif result.return_code == <NUM_LIT:1>:<EOL><INDENT>return False<EOL><DEDENT>else:  <EOL><INDENT>print(result)<EOL>raise SystemExit()<EOL><DEDENT><DEDENT><DEDENT>
installs a pkg from a url
        p pkg_name: the name of the package to install
        p url: the full URL for the rpm package