def is_deb_package_installed(pkg):
with settings(hide('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'),<EOL>warn_only=True, capture=True):<EOL><INDENT>result = sudo('<STR_LIT>' % pkg)<EOL>return not bool(result.return_code)<EOL><DEDENT>
checks if a particular deb package is installed