def update(): """ Does the 'yum update' command. :raises: AssertionError """ # Update return rpm.check_for_errors(shell.run("yum -y update"))
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)
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)