def install_package(self, client, package):
install_cmd = "<STR_LIT>".format(<EOL>sudo=self.get_sudo_exec_wrapper(),<EOL>install=self.get_install_cmd(),<EOL>package=package<EOL>)<EOL>try:<EOL><INDENT>out = ipa_utils.execute_ssh_command(<EOL>client,<EOL>install_cmd<EOL>)<EOL><DEDENT>except Exception as error:<EOL><INDENT>raise IpaDistroException(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'.format(<EOL>package=package,<EOL>error=error<EOL>)<EOL>)<EOL><DEDENT>else:<EOL><INDENT>return out<EOL><DEDENT>
Install package on instance.