code: def install_package(self, client, package):
          
          install_cmd = "{sudo} '{install} {package}'".format(
              sudo=self.get_sudo_exec_wrapper(),
              install=self.get_install_cmd(),
              package=package
          )
  
          try:
              out = ipa_utils.execute_ssh_command(
                  client,
                  install_cmd
              )
          except Exception as error:
              raise IpaDistroException(
                  'An error occurred installing package {package} '
                  'on instance: {error}'.format(
                      package=package,
                      error=error
                  )
              )
          else:
              return out
docs: Install package on instance.