'Upgrade all available packages.
Optionally, upgrade individual packages.
:param name: optional parameter wildcard spec to upgrade
:type name: str'

def upgrade(self, name=None):

    if (not name):
        r_cmd = ((self.base_command + '    ') + 'update')
    else:
        r_cmd = ((((self.base_command + '    ') + 'update') + '    ') + name)
    try:
        utils.system(r_cmd)
        return True
    except error.CmdError:
        return False
