def remove(self, name): """ Remove a package by name. :param name: A complete or partial package name. :type name: str :return: (status, {stdout:<str>, stderr:<str>}) :rtype: tuple """ shell = Shell() return shell.run('yum', 'remove', name, '-y')
def update(self, name=''): """ Update a package by (optional) name. :param name: A complete or partial package name. :type name: str :return: (status, {stdout:<str>, stderr:<str>}) :rtype: tuple """ shell = Shell() return shell.run('yum', 'update', name, '-y')
def sleep(self, n): log.info('PID: %s', os.getpid()) shell = Shell() shell.run('sleep', str(n))