Exemplo n.º 1
0
def update():
    """ Does the 'yum update' command.

    :raises: AssertionError
    """
    # Update
    return rpm.check_for_errors(shell.run("yum -y update"))
Exemplo n.º 2
0
def groupinstall(group):
    """ Does the 'yum groupinstall <package>' command.

    :param package_name: Name of the group to install (eg. katello-all)
    :type package_name: str

    :raises: AssertionError
    """
    # Install it
    text = shell.run("yum -y groupinstall %s" % (group))
    return rpm.check_for_errors(text)
Exemplo n.º 3
0
def install(package_name):
    """ Does the 'yum install <package>' command.

    :param package_name: Name of the package to install (eg. katello-all)
    :type package_name: str

    :raises: AssertionError
    """
    # Install it
    text = shell.run("yum -y install %s" % (package_name))
    # Verify it
    shell.run("rpm -q %s" % (package_name))
    return rpm.check_for_errors(text)