def package_install(name, **kwargs):
    cmd = 'pkg_install ' + name
    if kwargs.get('version', False):
        cmd += ' ' + kwargs['version']

    # Send the command to execute
    out, err = DETAILS['server'].sendline(cmd)

    # "scrape" the output and return the right fields as a dict
    return parse(out)
Install a "package" on the ssh server
dataset/ETHPy150Open saltstack/salt/salt/proxy/ssh_sample.py/package_install